Skip to content

Instantly share code, notes, and snippets.

@Skymetal
Skymetal / AppConfig.xml
Last active May 31, 2020 17:22
ED AppConfig
<AppConfig>
<Display>
<ScreenWidth>1280</ScreenWidth>
<ScreenHeight>720</ScreenHeight>
<FullScreen>false</FullScreen>
<VSync>true</VSync>
<PresentInterval>1</PresentInterval>
<Adapter>0</Adapter>
<Monitor>0</Monitor>
<DX11_RefreshRateNumerator>60</DX11_RefreshRateNumerator>
{
"theme": "Material-Theme.sublime-theme",
"color_scheme": "Packages/Material Theme/schemes/Material-Theme.tmTheme",
"font_size": 14,
"hot_exit": false,
"ignored_packages":
[
"SublimeCodeIntel",
"Vintage"
],
@Skymetal
Skymetal / ping_google.sh
Last active July 13, 2016 21:15
bash: ping google
#!/bin/bash
RED='\033[0;31m'
GREEN='\033[0;32m'
NC='\033[0m' # No Color
while :
do
date | tr -d '\n'
VAL=`ping -c 5 www.google.com | tail -1 | awk '{print $4}' | cut -d '/' -f 2`
if [[ -z "${VAL// }" ]]
then
@Skymetal
Skymetal / l33t seg.ino
Last active August 18, 2016 10:40
Arduino: 1337 7segment
// CONST's
int DS_pin = 8;
int STCP_pin = 9;
int SHCP_pin = 10;
int C1_pin = 1;
int C2_pin = 2;
int C3_pin = 3;
int C4_pin = 4;
@Skymetal
Skymetal / mordorJustEat.js
Last active September 1, 2016 14:47
js: Just Eat Mordor
(function() {
// Alter submit button text
var submitButton = document.querySelector('#searchForm-submit');
var originalText = submitButton.innerText;
var preText = " worthy of ";
var places = ["Mordor", "Gallifrey", "the Gods themselves", "Zeus", "The Avengers", "dickbutt"];
var place = places[Math.floor(Math.random()*places.length)];
@Skymetal
Skymetal / prettyprint.coffee
Created September 13, 2016 12:45
coffee: prettyprint
l = console.log
j = require('circular-json').stringify
p = (item) -> l(j(item, null, 4))
k = (item) -> l(Object.keys(item))
@Skymetal
Skymetal / gist:09102fe9e37378123d7d218bf9ed71f6
Created September 20, 2016 09:35
Markdown cheat sheet

Header 1

Header 2

Header 3 ### (Hashes on right are optional)

Header 4

Header 5

Markdown plus h2 with a custom ID ## {#id-goes-here}

Link back to H2

This is a paragraph, which is text surrounded by whitespace. Paragraphs can be on one

@Skymetal
Skymetal / flyout-dropdown-winjs.md
Last active October 9, 2017 13:02
winjs: Flyout/Dropdown

Flyout/Dropdown

HTML

#flyout-control

The flyout element that contains the repeater that will be displayed, populated with options

@Skymetal
Skymetal / complexMerge.md
Created November 12, 2016 21:48
git: Complex merge

Performing a very complex merge

The problem

  • We have two servers, one named staging, one named production.
  • We have made changes on the staging branch to:
    • Use an alternate authentication source
    • Display more complex errors
    • Communicate with the staging server
  • We have branched from staging to implement a new feature (feature-easypost)