- foo
- bar
- baz
- bar
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
let intervalInSecond = 1 | |
let stopScrolling = (function(seconds) { | |
let intervalId = setInterval(function() { | |
window.scrollBy(0, window.pageYOffset) | |
}, seconds * 1000) | |
return function() { | |
clearInterval(intervalId) | |
}; | |
})(intervalInSecond); |
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:(function(){$(".container.bg-timetable").css("max-width","90%");$(".fc-scroller.fc-time-grid-container").css("height","initial");$("#calendar").css("width","initial")})(); |
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
<?php | |
class SimpleDelegate { | |
protected $callbacks = []; | |
public function add(Closure $callback, $key = null){ | |
$key = $key?: spl_object_hash($callback); | |
$this->callbacks[$key] = $callback; | |
} |
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
/session |
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 | |
echo " #${0} begin" | |
echo " echo \$WORKING_DIR" | |
echo " ${WORKING_DIR}" | |
echo " #${0} 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
#!/bin/sh | |
echo "\$ echo \$(pwd)" | |
echo $(pwd) #Current directory not changed. | |
echo "\$ \$(cd ..)" | |
$(cd ..) | |
echo "\$ echo \$(pwd)" | |
echo $(pwd) #Current directory not changed. |
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
using UnityEditor; | |
using UnityEditorInternal; | |
namespace Kanonji.TagManagerEvent | |
{ | |
public delegate void OnTagsChangedHandler(string[] tags); | |
public class Publisher | |
{ | |
public static event OnTagsChangedHandler OnTagsChanged; |