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
# コピーボタン | |
copy = document.querySelector '#copy' | |
clip = new ZeroClipboard(copy) | |
clip.on 'ready', -> | |
lo.l 'ready' | |
clip.on 'beforecopy', (e) -> | |
lo.l 'beforecopy' | |
copy.dataset.clipboardText = '上書きしちゃったー' |
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
var NewComponent = React.createClass({ | |
render: function() { | |
return ( | |
<div> | |
{/* Hello world */} | |
<div className="awesome" style={{border: '1px solid red'}}> | |
<label htmlFor="name">Enter your name: </label> | |
<input type="text" id="name" /> | |
</div> | |
<p>Enter your HTML here</p> |
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
ほげほげ |
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
javascript:var ret=window.prompt('このページへのリンク','[document.title](location.href)'); |
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
var synthes = new SpeechSynthesisUtterance( | |
'うんこうんこうんこっこ' | |
); | |
synthes.lang = "ja-JP" | |
speechSynthesis.speak( synthes ); |
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
open "/Applications/Google Chrome.app" --args --kiosk --disable-background-mode "http://hisasann.com/" --user-data-dir=/Users/[UserName]/Library/Application\ Support/Google/Chrome/kioskmode |
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
(function($){ | |
$.fn.getRelativeOffset = function(name){ | |
var elem = this[0], | |
top = 0, | |
left = 0; | |
// require relative | |
if($(name).css("position") != "relative") | |
$(name).css("position", "relative") |
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 java.io.IOException; | |
import twitter4j.Status; | |
import twitter4j.Twitter; | |
import twitter4j.TwitterException; | |
import wiiremotej.WiiRemote; | |
import wiiremotej.WiiRemoteJ; | |
import wiiremotej.event.WRButtonEvent; | |
import wiiremotej.event.WRIREvent; | |
import wiiremotej.event.WiiRemoteAdapter; |
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 java.io.IOException; | |
import javax.sound.sampled.AudioInputStream; | |
import javax.sound.sampled.AudioSystem; | |
import javax.sound.sampled.UnsupportedAudioFileException; | |
import wiiremotej.PrebufferedSound; | |
import wiiremotej.WiiRemote; | |
import wiiremotej.WiiRemoteJ; | |
import wiiremotej.event.WRButtonEvent; |
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
(function($){ | |
/* | |
* jMerrygoround jQuery Plugin version 1.0 | |
* http://lab.hisasann.com/jmerrygoround/ | |
* | |
* Copyright (c) 2009 hisasann http://hisasann.com/ | |
* Dual licensed under the MIT and GPL licenses. | |
*/ | |
var |