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
echo "SGVsbG8gV29ybGQuLi4gTGV0IHRoZSBSZWFwaW5nIEJlZ2lu" | base64 -d | |
#Hello World... Let the Reaping Begin |
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 | |
/** | |
* Plugin Name: KUCKLU Test Plugin | |
* Plugin URI: | |
* Description: -_- | |
* Author: KUCKLU | |
* Version: 1.0.0 | |
* Author URI: http://visualive.jp/ | |
* Text Domain: kuck1u-test-plugin | |
* Domain Path: /langs |
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 json | |
import argparse | |
import numpy as np | |
from sklearn.feature_extraction import DictVectorizer | |
from sklearn.feature_extraction.text import CountVectorizer | |
from sklearn.linear_model import LogisticRegression | |
from sklearn.preprocessing import LabelEncoder |
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 | |
$datetime = '2015-12-07 00:58:18'; | |
$now = new DateTime; | |
$ago = new DateTime($datetime); | |
$diff = $now->diff($ago); | |
$diff->w = floor($diff->d / 7); | |
$diff->d -= $diff->w * 7; | |
$string = [ |
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
package main | |
import ( | |
"fmt" | |
) | |
func fibonacci(n int, c chan int) { | |
x, y := 0, 1 | |
for i := 0; i < n; i++ { | |
c <- x |
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
/* | |
* Bot Reminders Command | |
* Credits: panpawn | |
* | |
* Steps to add in this command: | |
* 1. Create a file named "reminders.txt" in the main directory. | |
* 2. Copy in the command below into commands.js. | |
* 3. Edit the command for "remind_view_users" and "remind_edit_users" accordingly. | |
* 4. Reload chat commands. | |
* 5. PM the bot: .r add, hi |
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 time | |
import urllib2 | |
from datetime import datetime | |
def do_dave(): | |
while 10 < datetime.now().hour < 15: | |
time.sleep(5) | |
urllib2.urlopen('http://www.reddit.com/') | |
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
#!/usr/bin/irssi | |
# | |
# irssi beep replace script (tested with irssi v0.8.8.CVS (20030126-1726)) | |
# (C) 2002-2004 Ge0rG@IRCnet (Georg Lukas <georg@op-co.de>) | |
# inspired and tested by Macrotron@IRCnet (macrotron@president.eu.org) | |
# added beep_flood to irssi settings: beep_cmd will be run not more often | |
# then every $beep_flood milliseconds | |
# fixed memory leak with timeout_add (made irssi waste 80mb and more after a day of IRC) |
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
/* | |
* cool.y | |
* Parser definition for the COOL language. | |
* | |
*/ | |
%{ | |
#include <iostream> | |
#include "cool-tree.h" | |
#include "stringtab.h" | |
#include "utilities.h" |
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 generateUid = function() { | |
var d = new Date().getTime(); | |
var uuid = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) { | |
var r = (d + Math.random()*16)%16 | 0; | |
d = Math.floor(d/16); | |
return (c === 'x' ? r : (r&0x7|0x8)).toString(16); | |
}); | |
return uuid; | |
}; |
NewerOlder