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
Option Explicit | |
Sub AddNewMenu() | |
On Error GoTo ErrHand | |
Dim cbrCmd As CommandBar | |
Dim cbcMenu As CommandBarControl | |
Set cbrCmd = Application.CommandBars("Worksheet Menu Bar") | |
cbrCmd.Controls("方眼紙").Delete |
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
// twitter4j-coreのパスを指定 | |
:cp <TWITTER4J_HOME>/lib/twitter4j-core-X.X.X.jar | |
:power | |
import twitter4j.Twitter | |
import twitter4j.TwitterFactory | |
import twitter4j.auth.AccessToken | |
// 各自Twitter developersでアプリケーション登録して取得した値を設定してください |
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
cd ${WORKSPACE} | |
make html | |
cp -fr ${WORKSPACE}/build/html/* ${WORKSPACE}/gae/war/ | |
${APPENGINE_SDK_HOME}/bin/appcfg.sh -e ${EMAIL} --passin update ${WORKSPACE}/gae/war <<EOF | |
${PASSWORD} | |
EOF |
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
// ==UserScript== | |
// @name Facebook Hentai Button | |
// @namespace http://d.hatena.ne.jp/razon/ | |
// @description Hentai Advent Calendar 2011/11/26. | |
// @include http://www.facebook.com/plugins/like* | |
// ==/UserScript== | |
(function() { | |
document.getElementsByClassName('liketext')[0].innerHTML='変態!'; | |
} |
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
scala> sealed trait Color | |
defined trait Color | |
scala> case object Black extends Color | |
defined module Black | |
scala> case object Pink extends Color | |
defined module Pink | |
scala> case class Pants(color: Color) |
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
class Boss { | |
protected var age_ : Int = _ | |
def age = age_ | |
def age_=(value: Int): Unit = this.age_ = value | |
} | |
val tama: Boss = new Boss { | |
override def age = if (20 < this.age_) 20 else this.age_ | |
} | |
tama.age = 0x20 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
// compiled by ocamlc 3.12.0, ocamljs 0.3 | |
var ocamljs$caml_named_value = (function (){ | |
var Match_failure$16g = "Match_failure"; | |
var Out_of_memory$17g = "Out_of_memory"; | |
var Stack_overflow$24g = "Stack_overflow"; | |
var Invalid_argument$18g = "Invalid_argument"; | |
var Failure$19g = "Failure"; | |
var Not_found$20g = "Not_found"; | |
var Sys_error$21g = "Sys_error"; | |
var End_of_file$22g = "End_of_file"; |
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
scala> import java.util.Date | |
def f(n: Int): Int = | |
if (new Date().getTime != new Date().getTime) n else f(n + 1) | |
f(0) | |
import java.util.Date | |
f: (n: Int)Int | |
res0: Int = 15090 | |
scala> f(0) | |
res1: Int = 52401 |
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/env xsbtscript | |
!# | |
/*** | |
scalaVersion := "2.9.2" | |
libraryDependencies ++= Seq( | |
"org.twitter4j" % "twitter4j-core" % "[2.2,)" | |
) | |
*/ |
OlderNewer