This file contains hidden or 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
# example usage | |
# ------------- | |
# "version": "1.2.3-beta" | |
# | |
# value captured by `sed -e` | |
# -------------------------- | |
# | |
# \1 = 1 (major) | |
# \2 = 2 (minor) | |
# \3 = 3-beta (patch) |
This file contains hidden or 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
;(function (d) { | |
Drupal.behaviors.noThanksIllUseJavascript = { | |
attach: function (context, settings) { | |
// initialize | |
while(d.body.firstChild) { | |
d.body.removeChild(d.body.firstChild) | |
} |
This file contains hidden or 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 NETSCAPE-Bookmark-file-1> | |
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"> | |
<H1>DevOps resources</H1> | |
<DL><p> | |
<DT><H3 ADD_DATE="1389300807" LAST_MODIFIED="1395376185">VPS (info & tips)</H3> | |
<DL><p> | |
<DT><A HREF="https://www.digitalocean.com/community/articles/how-to-set-up-couchdb-with-elasticsearch-on-an-ubuntu-13-10-vps" ADD_DATE="1389300764" ICON="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABzklEQVQ4jdVSwWpTURScc+6t7wW1GilUMQt9xYUKoq2J3aQEibiQ0lWz1H8QoSotXGKaFhE3/kERF1F3gpa+ZmGQYElQlOqqgoLYUm1prH1p8u69bgw0EcRtZ3WYwwxnDgPselAncVoV9rhuNGGNJsetVcrXM8F/GwxMzvcD9IS1WYZACBOeMF1i1PPWy1+Wes5ubn9/v6gyjZ0abg0ppSRb+1jAVI2wkw47IxTyMGnOfFs60m2trbhu9HDnBRIA4lO+FxhOkQ2Nbm5fq6rhrT/7SjzrPw1EfaJ66xIlcsUSgGRbhME7z1OanRkLPGBr9MJ4+n5brOm5A9WxdA1EtsUlcsWSZv1IwqwinvfnB7OzF/71qJYIAM7n/XcAEM/6nwem5p5Jo02ohTwJ4HVKKbkmhvq0DjYW1ZXlnQYL4xeTAFC5nT6TyBVLWupkvd5o0Lnp2SHWQgnLZXB43EIaCxxlE8YAWeAu/dAGK1/l1n776u7Iz9FCQXz6EIl6p4L1j2+dHgKA/vyLJBPHRIhDVoqDxuomaV |
This file contains hidden or 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
{ | |
"metadata": { | |
"version": 4.3, | |
"type": "Object", | |
"generator": "ObjectExporter" | |
}, | |
"geometries": [ | |
{ | |
"uuid": "892D4DF7-229E-4DF8-BFFD-083D7AE16140", | |
"type": "CylinderGeometry", |
This file contains hidden or 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 webgl = require('./webgl') | |
, boxes = 32 | |
webgl.init(boxes, function(err, data) { | |
if (err) console.error('init failed') | |
console.log('ready', data) | |
}) |
This file contains hidden or 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
// scene.js | |
// by joates (8-Dec-2013) | |
function onWindowResize() { | |
scene.WIDTH = window.innerWidth | |
scene.HEIGHT = window.innerHeight | |
scene.camera.aspect = scene.WIDTH / scene.HEIGHT | |
scene.camera.updateProjectionMatrix() | |
scene.renderer.setSize(scene.WIDTH, scene.HEIGHT) | |
} |
This file contains hidden or 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
uses crt,palettes; | |
var vgmptr : pointer; | |
vgmseg : word; | |
sintab, | |
costab : array[0..255] of shortint; | |
procedure initmode13h; assembler; | |
asm | |
mov ax,0013h |
This file contains hidden or 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
/** | |
* http://fabiensanglard.net/rayTracing_back_of_business_card/index.php | |
* | |
* $ c++ -O3 -o card card.cpp | |
* $ ./card > n3d.ppm | |
*/ | |
#include <stdlib.h> | |
#include <stdio.h> | |
#include <math.h> |
This file contains hidden or 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
numeric.linspace = function linspace(a,b,n) { | |
if(typeof n === "undefined") n = Math.max(Math.round(b-a)+1,1); | |
if(n<2) { return n===1?[a]:[]; } | |
var i,ret = Array(n); | |
n--; | |
for(i=n;i>=0;i--) { ret[i] = (i*b+(n-i)*a)/n; } | |
return ret; | |
} |
This file contains hidden or 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> | |
<head> | |
<script src="/socket.io/socket.io.js"></script> | |
</head> | |
<body> | |
<h2>Open the debug console</h2><p>(<em>F12 / Ctrl+Shift+K</em>) to view websocket messages</p> | |
</body> | |
<script> |