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
#! /home/matt/local/bin/iced | |
ask = (question, format, callback) -> | |
stdin = process.stdin | |
stdout = process.stdout | |
stdin.resume() | |
stdout.write(question + ": ") | |
stdin.once 'data', (data) -> | |
data = data.toString().trim() |
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
package main | |
import "fmt" | |
func isPrimeDivisible(c int) bool { | |
prime := 0 | |
for i := 0; i < prime_count; i++ { | |
prime = primes[i] | |
if (prime * prime) > c { | |
return false |
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
var ko = window.ko; | |
if( !ko){ | |
if(typeof window.require === 'function') { | |
try{ | |
ko = require('ko'); | |
} catch { /*ingore */ } | |
try{ | |
ko = require('knockout'); | |
} catch { /*ingore */ } |
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
resp, err := http.Get(url) | |
log.Printf("stream started: %s", url) | |
defer func () { | |
log.Printf("stream closing: %s", url) | |
resp.Body.Close() | |
}() | |
if err != nil { | |
panic(err) | |
} |
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
(function () { | |
var activeTabClass = "yj-active-tab"; | |
var eventsLink; | |
var lastId; | |
var column = yam.$('#column-two'); | |
var mainColumn = column.find('.yj-main-content').empty(); | |
var eventList = yam.$("<div id='event-list'>").appendTo(mainColumn); | |
eventList.click(function () { eventList.empty(); }); //empty the content if an event item is clicked. |
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 gulp from 'gulp' | |
import sourcemaps from 'gulp-sourcemaps' | |
import buffer from 'gulp-buffer' | |
import uglify from 'gulp-uglify' | |
import babel from 'babelify' | |
import watchify from 'gulp-watchify' | |
import livereload from 'gulp-livereload' | |
let watching = false |