Skip to content

Instantly share code, notes, and snippets.

@jo
jo / index.html
Created November 15, 2012 14:07 — forked from jasondavies/index.html
longscroll.js
<!DOCTYPE html>
<meta charset="utf-8">
<style>
.longscroll {
overflow-y: auto;
width: 480px;
height: 500px;
float: left;
}
.longscroll .row {
@jo
jo / snow.sh
Created December 13, 2012 10:32
clear; while :; do echo $LINES $COLUMNS $(($RANDOM%$COLUMNS)); sleep 0.1; done | awk '{a[$3]=0; for(x in a) {o=a[x]; a[x]=a[x]+1; printf "\033[%s;%sH ",o,x; printf "\033[%s;%sH*\033[0;0H",a[x],x;}}'
@jo
jo / gist:5012357
Created February 22, 2013 10:21
grunt node-qunit
Running "node-qunit" task
TypeError: Cannot read property 'path' of undefined
at absPath (/home/jo/github/daleharvey/pouchdb/node_modules/grunt-node-qunit/node_modules/qunit/lib/testrunner.js:101:13)
at exports.run (/home/jo/github/daleharvey/pouchdb/node_modules/grunt-node-qunit/node_modules/qunit/lib/testrunner.js:146:21)
at Array.forEach (native)
at Object.exports.run (/home/jo/github/daleharvey/pouchdb/node_modules/grunt-node-qunit/node_modules/qunit/lib/testrunner.js:141:11)
at Object.module.exports (/home/jo/github/daleharvey/pouchdb/node_modules/grunt-node-qunit/tasks/node-qunit.js:14:9)
at Object.task.registerTask.thisTask.fn (/home/jo/github/daleharvey/pouchdb/node_modules/grunt/lib/grunt/task.js:58:16)
@jo
jo / js-crypto-libraries.md
Last active May 22, 2024 13:16
List of JavaScript Crypto libraries.

JavaScript Crypto Libraries

List some crypto libraries for JavaScript out there. Might be a bit out dated. Scroll to the bottom.

WebCryptoAPI

http://www.w3.org/TR/WebCryptoAPI/

This specification describes a JavaScript API for performing basic cryptographic operations in web applications, such as hashing, signature generation and verification, and encryption and decryption. Additionally, it describes an API for applications to generate and/or manage the keying material necessary to perform these operations. Uses for this API range from user or service authentication, document or code signing, and the confidentiality and integrity of communications.

Keybase proof

I hereby claim:

  • I am jo on github.
  • I am tf (https://keybase.io/tf) on keybase.
  • I have a public key whose fingerprint is 105E 49AD B0BB 2700 45F6 A242 3F96 EE03 7E73 481C

To claim this, I am signing this object:

Transparent Git Encryption

This document has been modified from its [original format][m1], which was written by Ning Shang (geek@cerias.net). It has been updated and reformatted into a [Markdown][m2] document by [Woody Gilk][m3] and [republished][m4].

Description

When working with a remote git repository which is hosted on a third-party storage server, data confidentiality sometimes becomes

{
"vars": {
"@gray-base": "#000",
"@gray-darker": "lighten(@gray-base, 13.5%)",
"@gray-dark": "lighten(@gray-base, 20%)",
"@gray": "lighten(@gray-base, 33.5%)",
"@gray-light": "lighten(@gray-base, 46.7%)",
"@gray-lighter": "lighten(@gray-base, 93.5%)",
"@brand-primary": "darken(#428bca, 6.5%)",
"@brand-success": "#5cb85c",
@jo
jo / gist:96ad05cb94cd630381d2
Created April 29, 2015 16:07
CouchDB proxy
function(doc) {
function emitObject(path, o) {
if (typeof o !== 'object') {
return emit(path, o);
}
for (var key in o) {
emitObject(path.concat(key), o[key])
}
}
@jo
jo / package.json
Last active January 20, 2016 20:49
{
"name": "hello-import",
"version": "1.0.0",
"scripts": {
"build": "rollup -c"
},
"author": "Johannes J. Schmidt <jo@die-tf.de> (http://die-tf.de/)",
"license": "Apache-2.0",
"devDependencies": {
"events": "^1.1.0",