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
View keybase.md

Keybase proof

I hereby claim:

  • I am ericrange on github.
  • I am ericrange (https://keybase.io/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
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
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
<?php
/* include the csscache lib */
include("csscache.php");
/* optional, make sure caching is turned on.
It's not necessary but improves the browser performance. */
header("Cache-Control: public");
?>
View output.html
<html>
<head>
<link rel="stylesheet" href="/css/cache/tmp/22d992b5.css" type="text/css">
</head>
<body>
<h1>CSSCache</h1>
<p class="lead">A PHP caching engine for CSS</p>
</body>
</html>
View example.php
<html>
<head>
<?php echo CSSCache::ressource(array(
/* Your CSS files */
"/css/normalize.css",
"/css/bootstrap.css",
"less/global.less",
"less/home.less",
"less/changelog.less"
),
You can’t perform that action at this time.