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
<html><head><title>Javascript try..catch statement test code</title> | |
<script type="text/javascript"> | |
output = null; | |
window.onload = function() { | |
output = document.getElementById('output'); | |
log('loaded'); | |
} | |
function log(msg) { |
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
# AppController.rb | |
# test | |
require 'osx/cocoa' | |
OSX.ns_import :MyObject | |
class AppController < OSX::NSObject | |
include OSX | |
def initialize | |
@tester = MyObject.alloc.init; |
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
/* | |
XPath utility | |
usage: var results= x$('//div'); | |
x$('//div').each(function() { | |
... | |
}); | |
*/ | |
function $x(exp, obj) { | |
var target = obj || document; | |
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
/* | |
Create tag element | |
*/ | |
function tag(name, attrs) { | |
var ele = document.createElement(name); | |
for(var i in attrs) { | |
ele[i] = attrs[i]; | |
} | |
return ele; |
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
rem gyazowinR.bat | |
rem Gyazo client for Windows (Ruby script version) | |
rem by snaka (http://d.hatena.ne.jp/snaka72/) | |
ruby -x %~f0 %~s1 | |
rem pause | |
exit | |
#! ruby | |
require 'net/http' |
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
Index: D:/MyProject/GanttProject/ganttproject/src/net/sourceforge/ganttproject/ChartComponentBase.java | |
=================================================================== | |
--- D:/MyProject/GanttProject/ganttproject/src/net/sourceforge/ganttproject/ChartComponentBase.java (revision 118) | |
+++ D:/MyProject/GanttProject/ganttproject/src/net/sourceforge/ganttproject/ChartComponentBase.java (working copy) | |
@@ -290,7 +290,14 @@ | |
protected class MouseWheelListenerBase implements MouseWheelListener { | |
public void mouseWheelMoved(MouseWheelEvent e) { | |
- if (isRotationUp(e)) { | |
+ // Scroll |
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
set linesize 200 | |
set pagesize 0 | |
set trimspool on | |
set heading off | |
set feedback off | |
spool /tmp/impSeq.sql | |
select '-- delete sequence' from dual; | |
select 'DROP SEQUENCE ' || SEQUENCE_NAME || ';' from USER_SEQUENCES; | |
select '-- create sequence' from dual; | |
select 'CREATE SEQUENCE ' || SEQUENCE_NAME || |
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
' Growl for windows test script(VBA) | |
Sub growling() | |
Dim growler As Vortex_Growl_Framework.Growl | |
Set growler = New Growl | |
growler.ApplicationName = "Test VBA Script" | |
Dim notify As New Vortex_Growl_Framework.NotificationType | |
notify.Enabled = True | |
notify.Name = "testNotify" |
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
alert("This is gist"); |
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
// ==UserScript== | |
// @name hatena_c_uri_to_title.user.js | |
// @namespace http://d.hatena.ne.jp/snaka72/ | |
// @include http://counter.hatena.ne.jp/*target=url* | |
// @require https://gist.github.com/raw/3238/0b1c093e30415be1109f9a36664ebd56e0e7300b/dollarX.js | |
// ==/UserScript== | |
(function() { | |
var links = $X('//td[@class="maincell"]/a'); | |
(function getTitle(links) { |