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 http = require('http'); | |
var fs = require('fs'); | |
var filename = process.argv[process.argv.length-1]; | |
var filesize = fs.statSync(filename).size; | |
var boundary = "----FuckingBoundary12341234" | |
var options = { | |
host: '192.168.0.3', | |
port: '8080', |
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 app = require('express').createServer(); | |
var fs = require('fs'); | |
app.get('/', function(req, res, next) { | |
console.log(process.pid); | |
res.send("Hi"); | |
}); | |
var stream = fs.createWriteStream("logfile", { flags: 'a' }); | |
function logandlog() { |
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 url = 'http://localhost:3279/add'; | |
request({ | |
method: 'POST', | |
url: url, | |
form: { | |
category: 'kbo', | |
id: '28178', |
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
exports.load = function(ffmpeg) { | |
ffmpeg | |
.toFormat('m4v') | |
.withVideoBitrate('1200k') | |
.withVideoCodec('libx264') | |
.withSize('1024x768') | |
.withAudioBitrate('128k') | |
.withAudioCodec('libvo_aacenc') | |
.withAudioChannels(2) | |
.addOptions(['-flags', '+loop+mv4', '-cmp', '+chroma', '-partitions','+parti4x4+partp8x8+partb8x8', '-flags2', |
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
<html> | |
<head> | |
<style type="text/css"> | |
table.tile { | |
position: relative; | |
padding: 0; | |
border-spacing: 0; | |
border: 0; | |
border-collapse: collapse; | |
} |
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
#!/usr/bin/env node | |
var fs = require('fs'); | |
var dicts = { 4: 'word4.txt', 5: 'word5.txt' }; | |
var destination = process.argv.pop(); | |
var source = process.argv.pop(); | |
if(destination.length != source.length) { | |
throw new Error("Argument Error : source and destination should be equal length"); |
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
#include <memory> | |
#include <iostream> | |
using namespace std; | |
typedef function<void(int)> func; | |
shared_ptr<func> create_lambda() { | |
return make_shared<func>([]() { | |
int tmp; |
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
<!doctype HTML> | |
<html ng-app> | |
<head> | |
<title>result</title> | |
<meta charset="utf-8"/> | |
<!--<link rel="stylesheet" href="css/bootstrap.min.css"/>--> | |
<style type="text/css"> | |
table { | |
font-size: 6px; | |
} |
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
#!/usr/bin/env perl | |
use utf8; | |
use strict; | |
binmode STDOUT, ':utf8'; | |
use Tk; | |
use Tk::Photo; | |
use Tk::PNG; | |
use Tk::JPEG; | |
use Tk::After; |
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
module.exports = (grunt) -> | |
grunt.initConfig { | |
pkg: grunt.file.readJSON('package.json') | |
coffee: { | |
compile: { | |
options: { | |
bare: true | |
} | |
files: { | |
'public/dist/plugin.js': 'public/collector/plugin.coffee' |
OlderNewer