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
// install via `npm install -g shooter` | |
(function () { | |
var http = require('http'); | |
var fs = require('fs'); | |
var api = {}; | |
var file_hash = ''; | |
var file_name = ''; | |
api.getHash = function (filename) { | |
var crypto = require('crypto'); |
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
#define RS 8 | |
#define EN 9 | |
#define backlight 10 | |
#define RS_L digitalWrite(RS,LOW) | |
#define RS_H digitalWrite(RS,HIGH) | |
#define EN_L digitalWrite(EN,LOW) | |
#define EN_H digitalWrite(EN,HIGH) | |
// commands |
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 <assert.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string> | |
extern "C" { | |
#include <libavformat/avformat.h> | |
#include <libavutil/avstring.h> | |
} |
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 | |
CLIENT=/opt/bin/redis-cli | |
HOSTING_SERVER="brick5" | |
HOSTING_PORT=6379 | |
REQUEST="${CLIENT} -h ${HOSTING_SERVER}" | |
ALL_WORKING_SERVERS_SET="locked_server" |
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 org.apache.hadoop.hbase.regionserver; | |
import java.awt.Color; | |
import java.awt.Font; | |
import java.io.File; | |
import java.io.BufferedReader; | |
import java.io.FileReader; | |
import java.io.IOException; | |
import java.io.InputStreamReader; | |
import java.lang.management.ManagementFactory; |
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
#!/usr/bin/env sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
# |
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
/* | |
This program implements the BBP algorithm to generate a few hexadecimal | |
digits beginning immediately after a given position id, or in other words | |
beginning at position id + 1. The original C version was implemented by | |
David H. Bailey. | |
*/ | |
/* | |
Marcus Zy 06-04-2012 "Good Friday" | |
This is my first ever 'go' program. | |
*/ |
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 | |
//problem d | |
import ( | |
"fmt" | |
) | |
var lm []int64 |
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" | |
"strconv" | |
"strings" | |
"os" | |
"bufio" | |
) |
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
/*consider a kind of configuration file in amazon sofeware system. this kind of configuration file's format looks like this: | |
B=10; | |
A={ | |
A=100; | |
B=BDE; |
OlderNewer