Skip to content

Instantly share code, notes, and snippets.

Eric Range ericrange

Block or report user

Report or block ericrange

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile

Keybase proof

I hereby claim:

  • I am ericrange on github.
  • I am ericrange ( on keybase.
  • I have a public key whose fingerprint is B522 E94A 7F7A A00B 0BF9 F36D 95A5 D9CD 26B5 21A4

To claim this, I am signing this object:

ericrange / dh-usage.js
Created Mar 31, 2016 — forked from bellbind/dh-usage.js
[nodejs][javascript] Diffie-Hellman key exchange by nodejs-0.5
View dh-usage.js
// node.js 0.5 Diffie-Hellman example
var assert = require("assert");
var crypto = require("crypto");
// the prime is shared by everyone
var server = crypto.createDiffieHellman(512);
var prime = server.getPrime();
// sharing secret key on a pair
ericrange / update-packages.js
Created Aug 29, 2014
Updates package versions in package.json
View update-packages.js
var fs = require("fs");
var exec = require("child_process").exec;
var file = __dirname + "/package.json";
var Commands = [];
var CommandIndex = 0;
fs.readFile(file, "utf8", function (err, data) {
if (err) {
console.log("Error: " + err);
View gist:8505701
.transition (@transition) {
-webkit-transition: @transition;
-moz-transition: @transition;
-ms-transition: @transition;
-o-transition: @transition;
transition: @transition;
View include.php
/* include the csscache lib */
/* optional, make sure caching is turned on.
It's not necessary but improves the browser performance. */
header("Cache-Control: public");
View output.html
<link rel="stylesheet" href="/css/cache/tmp/22d992b5.css" type="text/css">
<p class="lead">A PHP caching engine for CSS</p>
View example.php
<?php echo CSSCache::ressource(array(
/* Your CSS files */
You can’t perform that action at this time.