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
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
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
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
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_SIZE = 500; // キャンバスの幅 | |
var SIDE_CELLS = 200; // 一辺のセルの数 | |
var CELL_SIZE = SCREEN_SIZE / SIDE_CELLS; // セルの幅 | |
var FPS = 10; // フレームレート | |
var canvas; //= document.getElementById('world'); | |
var context; //= canvas.getContext('2d'); | |
window.onload = function() { | |
var field = new Array(SIDE_CELLS*SIDE_CELLS); // フィールド情報 | |
var tempField = 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
#!/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
#!/usr/local/bin/python | |
#vim:fileencoding=utf-8 | |
import re | |
import cgi | |
import os | |
import Cookie | |
import sys | |
sys.path.append('hoge') | |
import tweepy |
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
<!-- SCM Music Player http://scmplayer.net --> | |
<script type="text/javascript" src="http://scmplayer.net/script.js" | |
data-config="{'skin':'skins/black/skin.css','volume':50,'autoplay':true,'shuffle':true,'repeat':1,'placement':'bottom','showplaylist':false,'playlist':[{'title':'Randy Meisner - Hearts on Fire (Dallas 1982)','url':'http://www.randymeisneronline.com/multimedia/MP3/HeartsOnFireDallas82.mp3'},{'title':'Fall Out Boy %u2013 Sugar, We%27re Goin Down','url':'http://www.youtube.com/watch?v=3n-9Rsn52Qk'},{'title':'Elvis Presley - Money Honey','url':'http://www.youtube.com/watch?v=Ev7qUObTliM'},{'title':'Elton John %u2013 Captain Fantastic And The Brown Dirt Cowboy','url':'http://www.youtube.com/watch?v=zT-7meAF-_g'},{'title':'Nina Simone - Who Am I?','url':'http://www.youtube.com/watch?v=ykIuoawZ1KY'},{'title':'Emerson, Lake & Palmer - The Sheriff ','url':'http://www.youtube.com/watch?v=0FgKcnyRNKM'},{'title':'Genesis - it.','url':'http://www.youtube.com/watch?v=eWgphYPf0PA'},{'title':'Josh Rouse - Direc |