This file contains hidden or 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/env python | |
# -*- coding: shift_jis -*- | |
# | |
# Written by yamabiko | |
# 2015/July/03 | |
import wx | |
PROGRAM_TITLE = "Oscillo view ver. 0.1" | |
PROGRAM_WRITER = "written by yamabiko" |
This file contains hidden or 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/env python | |
# -*- coding: shift_jis -*- | |
# | |
# Written by yamabiko | |
# 2015/July/03 | |
import wx | |
PROGRAM_TITLE = "Oscillo view ver. 0.1" | |
PROGRAM_WRITER = "written by yamabiko" |
This file contains hidden or 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/env python | |
# | |
# Written by yamabiko | |
# 2015/July/03 | |
import wx | |
import os | |
import datetime | |
import math |
This file contains hidden or 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/env python | |
# | |
# Written by yamabiko | |
# 2015/July/03 | |
import Tkinter as tk | |
import math | |
canvas_width = 600 | |
canvas_height = 480 |
This file contains hidden or 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/env python | |
# | |
# Written by yamabiko | |
# 2015/July/03 | |
import Tkinter as tk | |
import math | |
canvas_width = 600 | |
canvas_height = 480 |
This file contains hidden or 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
require './parser.rb' | |
def get_code | |
code = gets | |
return code.chomp | |
end | |
def lexical_analyze(str) | |
tokens = str.split(/\s+/) | |
res = [] |
This file contains hidden or 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
class SampleParser | |
prechigh | |
nonassoc MINUS | |
left '*' '/' '%' | |
left '+' '-' | |
preclow | |
token var int | |
rule |
This file contains hidden or 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
require 'twitter' | |
TW_CONSUMER_KEY = " your consumer key " | |
TW_CONSUMER_SECRET = " your consumer secret " | |
TW_ACCESS_TOKEN = " your access token " | |
TW_ACCESS_TOKEN_SECRET = " your access token secret " | |
# ログイン | |
# ログイン不要な操作もありますがこれやっとけば大抵問題ない(適当 | |
twClient = Twitter::REST::Client.new do |config| |
This file contains hidden or 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
require 'twitter' | |
TW_CONSUMER_KEY = " your consumer key " | |
TW_CONSUMER_SECRET = " your consumer secret " | |
TW_ACCESS_TOKEN = " your access token " | |
TW_ACCESS_TOKEN_SECRET = " your access token secret " | |
# ログイン | |
# ログイン不要な操作もありますがこれやっとけば大抵問題ない(適当 | |
twClient = Twitter::REST::Client.new do |config| |
This file contains hidden or 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
#<Twitter::SearchResults:0x00000001aa3150 | |
@attrs={ | |
:statuses=>[ | |
{ | |
:metadata=>{ | |
:result_type=>"recent", | |
:iso_language_code=>"ja" | |
}, | |
:created_at=>"Fri Dec 20 01:54:58 +0000 2013", | |
:id=>4138499781806*****, |
NewerOlder