Skip to content

Instantly share code, notes, and snippets.

Avatar
😇
SAO

item4(Kim Jinsu) item4

😇
SAO
View GitHub Profile
@item4
item4 / strrev.py
Created Jun 14, 2015
Library wiki - strrev / Python 3
View strrev.py
line = input('String: ')
print(line[::-1])
@item4
item4 / strrev.py
Last active Aug 29, 2015
Library wiki - strrev / Python 2
View strrev.py
line = raw_input('String: ').decode('u8')
print line[::-1]
@item4
item4 / array_merge1.py
Created Jun 18, 2015
Library wiki - Merge arrays / Python
View array_merge1.py
a = [1, 2, 3]
b = [4, 5, 6]
a = a + b # or a += b for shorten
@item4
item4 / bye.cpp
Last active Aug 29, 2015
Library wiki - Hello, World!
View bye.cpp
#include <iostream>
int main() {
std::cout << "Byebye, World!" << std::endl;
return 0;
}
@item4
item4 / some.py
Created Jun 19, 2015
Easy gdb command with Python
View some.py
# IDEA by marnitto
import gdb
import os
import sys
class Command(gdb.Command):
def __init__(self, name, func):
super(Command, self).__init__(name, gdb.COMMAND_USER)
@item4
item4 / quine.php
Created Jun 23, 2015
Library wiki - Quine
View quine.php
<?php
$c = '$c = @; $c = str_replace(chr(64), chr(39).$c.chr(39), $c); echo "<?php\n".$c;'; $c = str_replace(chr(64), chr(39).$c.chr(39), $c); echo "<?php\n".$c;
@item4
item4 / divisor.py2.py
Last active Aug 29, 2015
Library wiki - Get Divisor
View divisor.py2.py
num = 1234
divisors = {x for x in xrange(1, num+1) if num%x == 0}
@item4
item4 / bash_profile.sh
Created Jul 1, 2015
Open man page as pdf
View bash_profile.sh
# add it yourself
my_man2() {
man -t $1 | open -f -a /Applications/Preview.app
}
alias man2=my_man2
@item4
item4 / toy.py
Last active Aug 29, 2015 — forked from sanxiyn/toy.py
Python subset
View toy.py
"""
a = 1
b = 1
i = 2
n = 10
while i < n
c = a + b
a = b
b = c
i = i + 1
@item4
item4 / durexmania.aheui
Last active Oct 9, 2015
하루네네님 아희 소스 보고 떠오른 것
View durexmania.aheui
우주메이저☆듀렉스전도사♀♂♀♂♀♂♀♂♀♂♀♂♀♂♀♂♀♂♀♂♀♂♀♂♀♂♀♂♀♂♀♂♀♂♀♂♀♂♀♂♀♂♀♂♀♂♀♂♀♂♀♂♀♂♀♂♀♂♀♂♀♂♀♂♀♂♀♂♀♂♀♂♀♂♀♡먊
삶은밥과야근밥샤주세양♡밥사밥사밥사밥사밥사땅땅땅빵☆따밦내발따밦다빵맣밥밥밥내놔밥줘밥밥밥밗땅땅땅박밝땅땅딻타밟타맣밦밣따박타맣밦밣따박타맣밦밣따박타맣박빵빵빵빵따따따따맣삶몲
Original Source by @harunene // Run it on AheuiChem(http://yoo2001818.github.io/AheuiChem/)