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
/** | |
* Pick a number from 1 to 1000 in C | |
* | |
* Copyright (c) 2013 My little startup I hate to love. | |
* All rights reserved. | |
* | |
* Redistribution and use in source and binary forms, with or without | |
* modification, are permitted provided that the following conditions | |
* are met: | |
* |
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
#!/bin/bash | |
# | |
# Add two "H:M:S" times | |
# (c) 2012 @dlsym | |
# | |
# | |
# Time to seconds | |
function t2s { | |
div=3600; ts=0 |
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 <stdio.h> | |
#include <stdlib.h> | |
#include <time.h> | |
#define WIDTH 10 | |
int main() | |
{ | |
int field[WIDTH][WIDTH]; |
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 TeaTime = function( year, month, day, hour, minute, second ) { | |
this.year = year; this.month = month; this.day = day; | |
this.hour = hour; this.minute = minute; this.second = second; | |
var start = new Date( | |
this.year, this.month-1, this.day, | |
this.hour, this.minute, this.second | |
); | |
var now = new Date(); |
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 start = moment("2012-02-15 20:00:00 GMT"); | |
var stop = moment(); | |
console.log( moment( stop.diff( start )).format( 'HH:mm:ss') ); |
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 http = require('http'); | |
var url = require('url'); | |
var accumulate = new Object; | |
var Boxcar = []; | |
var notifo = []; | |
accumulate.events = []; | |
var counter = 9; | |
// Configuration | |
// Interval to check if liveshow starts in 15 Minutes |