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
diff --git a/arch/arm/mach-omap2/board-omap3beagle.c b/arch/arm/mach-omap2/board-omap3beagle.c | |
index 0fda6e1..8a0f8d3 100644 | |
@@ -545,11 +563,12 @@ static struct platform_device leds_gpio = { | |
static struct gpio_keys_button gpio_buttons[] = { | |
{ | |
- .code = BTN_EXTRA, | |
- .gpio = 7, | |
+ .code = 158, | |
+ .gpio = 26, |
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
u-boot log | |
========== | |
Texas Instruments X-Loader 1.41 | |
Starting OS Bootloader... | |
U-Boot 1.3.3-svn333 (Sep 10 2009 - 16:49:01) | |
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/ruby | |
# Colorcat: Android Logging stream colorizer | |
# Author:: Chien-An "Zero" Cho | |
# License:: MIT License | |
# | |
# Copyright (c) 2010 Chien-An "Zero" Cho | |
# | |
# Permission is hereby granted, free of charge, to any person | |
# obtaining a copy of this software and associated documentation | |
# files (the "Software"), to deal in the Software without |
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/ruby -w | |
require 'socket' | |
server = TCPServer.open(7788) | |
loop do | |
Thread.start(server.accept) do |client| | |
client.write "[Host]:[Port]> " | |
target = "" | |
while s = client.getc.chr | |
client.write s |
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
GPIO_PIN_STRUCT pins_led1[] = { | |
BSP_LED1 | GPIO_PIN_STATUS_1, | |
GPIO_LIST_END | |
}; | |
GPIO_PIN_STRUCT pins_led2[] = { | |
BSP_LED2 | GPIO_PIN_STATUS_1, | |
GPIO_LIST_END | |
}; |
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
rvm install 1.9.1 # 不要用 1.9.2,會有很多問題 :P | |
wget http://sourceforge.net/projects/rubycocoa/files/RubyCocoa/1.0.1/RubyCocoa-1.0.1.tar.gz/download | |
tar zxvf RubyCocoa-1.0.1.tar.gz | |
cd RubyCocoa-1.0.1 | |
ruby install.rb config | |
ruby install.rb setup | |
sudo ruby install.rb install # 會安裝像 Xcode Template 等東西,需要 root 權限 |
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
/* ../public_src/BookChooserController.j */ | |
"封面" = "封面" | |
"標題" = "標題" | |
"修改時間" = "修改時間" | |
"繼續編輯" = "繼續編輯" | |
"取消" = "取消" | |
"選擇書本" = "選擇書本" | |
"載入中..." = "載入中..." |
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
old_gem = "gem" | |
new_gem = "/opt/ruby-enterprise/bin/gem" | |
oldgems = `#{old_gem} list` | |
# oldgems.each block written by spiceee. | |
# http://snippets.dzone.com/posts/show/6372 | |
oldgems.each do |line| | |
newgems = `#{new_gem} list` | |
matches = line.match(/([A-Z].+) \(([0-9\., ]+)\)/i) | |
if matches |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="Content-type" content="text/html; charset=utf-8"> | |
<title>Keyboard</title> | |
<style type="text/css"> | |
#keyboard { | |
background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(0%, #9199A4), color-stop(50%, #7D8591), color-stop(100%, #535C69)); | |
border-radius: 10px; | |
background-color: #9199A4; |
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
#!/bin/sh | |
wget -O xml/top_albums.xml http://itunes.apple.com/tw/rss/topalbums/limit=300/explicit=true/xml | |
wget -O xml/new_releases.xml http://itunes.apple.com/WebObjects/MZStore.woa/wpa/MRSS/newreleases/sf=143470/limit=300/rss.xml | |
wget -O xml/just_added.xml http://itunes.apple.com/WebObjects/MZStore.woa/wpa/MRSS/justadded/sf=143470/limit=300/rss.xml | |
wget -O xml/featured_albums.xml http://itunes.apple.com/WebObjects/MZStore.woa/wpa/MRSS/featuredalbums/sf=143470/limit=300/rss.xml |