This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@import url("https://cdn.rawgit.com/afonsof/jenkins-material-theme/gh-pages/dist/material-light.css"); | |
body, table, form, input, td, th, p, textarea, select { | |
font-family: Roboto, sans-serif !important; | |
} | |
h1 { | |
margin: 5px 0; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apply plugin: 'com.android.application' | |
android { | |
compileSdkVersion ... | |
buildToolsVersion ... | |
productFlavors { | |
// Alpha/Dev/Nightly/Preview | |
alpha { | |
applicationId "com.myapp.alpha" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM alpine:3.2 | |
EXPOSE 8118 9050 | |
RUN echo '@edge http://nl.alpinelinux.org/alpine/edge/main' >> /etc/apk/repositories && \ | |
echo '@testing http://nl.alpinelinux.org/alpine/edge/testing' >> /etc/apk/repositories && \ | |
apk --update add privoxy@edge tor@testing runit@testing | |
COPY services /etc/service/ | |
CMD ["runsvdir", "/etc/service"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Promise = require('bluebird'); | |
var request = Promise.promisifyAll(require('request')); | |
var url1='http://httpbin.org/', url2=url1, url3=url1, url4=url1; | |
async function foo() { | |
var res1 = await request.getAsync(url1); | |
var res2 = await request.getAsync(url2); | |
var res3 = await request.getAsync(url3); | |
var res4 = await request.getAsync(url4); | |
return "whew all done"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Promise = require('bluebird'); | |
var assert = require('assert'); | |
var request = Promise.promisifyAll(require('request')); | |
var url1='http://httpbin.org/', url2=url1, url3=url1, url4=url1; | |
describe('context', function() { | |
it('should kill callbacks', Promise.coroutine(function*() { | |
// Use destructuring since "request" returns multiple values | |
[res1] = yield request.getAsync(url1); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Promise = require('bluebird'); | |
var request = Promise.promisifyAll(require('request')); | |
var url1='http://httpbin.org/', url2=url1, url3=url1, url4=url1; | |
function* foo() { | |
var res1 = yield request.getAsync(url1); | |
var res2 = yield request.getAsync(url2); | |
var res3 = yield request.getAsync(url3); | |
var res4 = yield request.getAsync(url4); | |
return "whew all done"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Promise = require('bluebird'); | |
var request = Promise.promisifyAll(require('request')); | |
var url1='http://httpbin.org/', url2=url1, url3=url1, url4=url1; | |
function foo() { | |
return request.getAsync(url1) | |
.then(function(res1) { | |
return request.postAsync(url2); | |
}).then(function(res2) { | |
return request.putAsync(url3); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var request = require('request'); | |
var url1='http://httpbin.org/', url2=url1, url3=url1, url4=url1; | |
function foo(finalCallback) { | |
request.get(url1, function(err1, res1) { | |
if (err1) { return finalCallback(err1); } | |
request.post(url2, function(err2, res2) { | |
if (err2) { return finalCallback(err2); } | |
request.put(url3, function(err3, res3) { | |
if (err3) { return finalCallback(err3); } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'formula' | |
class Pngout < Formula | |
url 'http://static.jonof.id.au/dl/kenutils/pngout-20150319-darwin.tar.gz' | |
homepage 'http://www.jonof.id.au/kenutils' | |
sha256 'ff7905970457ee5c96776b94e0bf8a22b41fe05fc0cededb16da1c2c0aa5c65d' | |
version '20150319' | |
def install | |
prefix.install Dir['*'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ "products": [{ "id": 1, "name": "Apple iPad", "description": "Discover the world of iPad. Introducing iPad Air and the iPad mini with Retina display.", "price": 123 }, { "id": 2, "name": "Galaxy S5", "description": "Samsung Galaxy S5 smartphone with 5.10-inch 1080x1920 display.", "price": 234 }, { "id": 3, "name": "Moto X", "description": "Moto X is ready when you are. It responds to your voice—no touching necessary.", "price": 444 }, { "id": 4, "name": "iPhone 5S", "description": "With a new fingerprint identity sensor, a 64-bit A7 chip and better iSight camera", "price": 555 }, { "id": 5, "name": "HTC One", "description": "HTC One (M8) smartphone with 5.00-inch 1080x1920 display", "price": 287 }, { "id": 6, "name": "LG G3", "description": "LG G3 smartphone with 5.50-inch 1440x2560 display and 2.46GHz processor", "price": 321 } ] } |
NewerOlder