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
import flash.ui.Multitouch; | |
import flash.ui.MultitouchInputMode; | |
import flash.events.TouchEvent; | |
Multitouch.inputMode = MultitouchInputMode.TOUCH_POINT; //設定觸控模式 | |
Object(root).movie.stop(); //停止 movie 影片片段播放 | |
Object(root).movie.addEventListener(TouchEvent.TOUCH_TAP, myPlay); //新增觸控事件偵測(點擊 Tap) | |
var playMode:Boolean = false; //播放模式,預設 stop ( FALSE 為 stop ) |
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
{ | |
"name": "slim/slim-skeleton", | |
"description": "A Slim Framework skeleton application for rapid development", | |
"keywords": ["microframework","rest","router"], | |
"homepage": "http://github.com/codeguy/Slim-Skeleton", | |
"license": "MIT", | |
"authors": [ | |
{ | |
"name": "Josh Lockhart", | |
"email": "info@joshlockhart.com", |
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
# --------------------------------------------------------------- | |
# Aotoki Theme for oh-my-zsh theme by Aotoki (elct9620@frost.tw) | |
# Home Page : http://frost.tw/ | |
# -------------------------------------------------------------- | |
# LS Color | |
LSCOLORS=xxbxcxxxxxdxBxxxxxCxExBhCh | |
#Color Shortcuts | |
R=$fg[red] |
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
<?php | |
namespace Aotoki; | |
class YoutubeShortcode { | |
static private $_instance; | |
private function __construct() | |
{ |
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
<?php | |
class Nyan_Template | |
{ | |
public $mode = null; | |
public function __construct($mode) | |
{ | |
$this->mode = $mode; | |
} |
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
let number1 equal 1 plus 1 | |
let number2 equal 1 multiple 2 | |
show number1 plus number2 |
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
# frozen_string_literal: true | |
# A sample Gemfile | |
source "https://rubygems.org" | |
gem "rx" |
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 <iostream> | |
#include "mruby.h" | |
#include "mruby/data.h" | |
#include "mruby/compile.h" | |
#include "mruby/string.h" | |
#include "mruby/class.h" | |
class Application { | |
public: |
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
require 'socket' | |
def open(id) | |
fn = "/sys/class/gpio/gpio#{id}/direction" | |
File.write('/sys/class/gpio/export', id) unless File.exist?(fn) | |
File.write(fn, "out") | |
end | |
def pin(id, value) | |
fn = "/sys/class/gpio/gpio#{id}/value" |
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
=begin | |
Observable.create( -> (x) { x.on_next(1) } | |
.subscribe( -> (x) { p x }) | |
=end | |
require 'set' | |
class Scheduler | |
def initialize | |
@thread = Thread.new { run } |