Skip to content

Instantly share code, notes, and snippets.

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

Blizzard blizzarddreams

❄️
arctic fox
  • Kentucky
  • 21:16 (UTC -04:00)
View GitHub Profile
require 'oj'
class HummingbirdListImport
include Enumerable
# Most ListImport systems shouldn't need a `list` parameter, since they separate manga and anime
# exports. We do, since our backups contain your whole library.
def initialize(str, list)
@list = Oj.load(str)[list.to_s]
# The class of the database we're matching against
@alxjrvs
alxjrvs / SassMeister-input-HTML.haml
Created October 8, 2014 02:31
Generated by SassMeister.com.
.button
Click
.button--error
Error
.button--success
Success
.button--pending
Pending
anonymous
anonymous / DataCollator.java
Created October 2, 2014 00:50
package datacollator;
import java.util.List;
import java.util.ArrayList;
import java.awt.geom.Point2D;
import java.io.File;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.awt.Image;
@danhyun
danhyun / wtf.java
Created September 22, 2014 21:52
public String getPrettyAddress() {
String prettyAddress = null;
if (this.getAddresses() != null && !this.getAddresses().isEmpty()) {
Address mainAddress = null;
if (this.getAddresses().get(BusinessAddressType.PRIMARY.getType()) != null) {
mainAddress = this.getAddresses().get(BusinessAddressType.PRIMARY.getType()).getAddress();
} else if (this.getAddresses().get(BusinessAddressType.SHIPPING.getType().toLowerCase()) != null) {
mainAddress = this.getAddresses().get(BusinessAddressType.SHIPPING.getType().toLowerCase()).getAddress();
}
var turn = 1, withAi, firstMove, hard;
// Set all blocks taken to false
blockTaken0 = false,
blockTaken1 = false,
blockTaken2 = false,
blockTaken3 = false,
blockTaken4 = false,
blockTaken5 = false,
あぁアァ
いぃイィ
うゔぅウヺゥ
えぇエェ
おぉオォ
かがカガ
きぎキギ
くぐクグ
けげケゲ
こごコゴヶヵ
<!DOCTYPE html>
<html>
<head>
<title>The Book of Mozilla, 11:9</title>
<style type="text/css">
html {
background: maroon;
color: white;
font-style: italic;
}
@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>
@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
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)