This file contains hidden or 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
package main | |
import "fmt" | |
type Appender struct { | |
data []byte | |
} | |
func (a *Appender) Write(p []byte) (int, error) { | |
newArr := append(a.data, p...) |
This file contains hidden or 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
(function () { | |
'use strict'; | |
var vows = require('vows'), | |
assert = require('assert'); | |
vows.describe('some test').addBatch({ | |
'test level 1': { | |
topic: function () { | |
this.callback(null, 1); |
This file contains hidden or 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
#!/usr/bin/env node | |
(function () { | |
'use strict'; | |
var npm = require('npm'), | |
fs = require('fs'), | |
updateTimeout, | |
seconds = 10; | |
function update(fd) { |
This file contains hidden or 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
function bug() { | |
window.reqwest({ | |
'url': 'http://thisdoesntexisthahahaha.com', | |
'timeout': 1000 * 5, | |
'type': 'html', | |
'success': function () { | |
alert('http://thisdoesntexisthahahaha.com exists??'); | |
}, | |
'error': function () { | |
console.error('Error, trying again'); |
This file contains hidden or 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
function upload(url, uint8Data) { | |
var xhr, | |
formData = new FormData(), | |
blobBuilder = new WebKitBlobBuilder(), | |
blob; | |
blobBuilder.append(uint8Data); | |
blob = blobBuilder.getBlob(); | |
This file contains hidden or 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
package main | |
import ( | |
"web" | |
"os" | |
"fmt" | |
"container/vector" | |
"time" | |
) |
NewerOlder