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
// Searches for <span data-glossary="spectra">spectra<span> | |
// Replaces with a link to the glossary item or a link to create a new glossary entry | |
$(function() { | |
var listen = function(selector, cb) { | |
$('body').on('DOMNodeInserted', selector, function(e) { cb(e.target); }); | |
}; | |
$.getJSON('https://cdn.rawgit.com/metocean/glossary/gh-pages/catalog.json', function(catalog) { | |
var indexed = {}; | |
for (i = 0, len = catalog.length; i < len; i++) { | |
item = catalog[i]; |
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
#!/bin/sh | |
onSIGHUP() { | |
echo "INIT: Reloading all services" | |
sv reload /etc/service/* | |
kill -HUP $pid | |
} | |
onSIGINT() { | |
echo "INIT: Terminating all services" |
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
fs = require 'fs' | |
path = require 'path' | |
async = require 'odo-async' | |
isgit = require 'is-git' | |
tags = | |
open: '/Users/tcoats/Open' | |
odo: '/Users/tcoats/Odo' | |
metocean: '/Users/tcoats/MetOcean' | |
mayhem: '/Users/tcoats/Mayhem' |
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
#include <stdlib.h> | |
#include <stdio.h> | |
int main() { | |
pid_t pid; | |
int i; | |
for (i = 0; ; i++) { | |
pid = fork(); |
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
define [ | |
'd3' | |
], (d3) -> | |
class Direction | |
constructor: (options) -> | |
{ | |
@element | |
@data | |
@margin | |
@width |
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
Show hidden characters
{ | |
"cmd": ["lessc", "$file", "${file_path}/${file_base_name}.css", "--verbose"], | |
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)", | |
"selector": "source.less", | |
"osx": | |
{ | |
"path": "/usr/local/bin:$PATH" | |
}, |
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
lanuchy | |
bump | |
z | |
highlight | |
trash | |
go-every |
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
# Dynamic content | |
# =============== | |
# Using a blog as an example | |
# Render content on the server | |
# ---------------------------- | |
# | |
# /admin/editpost/234 | |
app.get '/admin/editpost/:id', (req, res) => | |
id = req.query.id |
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
{ | |
"auto_complete": true, | |
"auto_complete_commit_on_tab": true, | |
"auto_complete_with_fields": true, | |
"binary_file_patterns": | |
[ | |
"*min.js", | |
"*min.css" | |
], | |
"bold_folder_labels": true, |
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
define ['http', 'express', 'odo/config'], (http, express, config) -> | |
(plugins) -> | |
app = express() | |
# express config | |
for key, value of config.express | |
app.set key, value | |
# Configure express |