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 SCREEN_SIZE = 500; //x | |
var SIDE_CELLS = 200; | |
var CELL_SIZE = SCREEN_SIZE / SIDE_CELLS; | |
var FPS = 50; | |
var canvas; | |
var context; | |
window.onload = function() { | |
var field = new Array(SIDE_CELLS*SIDE_CELLS); |
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 SCREEN_WIDTH = 848; | |
var SCREEN_HEIGHT = 576; | |
var SIDE_CELLS = 300; | |
var CELL_SIZE = SCREEN_WIDTH / SIDE_CELLS; | |
var FPS = 10; | |
var canvas; | |
var context; | |
window.onload = function() { |
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/local/bin/python | |
#vim:fileencoding=utf-8 | |
import re | |
import codecs | |
import time | |
import urllib2 | |
from pit import Pit | |
import tweepy | |
import BeautifulSoup |
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/local/bin/python | |
#vim:fileencoding=utf-8 | |
import re | |
import time | |
import urllib2 | |
from pit import Pit | |
import tweepy | |
import BeautifulSoup |
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
const int LED = 12; | |
const int BUTTON = 7; | |
int val = 0; | |
int old_val = 0; | |
int state = 0; | |
void setup() { | |
pinMode(LED, OUTPUT); | |
pinMode(BUTTON, INPUT); |
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
syntax enable | |
set number | |
colorscheme desert | |
" NeoBundle -------------------------- | |
if 0 | endif | |
filetype off |
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
#さくらVPS Ubuntu16.04 Docker | |
$ sudo apt-get update | |
$ sudo apt-get upgrade | |
$ sudo adduser mastodon | |
$ sudo gpasswd -a mastodon sudo | |
# /etc/iptables/iptables.rules |
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 python | |
# -*- coding:utf-8 -*- | |
import re | |
import time | |
import urllib2 | |
import tweepy | |
import BeautifulSoup | |
import xml.sax.saxutils |
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
blank |
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 python | |
# -*- coding:utf-8 -*- | |
import tweepy | |
import random | |
import time | |
def readFile(path): |