Skip to content

Instantly share code, notes, and snippets.

View mainiak's full-sized avatar

Jakub Viták mainiak

View GitHub Profile
@siliskin
siliskin / server.js
Created July 13, 2012 22:38 — forked from alaingilbert/server.js
EventSource server with nodejs
var http = require('http')
, fs = require('fs')
, PORT = process.argv[2] || 8080
, HOST = process.argv[3] || '127.0.0.1';
http.createServer(function (req, res) {
if (req.url == '/events') {
res.writeHead(200, { 'Content-Type' : 'text/event-stream'
, 'Cache-Control' : 'no-cache'
@richieforeman
richieforeman / makeauthority.sh
Created July 23, 2012 21:38
Issue Your Own Self-Signed S/MIME Certs with OpenSSL
# Run this once
openssl genrsa -des3 -out ca.key 4096
openssl req -new -x509 -days 365 -key ca.key -out ca.crt
@adammw
adammw / README.md
Created August 3, 2012 06:30
Node.js for Raspberry Pi

Node.js for Raspberry Pi

Pre-built binaries

Recent releases have been pre-built using cross-compilers and this script and are downloadable below.

If you have found these packages useful, give me a shout out on twitter: @adammw

@trevordixon
trevordixon / csv.pegjs
Created August 15, 2012 19:28
Javascript CSV Parser generated by PEG.js
{
var separator = ',';
}
start
= comma
comma
= & { return separator = ','; } sv:sv { return sv; }
@adamgit
adamgit / .gitignore
Last active March 20, 2025 10:01
.gitignore file for Xcode4 / OS X Source projects
#########################
# .gitignore file for Xcode4 and Xcode5 Source projects
#
# Apple bugs, waiting for Apple to fix/respond:
#
# 15564624 - what does the xccheckout file in Xcode5 do? Where's the documentation?
#
# Version 2.6
# For latest version, see: http://stackoverflow.com/questions/49478/git-ignore-file-for-xcode-projects
#
@mbostock
mbostock / .block
Last active December 11, 2024 17:30 — forked from mbostock/.block
Bar Chart
license: gpl-3.0
redirect: https://beta.observablehq.com/@mbostock/d3-bar-chart
@mbostock
mbostock / .block
Last active August 21, 2024 02:24
Calendar View
license: gpl-3.0
height: 2910
border: no
redirect: https://observablehq.com/@d3/d3-calendar-view
@mbostock
mbostock / .block
Last active September 6, 2023 14:50
Sunburst Partition
license: gpl-3.0
redirect: https://beta.observablehq.com/@mbostock/d3-sunburst
@mbostock
mbostock / .block
Last active May 8, 2023 14:30 — forked from mbostock/.block
Treemap
border: no
height: 600
license: gpl-3.0
redirect: https://beta.observablehq.com/@mbostock/d3-treemap
@uupaa
uupaa / HTML5FunctionsSQLiteDBPath.txt
Created January 31, 2013 10:48
HTML5 Functions SQLite.db path. WebStorage(LocalStorage), WebSQL, Application Cache, IndexedDB
MobileSafari:
Application Cache:
?
WebSQL:
/var/mobile/Library/WebKit/Databases/
WebStorage:
/var/mobile/Library/WebKit/LocalStorage/
IndexedDB:
?