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
(function() { | |
var jq = document.createElement('script'); jq.type = 'text/javascript'; jq.async = false; | |
jq.src = '//ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js'; | |
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(jq, s); | |
var dice_result_gen = function(){ | |
if(jQuery("#dice_result").length != 0) return false; | |
var dice_img = jQuery("img[src^=\"/dice_\"]"); | |
var list = []; | |
if(dice_img.length == 0) return false; |
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
(function() { | |
var jq = document.createElement('script'); jq.type = 'text/javascript'; jq.async = false; | |
jq.src = '//ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js'; | |
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(jq, s); | |
var giant_gamecodi = function(){ | |
var giant_name = jQuery("#giant-name").val() || "진격의 고양이"; | |
var giant_hp = parseInt(jQuery("#giant-hp").val()) || 730666; |
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
function sshow_load_img1(src, loaded) { | |
/* NOT possible to document.createElement('canvas').getContext('2D').drawImage( img or img.get() ) */ | |
var img = $("<img />").attr('src', src ) | |
.load(function() { | |
if (!this.complete || typeof this.naturalWidth == "undefined" || this.naturalWidth == 0) { | |
alert('broken image!'); | |
} else { | |
if (loaded) loaded(img); | |
} | |
}); |
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
git filter-branch -f --commit-filter ' | |
if [ "$GIT_COMMITTER_NAME" = "old-name" ]; | |
then | |
GIT_COMMITTER_NAME="new-name"; | |
GIT_AUTHOR_NAME="new-name"; | |
GIT_COMMITTER_EMAIL="[email protected]"; | |
GIT_AUTHOR_EMAIL="[email protected]"; | |
git commit-tree "$@"; | |
else |
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
(function (e, d) { | |
if (typeof d == "object") { | |
for (var f in d) { | |
if (d.hasOwnProperty(f)) { | |
e[f] = e[f] || d[f], arguments.callee(e[f], d[f]); | |
} | |
} | |
} | |
})(this, { | |
daum: { |
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
#!/bin/bash | |
NOW=$(date +"%Y-%m-%d-%H%M%S") | |
DIFF=$(git diff --name-only deploy HEAD) | |
TOPLEVEL=$(git rev-parse --show-toplevel) | |
CURRENT=$(pwd) | |
if [ -z "$DIFF" ] | |
then | |
echo "😝 Sorry no diff in there." | |
else | |
cd "$TOPLEVEL" |
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
"use strict"; | |
var Person = function(name){ | |
var _name = name || "Unknown"; | |
Object.defineProperty(this, "name", { | |
get: function(){ return "My name is " + _name; }, | |
set: function(newvalue){ _name = newvalue; } | |
}); | |
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
<?php | |
/** | |
* @package Haruair | |
* @version 1.0 | |
*/ | |
/* | |
Plugin Name: Scrapbook | |
Description: scrapbook custom type plugin | |
Author: haruair | |
Version: 1.0 |
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
#!/bin/bash | |
# put this file into /usr/bin | |
# set the file as correct permission | |
read -r -p "Are you sure? [y/N] " response | |
case $response in | |
[yY][eE][sS]|[yY]) | |
find . -type d -exec chmod 755 {} \; | |
find . -type f -exec chmod 644 {} \; | |
;; | |
*) |
OlderNewer