-
... SatieUnitTest { var jsonPath; setUp { var dataDir = this.class.filenameSymbol.asString.dirname +/+ "data"; jsonPath = ( valid: dataDir +/+ "valid.json", invalid: dataDir +/+ "invalid.json", ); } test_SatieJson_stringify_booleans { [ [true, ...
-
+ String { // using sips (unix application built into MacOSX) // convert your web images right from SC.. resampleImage { |newMaxSize = 600, newName = \auto| var path, result; path = this.standardizePath; case { newName == \auto } { newName ...
-
... I.if({ // sfView.timeCursorPosition_((startTime * sf.sampleRate).round); // timeString.string_(startTime.asTimeString[3..10]); // cueOffsetNum.value_(0); // offset = 0; // }) } loop_ {arg val; var oldVal = loop; loop = val.asBoolean; if((ol ...
-
... val, i| case {val.isInteger} { //integer res.add($i).add(val).add($e); } {val.isString} { //string res.add(val.size).add($:).add(val); } {val.isKindOf(Set)} { //dictionary res.add($d); val.asSortedArray.do{|a| res.add(this.encode([a[0].asSt ...
-
... = 4; formatFunc = { |value| "%/%".format( value, denom ) }; interpretFunc = { |string| if( string.includes( $/ ) ) { string = string.split( $/ ); denom = 2**(({ string[1].interpret }.try ? denom).log2.round(1).clip(0,10)); string = string[ ...
-
... |value| "%/%".format( value.asInteger, denom.asInteger ) }; interpretFunc = { |string| if( string.includes( $/ ) ) { string = string.split( $/ ); denom = 2**(({ string[1].interpret }.try ? denom).log2.round(1).clip(0,10)); string = string[ ...
-
... avis-url] [![Test Coverage][coveralls-image]][coveralls-url] Utility to parse a string bytes (ex: `1TB`) to bytes (`1099511627776`) and vice-versa. ## Installation This is a [Node.js](https://nodejs.org/en/) module available through the [np ...
-
... val=0; func.value(spec.map(val) ) }; }); ^specFunc; } mapSpec {var func, spec, stringSpec, funcString, newString, stripFunc; if( this.collect({|item| item.isFunction }).includes(true), { func = this.select({|item| item.isFunction })[0]; sp ...
-
... key ); } *asKey { |something| switch( something.class, Symbol, { ^something }, String, { ^something.asSymbol }, Integer, { ^dict.at( something ) }, { ^nil } ); } *asID { |something| switch( something.class, Symbol, { ^dict.at( something ) ...
-
... ---------------------- // *new { arg owner, target, data; // types DOMDocument, String, String ^super.new.init(owner, DOMNode.node_PROCESSING_INSTRUCTION, target, data); } // end new // --- getTarget() : String ----------------------------- ...