Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am nfreader on github.
  • I am nfreader (https://keybase.io/nfreader) on keybase.
  • I have a public key ASAexxz9ySslo8qkNaqiwGUWUG64P1wY_ybX1e5QY3R9mgo

To claim this, I am signing this object:

SELECT * FROM ss13feedback WHERE round_id = 65624;
INSERT INTO `ss13feedback` (`id`, `time`, `round_id`, `var_name`, `var_value`, `details`)
VALUES
(2152562, '2017-01-27 02:32:36', 65624, 'cell_used', 0, '/obj/item/weapon/stock_parts/cell/emproof /obj/item/weapon/stock_parts/cell/emproof /obj/item/weapon/stock_parts/cell/emproof /obj/item/weapon/stock_parts/cell/emproof /obj/item/weapon/stock_parts/cell/emproof /obj/item/weapon/stock_parts/cell/emproof /obj/item/weapon/stock_parts/cell/emproof /obj/item/weapon/stock_parts/cell/emproof /obj/item/weapon/stock_parts/cell/emproof /obj/item/weapon/stock_parts/cell/high /obj/item/weapon/stock_parts/cell/high'),
(2152563, '2017-01-27 02:32:36', 65624, 'admin_verb', 0, 'SAPS SAPS SAPS'),
(2152564, '2017-01-27 02:32:36', 65624, 'item_used_for_combat', 0, '/obj/item/stack/sheet/metal|5 /obj/item/stack/sheet/metal|5 /obj/item/weapon/melee/sabre|19 /obj/item/weapon/storage/secure/briefcase|8 /obj/item/weapon/melee/sabre|19 /obj/item/stack/sheet/metal|5 /obj/item/weap
body {
background-image: linear-gradient( to right, #EB0012, #EB0012 16.66%, #EB7700 16.66%, #EB7700 33.32%, #EBCF00 33.32%, #EBCF00 49.98%, #00D942 49.98%, #00D942 66.64%, #0050D4 66.64%, #0050D4 83.3%, #8D00FF 83.3% );
background-size: 12.5% 2px;
background-repeat: repeat-x;
padding: 2px 0 0 0;
}
@nfreader
nfreader / fa.js
Created January 29, 2015 20:53
Here's ALL the FontAwesome 4.3.0 icons, in a JSON array, minus the 'fa-' bits.
var icons = {"icons":["adjust", "adn", "align-center", "align-justify", "align-left", "align-right", "ambulance", "anchor", "android", "angellist", "angle-double-down", "angle-double-left", "angle-double-right", "angle-double-up", "angle-down", "angle-left", "angle-right", "angle-up", "apple", "archive", "area-chart", "arrow-circle-down", "arrow-circle-left", "arrow-circle-o-down", "arrow-circle-o-left", "arrow-circle-o-right", "arrow-circle-o-up", "arrow-circle-right", "arrow-circle-up", "arrow-down", "arrow-left", "arrow-right", "arrow-up", "arrows", "arrows-alt", "arrows-h", "arrows-v", "asterisk", "at", "automobile", "backward", "ban", "bank", "bar-chart", "bar-chart-o", "barcode", "bars", "bed", "beer", "behance", "behance-square", "bell", "bell-o", "bell-slash", "bell-slash-o", "bicycle", "binoculars", "birthday-cake", "bitbucket", "bitbucket-square", "bitcoin", "bold", "bolt", "bomb", "book", "bookmark", "bookmark-o", "briefcase", "btc", "bug", "building", "building-o", "bullhorn", "bullseye", "bus", "

Here's a Wordpress snippet that will:

  1. Implement shortcodes to let you quickly insert a Font Awesome icon
  2. Properly loads the Font Awesome stylesheet (via CDN)

Add to your theme's functions.php file. Usage in content:

[fa icon='github'] for a single icon

[fa-btn icon='github' bg='square'(optional)] for stacked icons

@nfreader
nfreader / movies.md
Last active September 2, 2017 23:33
A list of movies that I think are really good and definitely worth watching. Additions welcome :)
  • Haywire
  • Serenity
  • Moon
  • Source Code
  • Vantage Point
  • Redeye
  • Non-Stop
  • Run Lola Run
  • The International
  • The Other Guys
@nfreader
nfreader / gist:818a6ec30b6c3a39a7f5
Created August 19, 2014 16:48
Georgia spending on surplus military gear, broken down by county
414.00 APPLING
1219.00 ATKINSON
75.00 BACON
3253.00 BAKER
33776.00 BALDWIN
5110.00 BANKS
8072.00 BARROW
31418.00 BARTOW
276.00 BEN HILL
4750.00 BERRIEN
<?php
/* hexPrint
*
* Mutilates a given string into a unique, Cool Looking(tm) hex string
*
* @string (string) The string we're abusing
* @prefix (string) A few characters we can use to denote a hex string. Default
* is '0x'
*
* @return (string) A Cool Looking(tm) hex string
function loadContent(page, content, dest) {
$(dest).load("view/" + page + ".php " + content + "");
console.log("view/" + page + ".php " + content + " " + dest);
}
function loadPage(page) {
$('#game').load("view/" + page + ".php");
console.log("view/" + page + ".php");
}
@nfreader
nfreader / colors.php
Created May 1, 2014 17:07
A range of visually distinct colors suitable for white text
<?php
$colors = array('#FF69B4','#FF1493','#C71585','#DC143C','#B22222','#8B0000','#FF0000','#FF8C00','#B8860B','#D2691E','#8B4513','#A52A2A','#556B2F','#808000','#3CB371','#2E8B57','#008000','#006400','#00CED1','#008080','#00BFFF','#1E90FF','#4682B4','#0000FF','#0000CD','#191970','#FF00FF','#BA55D3','#8A2BE2','#8B008B','#4B0082','#7B68EE','#696969','#778899','#2F4F4F','#000000');