Skip to content

Instantly share code, notes, and snippets.

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

Blizzard notblizzard

❄️
arctic fox
  • Kentucky
  • 15:04 (UTC -04:00)
View GitHub Profile
@FSX
FSX / ircbot.py
Created December 20, 2011 21:14
A very simple IRC bot. It does nothing.
import re
import socket
from tornado import ioloop
from tornado import iostream
RE_ORIGIN = re.compile(r'([^!]*)!?([^@]*)@?(.*)')
@zpd-2016-17
zpd-2016-17 / gist:5233770
Created March 24, 2013 22:09
Super awesome calculator!
import java.util.Scanner;
class apples{
public static void main(String args[]){
Scanner calculator = new Scanner(System.in);
double n1, n2, n3;
System.out.println("The Calculator can make a sum of 2 numbers.");
System.out.print("Number 1 - ");
n1 = calculator.nextDouble();
System.out.print("Number 2 - ");

Tournament Guide

When tournament sign-ups are opened, you will see a interface drop down from the top of the chat area. There will be a button to join if you're not in the tournament and a button to leave if you are. Alternatively, the commands /tour join and /tour leave can be used instead. Please resist any urge to spam joins and leaves since it is a bannable offence.
Once you join the tournament, the bracket will already by displayed. However, do not challenge anyone yet. Please wait until someone starts the tournament.
When the tournament starts, you should see the leave button replaced with information about any match-ups you have. Challenge drop downs and buttons will appear if you are matched up to challenge another user. Please use the interface to challenge the user rather challenging the "normal" way because otherwise it won't count as a tournament match.

Tips:

  • Run /tour by itself for a list of currently running tournaments
  • The tournament bracket becomes dragg
@hayajo
hayajo / gist:8328903
Created January 9, 2014 03:22
vim-refでcodic
let g:ref_source_webdict_sites = {
\ 'codic': {
\ 'url': 'http://codic.jp/search?q=%s',
\ 'keyword_encoding': 'utf-8',
\ 'cache': 1
\ } }
function g:ref_source_webdict_sites.codic.filter(output)
return join( split(a:output, "\n")[15 :], "\n" )
endfunction
var express = require('express');
var fs = require('fs');
var app = express();
app.get('*', function(req, res) {
fs.readFile('public' + req.originalUrl, function(err, data) {
if (err) {
res.send('File not found ' + req.originalUrl);
} else {
res.contentType('application/json');
def fahrenheit_to_celsius(a):
new_temp = (a - 32) * 5/9
new_temp = float(new_temp)
print "{0} Fahrenheit converted to Celsius is {1}.".format(a, new_temp)
def celsius_to_fahrenheit(a):
new_temp = a * 9/5 + 32
new_temp = float(new_temp)
print "{0} Celsius converted to Fahrenheit is {1}.".format(a, new_temp)
@johnschrom
johnschrom / gist:8638763
Last active January 5, 2021 21:20
Making a map of foursquare checkins
library(ggplot2)
library(maps)
library(mapproj)
###############################################################################
# Step 1: Get data from Foursquare
# If you already have it, then great :) Otherwise, you can use RPI. The source
# is listed below, and there are instructions for getting keys in the readme.
# RPI: https://github.com/johnschrom/RPI
@mollietaylor
mollietaylor / index.html
Last active August 29, 2015 13:55
Append Layer to overlayMaps in Leaflet
<!DOCTYPE html>
<meta charset="utf-8">
<html>
<head>
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.6.4/leaflet.css" />
<!--[if lte IE 8]>
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.6.4/leaflet.ie.css" />
<![endif]-->
<script src="http://cdn.leafletjs.com/leaflet-0.6.4/leaflet.js"></script>
<!DOCTYPE html>
<html>
<head>
<title>The Book of Mozilla, 11:9</title>
<style type="text/css">
html {
background: maroon;
color: white;
font-style: italic;
}
あぁアァ
いぃイィ
うゔぅウヺゥ
えぇエェ
おぉオォ
かがカガ
きぎキギ
くぐクグ
けげケゲ
こごコゴヶヵ