This file contains hidden or 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
| 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 |
This file contains hidden or 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
| .button | |
| Click | |
| .button--error | |
| Error | |
| .button--success | |
| Success | |
| .button--pending | |
| Pending |
This file contains hidden or 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 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; |
This file contains hidden or 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
| 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(); | |
| } |
This file contains hidden or 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 turn = 1, withAi, firstMove, hard; | |
| // Set all blocks taken to false | |
| blockTaken0 = false, | |
| blockTaken1 = false, | |
| blockTaken2 = false, | |
| blockTaken3 = false, | |
| blockTaken4 = false, | |
| blockTaken5 = false, |
This file contains hidden or 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
| あぁアァ | |
| いぃイィ | |
| うゔぅウヺゥ | |
| えぇエェ | |
| おぉオォ | |
| かがカガ | |
| きぎキギ | |
| くぐクグ | |
| けげケゲ | |
| こごコゴヶヵ |
This file contains hidden or 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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>The Book of Mozilla, 11:9</title> | |
| <style type="text/css"> | |
| html { | |
| background: maroon; | |
| color: white; | |
| font-style: italic; | |
| } |
This file contains hidden or 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
| <!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> |
This file contains hidden or 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
| 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 |
This file contains hidden or 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
| 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) | |