I hereby claim:
- I am aredridel on github.
- I am aredridel (https://keybase.io/aredridel) on keybase.
- I have a public key whose fingerprint is 7181 12A2 A598 9A18 C5C6 733A 382C 45D1 EB10 1DAC
To claim this, I am signing this object:
var exec = require('child_process').exec; | |
function wew(cb){ | |
exec("iwlist wlan2 scan|grep -Po '(?<=Address: )\\S+|(?<=Signal level=)\\S+|(?<=ESSID:\")[^\"]+'", test(cb)); | |
} | |
function test(cb) { | |
return function (error, stdout, stderr) { | |
var out = stdout.replace(/^\s+/mg, ''); | |
out = out.split('\n'); |
ometa DataUrl { | |
scheme = "data:", | |
type = /[a-z-]+/, | |
charset = /[a-z-]+/, | |
mimeType = type "/" type ( ";charset=" charset )?, | |
charset = |
I hereby claim:
To claim this, I am signing this object:
import com.google.api.client.auth.oauth2.Credential; | |
import com.google.api.client.googleapis.auth.oauth2.GoogleAuthorizationCodeFlow; | |
import com.google.api.client.googleapis.auth.oauth2.GoogleClientSecrets; | |
import com.google.api.client.googleapis.javanet.GoogleNetHttpTransport; | |
import com.google.api.client.http.HttpTransport; | |
import com.google.api.client.json.JsonFactory; | |
import com.google.api.client.json.jackson2.JacksonFactory; | |
import com.google.api.client.util.store.DataStoreFactory; | |
import com.google.api.client.util.store.FileDataStoreFactory; | |
import com.google.api.services.androidpublisher.AndroidPublisher.Builder; |
var fs = require('fs'); | |
var http = require('http'); | |
var png = fs.readFileSync('x.png.txt', 'utf8'); | |
http.createServer(function (req, res) { | |
res.setHeader('Content-Type', 'image/png'); | |
res.end(new Buffer(png, 'base64')); | |
}).listen(8080); |
var http = require('http'); | |
var bl = require('bl'); | |
function start(callback) { | |
option = {}; | |
options.path = '/start'; | |
var req = http.request(options, function (res) { res.pipe(bl(callback)) }); | |
req.end(); | |
} |
4-6 servings. | |
3.5 oz dried rice noodles, cooked; or use spaghetti | |
2 carrots, grated | |
1/2 medium napa cabbage, shredded finely (regular cabbage works too) | |
5 cloves of garlic, minced | |
1 tablespoon fresh ginger, grated | |
3 green onions, sliced | |
1/2 to 1 teaspoon sesame oil | |
1 to 2 tablespoons brown sugar |
var P = require('bluebird'); | |
var tap = require('tap'); | |
var pt = wrap(tap); | |
function wrap(orig) { | |
return Object.create(orig, { | |
test: { | |
value: function(name, options, cb) { | |
if (!cb) { | |
cb = options; |
Proposed API for HTML5 parser in Javascript | |
var HTML5 = require('html5') | |
HTML5.parse(string, [{DOM: domModule}]) -> DOM objects | |
new HTML5.Parser(source, [{DOM: domModule}]) -> eventEmitter with "document" property. emits "end" when fully parsed, and the document property is a DOM tree | |
Internal: |