View 140101-dropbox-dbeditor.txt
DropboxのDB EditorがどういうIntentをやりとりしているか調べる
DropBoxアプリから140101-dropbox-dbeditor.txtを…
- Share
- Favorite
- Delete
- More
- Rename
- Move
- Export
View gtk-3.10.7-returnvalue.patch
--- gtk+-3.10.7/gtk/gtkselection.c.orig 2014-01-27 12:40:26.000000000 -1000
+++ gtk+-3.10.7/gtk/gtkselection.c 2014-03-08 11:45:59.000000000 -1000
@@ -2294,7 +2294,7 @@
gulong selection_max_size;
if (event->requestor == NULL)
- return;
+ return FALSE;
if (initialize)
View homebrew-preserve-sourcetree.patch
diff --git a/Library/Homebrew/extend/fileutils.rb b/Library/Homebrew/extend/fileutils.rb
index 7037748..b10b97c 100644
--- a/Library/Homebrew/extend/fileutils.rb
+++ b/Library/Homebrew/extend/fileutils.rb
@@ -21,7 +21,7 @@ module FileUtils extend self
yield
ensure
cd prevd if prevd
- ignore_interrupts{ rm_r tempd } if tempd
+ $stderr.puts "Remove #{tempd} if everything went alright" if tempd
View itermvim.scpt
#!/usr/bin/osascript
on run argv
tell application "iTerm"
make new terminal
tell the last terminal
make new session
tell the last session
activate
exec command "vim " & argv
View checker.rb
require 'open-uri'
ARGF.each_line do |l|
input, output = l.chomp.split(/:/)
next if input =~ /[A-Z]/
actual = open("http://spacetalky.textfile.org/api.cgi?input=#{input}").read
if output != actual
puts "From #{input} expected #{output} but actually #{actual}"
end
sleep(0.5)
View gist:a053bf1df77f4801d3aa
usb 1-7: USB disconnect, device number 2
usb 1-7: new high-speed USB device number 3 using ehci-pci
usb 1-7: New USB device found, idVendor=18d1, idProduct=4ee4
usb 1-7: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 1-7: Product: Nexus 5
usb 1-7: Manufacturer: LGE
usb 1-7: SerialNumber: ****************
usbcore: registered new interface driver cdc_ether
rndis_host 1-7:1.0 usb0: register 'rndis_host' at usb-0000:00:1d.7-7, RNDIS device, d2:26:1e:09:98:f8
usbcore: registered new interface driver rndis_host
View tickets.rb
#!/usr/bin/ruby
# coding: utf-8
#
# time ruby answer/tickets.rb tickets.txt > answer-zunda.txt 2> consistent.txt
#
# real 0m5.222s
# user 0m5.198s
# sys 0m0.024s
# on 4 x Xeon 5160 3GHz
View serial-read.c
/* http://www.cmrr.umn.edu/~strupp/serial.html */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <fcntl.h>
#include <unistd.h>
#include <errno.h>
#include <termios.h>
#include <signal.h>
#include <time.h>
View todo.md
View .bash_profile (Linux)
case "$TERM" in
xterm*|rxvt*)
if type __git_ps1 >/dev/null 2>&1; then
GIT_PS1_SHOWDIRTYSTATE=true
GIT_PS1_SHOWUPSTREAM="auto"
PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]\w\$(__git_ps1) \$ "
fi
;;
*)
;;