How to use s - 8 common examples

To help you get started, we’ve selected a few s examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github yjlintw / comic-reader / assets / js / search.js View on Github external
function search() {
    if (isSearching()) return;
    $("#search-result").html("loading...");
    var searchString = $("#search-box").val();
    console.log($("#search-box").val());
    
    // --- s.sfacg.com ---
    request(
    { method: 'GET'
    , uri: 'http://s.sfacg.com/?Key=' + searchString.toUnicode() + '&S=0&SS=0'
    }
    , handleResponse);
    searchFlagDict["s.sfacg.com"] = true;

    // --- others ---
    //   $("#search-result").html(tmp.html());
}
github kueblc / mocktuyacloud / index.js View on Github external
}

// many devices seem to call this on start up or on switching to a new network
API["tuya.device.upgrade.silent.get"] = params => {
	if( ids.includes(params.gwId) || !ids.length )
		return {
			"url": upgrade.url,
			"type": 0,
			"size": upgrade.size,
			"md5": upgrade.md5,
			"version": upgrade.version
		}
}

// some devices call this to upgrade firmware when protocol 15 comes over mqtt
API["s.gw.upgrade"] = params => {
	return {
		"auto": true,
		"url": upgrade.url,
		"size": upgrade.size,
		"fileSize": upgrade.size,
		"md5": upgrade.md5,
		"version": upgrade.version
	}
}

// other devices call this to upgrade firmware when protocol 15 comes over mqtt
API["tuya.device.upgrade.get"] = params => {
	return {
		"size": upgrade.size,
		"cdnUrl": upgrade.url,
		"originalUrl": upgrade.url,
github socketio / engine.io / test / common.js View on Github external
fn = opts;
    opts = {};
  }

  var e = eio.listen(0, opts, function () {
    fn(e.httpServer.address().port);
  });

  return e;
};

/**
 * Sprintf util.
 */

require('s').extend();
github angular / angular / aio / tools / transforms / examples-package / processors / collect-examples.spec.js View on Github external
it('should attach parsed content as renderedContent to the example file docs', () => {
      const docs = [
        createDoc('A', 'examples-1/x/app.js'),
        createDoc('B', 'examples-1/y/index.html'),
        createDoc('C', 'examples-2/s/app.js'),
        createDoc('D', 'examples-2/t/style.css'),
      ];

      processor.$process(docs);

      expect(exampleMap['examples-1']['x/app.js'].renderedContent).toEqual('PARSED:A');
      expect(exampleMap['examples-1']['y/index.html'].renderedContent).toEqual('PARSED:B');
      expect(exampleMap['examples-2']['s/app.js'].renderedContent).toEqual('PARSED:C');
      expect(exampleMap['examples-2']['t/style.css'].renderedContent).toEqual('PARSED:D');

    });
github angular / angular / aio / tools / transforms / examples-package / processors / collect-examples.spec.js View on Github external
it('should identify example files that are in the exampleFolders', () => {
      const docs = [
        createDoc('A', 'examples-1/x/app.js'), createDoc('B', 'examples-1/y/index.html'),
        createDoc('C', 'examples-2/s/app.js'), createDoc('D', 'examples-2/t/style.css'),
        createDoc('E', 'other/b/c.js')
      ];

      processor.$process(docs);

      expect(exampleMap['examples-1']['x/app.js']).toBeDefined();
      expect(exampleMap['examples-1']['y/index.html']).toBeDefined();
      expect(exampleMap['examples-2']['s/app.js']).toBeDefined();
      expect(exampleMap['examples-2']['t/style.css']).toBeDefined();

      expect(exampleMap['other']).toBeUndefined();
    });
github unlooped / FuzzySearchJS / js / FuzzySearchWrup.js View on Github external
Arr.forEach(this.searchSet, function (value) {
                        var value = this.options.termPath.length == 0 ? value : Obj.fromPath(value, this.options.termPath);
                        if (this.options.caseSensitive) {
                            value = value.toLowerCase();
                        }
                        var score = this.getCombinedModulePoints(needle, value);
                        result.push({
                            'score': score.combined,
                            'details': score.details,
                            'value': value
                        });
                    }, this);
                    return result.sort(function (a, b) {
github unlooped / FuzzySearchJS / example / js / FuzzySearchWrup.js View on Github external
Arr.forEach(this.searchSet, function (value) {
                        var value = this.options.termPath.length == 0 ? value : Obj.fromPath(value, this.options.termPath);
                        if (this.options.caseSensitive) {
                            value = value.toLowerCase();
                        }
                        var score = this.getCombinedModulePoints(needle, value);
                        result.push({
                            'score': score.combined,
                            'details': score.details,
                            'value': value
                        });
                    }, this);
                    return result.sort(function (a, b) {
github phingofficial / phing / docs / docbook5 / en / output / webhelp / search / index-3.js View on Github external
w["rsttask"]="259*49,446*1";
w["rsync"]="386*6";
w["rsyncpath"]="386*1";
w["rt"]="382*1";
w["rtf"]="280*1";
w["rudimentari"]="158*1,389*1";
w["rule"]="31*1,87*1,149*1,402*1";
w["ruleset"]="149*2,343*1";
w["run"]="7*2,15*3,23*1,33*1,42*5,43*4,67*2,69*1,109*1,115*1,123*1,138*3,146*2,147*2,149*1,156*1,179*1,181*1,200*4,222*1,234*1,241*1,297*1,302*2,318*1,322*1,354*2,357*2,386*1,389*1,405*3,415*1,420*1,439*1,447*2,451*1,455*2,456*3,470*1,475*2,493*1,518*2,521*3,527*1";
w["run."]="33*1,42*1,43*2,200*1,222*1,234*1,322*1,357*1,447*1,456*2,470*1,475*1";
w["rundown"]="132*1,343*1";
w["runner"]="390*1";
w["runner."]="390*1";
w["runtim"]="238*1";
w["s"]="10*1,15*1,17*1,23*1,26*2,42*12,43*2,53*13,58*1,60*1,75*3,79*1,94*1,97*1,99*1,103*1,109*1,112*1,115*1,129*1,138*3,142*1,147*1,156*2,158*1,160*2,167*1,168*2,171*1,174*1,182*1,194*1,198*1,222*1,227*1,234*3,238*2,242*1,243*1,254*1,257*1,258*5,281*2,291*2,306*1,310*2,318*2,325*1,328*3,340*1,343*1,354*1,356*1,357*1,359*2,362*1,365*3,374*2,382*1,393*1,395*2,400*1,402*12,405*1,414*1,416*1,431*2,440*1,448*1,455*3,459*2,478*1,492*1,507*2,509*2,518*3,520*3,523*1";
w["s."]="156*1,238*1,340*1";
w["s3"]="191*3,253*3";
w["s3."]="191*1,253*1";
w["s3get"]="175*2";
w["s3gettask"]="253*46,446*1";
w["s3put"]="472*5";
w["s3puttask"]="191*46,446*1";
w["s5"]="259*1,363*3";
w["sa"]="402*2";
w["sablotorn"]="520*3";
w["safe"]="53*1,81*1";
w["safest"]="42*1";
w["sage"]="404*1";
w["sam"]="42*1,310*1";
w["same"]="11*1,42*6,78*1,102*1,109*1,132*1,133*1,138*1,167*1,169*1,178*1,179*1,183*2,197*1,202*2,205*2,220*2,232*1,240*1,241*1,243*1,247*2,274*2,332*1,335*1,343*1,354*1,377*4,385*3,386*1,394*2,397*1,402*11,403*4,414*1,445*2,458*1,464*2,507*1";
w["same:"]="247*1";
w["samp"]="451*1";

s

SheetJS Spreadsheet Helper Library

Apache-2.0
Latest version published 5 years ago

Package Health Score

56 / 100
Full package analysis