Skip to content

Instantly share code, notes, and snippets.

View mactkg's full-sized avatar
💭
I may be slow to respond.

mactkg mactkg

💭
I may be slow to respond.
View GitHub Profile
@mactkg
mactkg / Lchika.pde
Created November 15, 2011 10:36
Lchika
void setup(){
pinMode(13, OUTPUT);
}
void loop(){
digitalWrite(13, HIGH);
delay(1000);
digitalWrite(13, LOW);
delay(1000);
}
@mactkg
mactkg / push.pde
Created November 15, 2011 10:59
push
#define LED 13
#define BUTTON 7
int val;
void setup(){
pinMode(LED, OUTPUT);
pinMode(BUTTON, INPUT);
}
#define LED 13
#define BUTTON 7
int val;
int old_val;
int light;
void setup(){
pinMode(LED, OUTPUT);
pinMode(BUTTON, INPUT);
Traceback (most recent call last):
File "/base/python_runtime/python_lib/versions/1/google/appengine/ext/webapp/_webapp25.py", line 701, in __call__
handler.get(*groups)
File "/base/data/home/apps/s~follow-quiz/1.354792608905780482/easy_auth/auth.py", line 93, in get
access_token = auth.get_access_token(request_verifier)
File "/base/data/home/apps/s~follow-quiz/1.354792608905780482/tweepy/auth.py", line 126, in get_access_token
raise TweepError(e)
TweepError: HTTP Error 401: Unauthorized
#!/bin/sh
# /etc/init.d/tiarra
NAME=tiarra
USER=aereal
PROG=/usr/local/src/tiarra/tiarra
PIDFILE=/var/run/$NAME.pid
start() {
echo -n "Starting: $NAME"
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="utf-8" />
<title>mind-catch</title>
<script type="text/javascript" src="./jquery-1.7.min.js"></script>
<script type="text/javascript">
var canvas;
var context;
var socket;
BTFSS WHICH,1
CALL T_RIGHT
BTFSC WHICH,1
CALL T_LEFT
CALL DELAY
RETURN
/Applications/Arduino_1.0_rc2.app/Contents/Resources/Java/hardware/arduino/bootloaders/diskloader% sudo dfu-programmer atmega32u4 flash DiskLoader-Leonardo.hex
Bootloader and code overlap.
Use --suppress-bootloader-mem to ignore
#include<stdio.h>
main(){
unsigned long long a[3]={0L,1L,1L},b,c=0;
printf("%d\n%d\n",a[1],a[2]);
for(b=0;b-98;b++){
c=0;
a[b%3]=a[(b+1)%3]+a[(b+2)%3];
if(!(a[b%3]%3))printf("Fizz"),c=1;
if(!(a[b%3]%5))printf("Buzz"),c=1;
if(!c)printf("%lld",a[b%3]);
#!/bin/bash
#
# supervisord This scripts turns supervisord on
#
# chkconfig: 2345 95 04
#
# description: supervisor is a process control utility. It has a web based
# xmlrpc interface as well as a few other nifty features.
# processname: supervisord
# config: /etc/supervisord.conf