Skip to content

Instantly share code, notes, and snippets.

View a60814billy's full-sized avatar
🦝
I may be slow to respond.

Raccoon a60814billy

🦝
I may be slow to respond.
View GitHub Profile
@a60814billy
a60814billy / makefile
Created September 19, 2013 13:20
100590309 HW7 makefile
#makefile for 100590309 OOP HW 7
UNITLITEDIR = ./CppUnitLite
UNITHEADER = $(wildcard $(UNITLITEDIR)/*.h)
UNITCPP = $(wildcard $(UNITLITEDIR)/*.cpp)
UNITOBJ = $(subst .cpp,.o,$(UNITCPP))
HEADER = $(wildcard *.h)
CPP = $(wildcard *.cpp)
OBJ = $(subst .cpp,.o,$(CPP))
@a60814billy
a60814billy / ibus-chewing.sh
Created September 26, 2013 11:41
Ubuntu 12.04 update ibus-chewing to 1.4.3
sudo wget -P /var/cache/apt/archives/ http://archive.ubuntu.com/ubuntu/pool/main/libc/libchewing/libchewing3-data_0.3.4-1_amd64.deb
sudo wget -P /var/cache/apt/archives/ http://archive.ubuntu.com/ubuntu/pool/main/libc/libchewing/libchewing3_0.3.4-1_amd64.deb
sudo wget -P /var/cache/apt/archives/ http://archive.ubuntu.com/ubuntu/pool/main/i/ibus-chewing/ibus-chewing_1.4.3-1ubuntu1_amd64.deb
sudo dpkg -i /var/cache/apt/archives/*chewing*amd64.deb
@a60814billy
a60814billy / menu.js
Last active December 24, 2015 12:29
lab
// SnakeGame namespace
var SnakeGame = SnakeGame || {};
SnakeGame.fps = document.getElementById("fps");
// MenuState Object
SnakeGame.MenuState = {
index: 0,
item: ["Start" , "About"],
setup: function(){
console.log(this.item.length);
#include <stack>
#include <string>
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
using namespace std;
stack<string> addBit(stack<string> ori);
void generating(stack<string> ori, stack<string> *n);
#include <cstdlib>
#include <cstdio>
#include <GL/freeglut.h>
#include <iostream>
#include <fstream>
#include <sstream>
#include <list>
#include <vector>
using namespace std;
#include <cstdlib>
#include <cstdio>
#include <iostream>
#include <fstream>
#include <sstream>
#include <string>
#include <cmath>
using namespace std;
#include <cstdlib>
#include <iostream>
#include <string>
#include <fstream>
#include <algorithm>
#include <vector>
using namespace std;
typedef struct _node{
// 原本的用法,可以將變數包起來,並用return 決定要開那些介面
Framework.FpsAnalysis = function () {
if (!(this instanceof arguments.callee)) return new arguments.callee();
var timeData = new Array(50);
var fpsData = new Array(50);
for (var i = 0; i < fpsData.length; i++) {
timeData[i] = 0;
fpsData[i] = 0;
}
var currentPoint = 1;
@a60814billy
a60814billy / README.md
Last active August 29, 2015 14:11 — forked from denji/README.md
#!/bin/bash
if [ "$1" == "" ]; then
echo "Usage: $0 container_id"
exit 0
fi
result="`sudo docker exec "$1" ifconfig | grep -A1 eth0 | awk {'print $2'}`"
echo $result