Skip to content

Instantly share code, notes, and snippets.

View notblizzard's full-sized avatar
❄️
arctic fox

Blizzard notblizzard

❄️
arctic fox
  • Kentucky
  • 15:23 (UTC -04:00)
View GitHub Profile
@ByteReaper
ByteReaper / HelloWorld.sh
Created June 6, 2016 17:16
ByteReaper - Hello World
echo "SGVsbG8gV29ybGQuLi4gTGV0IHRoZSBSZWFwaW5nIEJlZ2lu" | base64 -d
#Hello World... Let the Reaping Begin
<?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
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
<?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 = [
package main
import (
"fmt"
)
func fibonacci(n int, c chan int) {
x, y := 0, 1
for i := 0; i < n; i++ {
c <- x
@panpawn
panpawn / botreminders.js
Last active August 29, 2015 14:10
A reminder command for PS bots.
/*
* 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
@exit99
exit99 / Auto-Dave
Last active March 1, 2016 19:35
Automating Dave's Job
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/')
@quininer
quininer / beep_bleep.pl
Last active August 29, 2015 14:08
irssi config
#!/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)
@sonald
sonald / parser.y
Created November 4, 2014 05:09
cool parser
/*
* cool.y
* Parser definition for the COOL language.
*
*/
%{
#include <iostream>
#include "cool-tree.h"
#include "stringtab.h"
#include "utilities.h"
@daihuaye
daihuaye / generateUid.js
Created November 4, 2014 04:56
unique random id
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;
};