This file contains 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
class Scene | |
constructor: (@three_scene) -> | |
objects = {} | |
lights = {} | |
add_object: (name, value) -> | |
objects[name] = value | |
@three_scene.add value | |
get_object: (name) -> | |
objects[name] | |
del_object: (name) -> |
This file contains 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
_ = require 'underscore' | |
http = require 'http' | |
fs = require 'fs' | |
every = (delay, cb) -> | |
setInterval cb, delay*1000 | |
prev_total = prev_idle = 0 | |
every 1, -> |
This file contains 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
gist is an installed package. | |
Status: Installed in `/home/lesbroot/.emacs.d/elpa/gist-1.0.2/'. | |
Version: 1.0.2 | |
Requires: eieio-1.3, gh-0.5.3, tabulated-list-0 | |
Summary: Emacs integration for gist.github.com |
This file contains 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
Wrote /home/lesbroot/.emacs.d/elpa/pcache-0.2.3/pcache.elc | |
Checking /home/lesbroot/.emacs.d/elpa/pcache-0.2.3... | |
Done (Total of 2 files compiled, 1 skipped) | |
Contacting host: marmalade-repo.org:80 | |
Parsing tar file...done | |
Extracting gh-0.5.3/ | |
Extracting gh-0.5.3/gh-common.el | |
Wrote /home/lesbroot/.emacs.d/elpa/gh-0.5.3/gh-common.el | |
Extracting gh-0.5.3/README | |
Wrote /home/lesbroot/.emacs.d/elpa/gh-0.5.3/README |
This file contains 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
_ = require 'underscore' | |
http = require 'http' | |
fs = require 'fs' | |
sys = require 'sys' | |
os = require 'os' | |
exec = (require 'child_process').exec | |
udp = require 'dgram' | |
hostname = (require 'os').hostname() | |
iface = 'wlan0' | |
udp_port = 8125 |
This file contains 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
_ = require 'underscore' | |
http = require 'http' | |
fs = require 'fs' | |
sys = require 'sys' | |
os = require 'os' | |
exec = (require 'child_process').exec | |
udp = require 'dgram' | |
hostname = (require 'os').hostname() | |
iface = 'wlan0' | |
udp_port = 8125 |
This file contains 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
(ns hash-test.core | |
(:require [criterium.core :as crit])) | |
(defn fill-with-into [items] | |
(into {} (map vec items))) | |
(defn no-assoc [items] | |
(apply hash-map items)) | |
(defn assoc-all [items] |
This file contains 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
import maf, os | |
maf.setBasedir( os.path.dirname( os.path.abspath( __file__ ) ) ) | |
import pkgutil | |
import argparse | |
import management2.tasks | |
import inspect | |
from maf.application.management.application import Application | |
import config | |
from management2.registry import provide_resource |
This file contains 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
using EpForceDirectedGraph.cs; | |
public class NodeDataVR : NodeData | |
{ | |
public NodeDataVR(JSONObject entity) { | |
this.jsonObject = entity; | |
this.label = entity ["id"].str; | |
} | |
public JSONObject jsonObject { get; set; } |
This file contains 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
#include <Adafruit_NeoPixel.h> | |
#ifdef __AVR__ | |
#include <avr/power.h> | |
#endif | |
#define PIN 8 | |
#define NUM_LEDS 240 | |
#define BRIGHTNESS 100 | |
#define PI 3.1415926535897932384626433832795 |
OlderNewer