Skip to content

Instantly share code, notes, and snippets.

View Ungsik-Yun's full-sized avatar

Ungsik Yun Ungsik-Yun

View GitHub Profile
from slackbot.bot import respond_to
from slackbot.bot import listen_to
import re
import random
@listen_to("!주사위 (\d*)d(\d+)", re.IGNORECASE)
@listen_to("!roll (\d*)d(\d+)", re.IGNORECASE)
def roll_dice(msg, num_of_dice=1, die=6):
if die == '':
@Ungsik-Yun
Ungsik-Yun / README.md
Last active August 29, 2015 14:24 — forked from jxson/README.md

Synopsis

At the top of the file there should be a short introduction and/ or overview that explains what the project is. This description should match descriptions added for package managers (Gemspec, package.json, etc.)

Code Example

Show what the library does as concisely as possible, developers should be able to figure out how your project solves their problem by looking at the code example. Make sure the API you are showing off is obvious, and that your code is short and concise.

Motivation

@Ungsik-Yun
Ungsik-Yun / sold-out remove.js
Last active August 29, 2015 14:21
amiami sold-out product remove
$('.product_box').each(function (){
if( $(this).find('.product_day').text() == "Sold out")
{
$(this).remove();
}
});
@Ungsik-Yun
Ungsik-Yun / gist:86b005e9800acb16033b
Last active August 29, 2015 14:20 — forked from ultimatemember/gist:8cdaf61e7bd9de35512c
wordpress plugin ultimate member expand
/* First we need to extend main profile tabs */
add_filter('um_profile_tabs', 'add_custom_profile_tab', 1000 );
function add_custom_profile_tab( $tabs ) {
$tabs['mycustomtab'] = array(
'name' => 'My custom tab',
'icon' => 'um-faicon-comments',
);