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
app = Application("Safari"); | |
doc = app.Document().make(); | |
win = app.windows[doc.name()]; | |
win.currentTab.url = "https://share.coursera.org/wiki/index.php/ML:Main"; | |
tab = app.windows[0].currentTab(); //somehow we need this. | |
ret = false; | |
do { |
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
<?xml version="1.0"?> | |
<root> | |
<item> | |
<name>[KY]Ctrl + @;:] to arrow key</name> | |
<identifier>private.ky_arrow</identifier> | |
<autogen> | |
__KeyToKey__ | |
KeyCode::JIS_ATMARK,ModifierFlag::CONTROL_L, | |
KeyCode::CURSOR_UP | |
</autogen> |
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
http://www.mcafee.com/jp/resources/white-papers/wp-csrf-attack-defense.pdf?view=legacy | |
http://www.ipa.go.jp/security/vuln/websecurity.html | |
https://www.owasp.org/index.php/Top_10_2007-Cross_Site_Request_Forgery | |
https://www.google.co.jp/search?sourceid=chrome-psyapi2&ion=1&espv=2&ie=UTF-8&q=CSRF%20%E8%84%86%E5%BC%B1%E6%80%A7%E3%82%B9%E3%82%AD%E3%83%A3%E3%83%8A&oq=CSRF%20%E8%84%86%E5%BC%B1%E6%80%A7%E3%82%B9%E3%82%AD%E3%83%A3%E3%83%8A&aqs=chrome..69i57.9829j0j7 | |
https://superevr.com/blog/2013/dont-use-linksys-routers | |
http://blog.kotowicz.net/2011/05/invisible-arbitrary-csrf-file-upload-in.html | |
http://www.jpcert.or.jp/research/html5.html |
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
puts "building with build_config_parallella.rb" | |
MRuby::Build.new do |conf| | |
# load specific toolchain settings | |
toolchain :gcc | |
enable_debug | |
conf.gembox 'default' |
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
#include <Servo.h> | |
Servo servo; | |
unsigned long start_ms; | |
void moveServo(){ | |
//attach/detach each time to avoid servo noise. | |
servo.attach(10); |
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
package main | |
/* | |
#cgo CFLAGS: -I/Users/koji/work/mruby/mruby/include | |
#cgo LDFLAGS: libmyclib.a -lreadline /Users/koji/work/mruby/mruby/build/host/lib/libmruby.a | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include "myclib.h" | |
#include <readline/readline.h> | |
#include <readline/history.h> |
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
#if defined(ARDUINO) && (ARDUINO==153) | |
#include <Wire.h> | |
#endif | |
#include <Servo.h> | |
#ifdef MPIDE | |
#else | |
#include <Arduino.h> | |
#endif |
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
[koji@macbookpro:~/work/mruby]$ cat block_comment.rb | |
puts "hello" | |
=begin | |
here is a comment | |
=end | |
puts "bye" | |
[koji@macbookpro:~/work/mruby]$ ruby block_comment.rb | |
hello |
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
MRuby::CrossBuild.new("STM32F4") do |conf| | |
toolchain :gcc | |
ARM_TOOLCHAIN_PATH = "/Applications/MapleIDE.app/Contents/Resources/Java/hardware/tools/arm/bin" | |
LIBMAPLE_PATH = "/Users/koji/tools/AeroQuad/Libmaple/libmaple" | |
conf.cc do |cc| | |
cc.command = "#{ARM_TOOLCHAIN_PATH}/arm-none-eabi-gcc" | |
cc.include_paths << ["#{LIBMAPLE_PATH}/libmaple", |
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
MRuby::CrossBuild.new("Arduino Due") do |conf| | |
toolchain :gcc | |
# Mac OS X | |
ARDUINO_PATH = '/Applications/Arduino.app/Contents/Resources/Java' | |
# GNU Linux | |
#ARDUINO_PATH = '/opt/arduino' | |
BIN_PATH = "#{ARDUINO_PATH}/hardware/tools/g++_arm_none_eabi/bin" | |
SAM_PATH = "#{ARDUINO_PATH}/hardware/arduino/sam" | |
TARGET_PATH = "#{SAM_PATH}/variants/arduino_due_x" |