Skip to content

Instantly share code, notes, and snippets.

View jhnsnc's full-sized avatar
🐢
Slow to respond on Github. Most personal projects are on hold, sorry! 🙇

Chris Johnson jhnsnc

🐢
Slow to respond on Github. Most personal projects are on hold, sorry! 🙇
View GitHub Profile
@jhnsnc
jhnsnc / SassMeister-input-HTML.html
Last active August 29, 2015 14:22
Generated by SassMeister.com.
<ul class="top-nav">
<li>
<a href="#a">Solutions</a>
</li>
<li>
<a href="#b">Catalog</a>
</li>
<li>
<a href="#c">Pricing</a>
</li>
@jhnsnc
jhnsnc / SassMeister-input-HTML.html
Last active August 29, 2015 14:22
Generated by SassMeister.com.
<ul class="top-nav">
<li>
<a href="#a">Solutions</a>
</li>
<li>
<a href="#b">Catalog</a>
</li>
<li>
<a href="#c">Pricing</a>
</li>
@jhnsnc
jhnsnc / SassMeister-input-HTML.html
Last active August 29, 2015 14:22
Generated by SassMeister.com.
<ul class="top-nav">
<li>
<a href="#a">Solutions</a>
</li>
<li>
<a href="#b">Catalog</a>
</li>
<li>
<a href="#c">Pricing</a>
</li>
@jhnsnc
jhnsnc / SassMeister-input-HTML.html
Last active August 29, 2015 14:22
Generated by SassMeister.com.
<ul class="top-nav">
<li>
<a href="#a">Solutions</a>
</li>
<li>
<a href="#b">Catalog</a>
</li>
<li>
<a href="#c">Pricing</a>
</li>
@jhnsnc
jhnsnc / gulpfile.js
Last active January 11, 2018 09:09
Simple Node-Express Gulpfile
//general
var gulp = require('gulp');
var del = require('del');
var copy = require('gulp-copy');
//sass
var sass = require('gulp-sass');
var autoprefixer = require('gulp-autoprefixer');
var minifyCss = require('gulp-minify-css');
@jhnsnc
jhnsnc / ddo-aliases.layout
Created February 4, 2016 22:59
Aliases file for useful chat aliases in DDO
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<UI>
<Version Value="1.0"/>
<!-- this is the part that actually matters (also, remove this line) -->
<Aliases>
<Alias String=";black" Value="&lt;rgb=#000000>"/>
<Alias String=";blue" Value="&lt;rgb=#1050FF>"/>
<Alias String=";gold" Value="&lt;rgb=#FFD700>"/>
@jhnsnc
jhnsnc / PersistedSettings.json
Created February 5, 2016 00:00
League of Legends config customization for easier kiting (left-click attack move). From this thread: https://www.reddit.com/r/leagueoflegends/comments/3vgw7a/how_to_bind_attack_move_to_left_click_with_full/ Should be located at C:\Riot Games\League of Legends\Config\.
{
"description": "The settings in this file are persisted server-side. This file is generated automatically. Editing it is not recommended. Modify SettingsToPersist.json to specify which settings are persisted.",
"files": [
{
"name": "Game.cfg",
"sections": [
{
"name": "Chat",
"settings": [
{
@jhnsnc
jhnsnc / .editorconfig
Created February 13, 2016 04:27
Standard .editorconfig for Node projects
# EditorConfig helps developers define and maintain consistent
# coding styles between different editors and IDEs
# editorconfig.org
root = true
[*]
# Change these settings to your own preference
indent_style = space
@jhnsnc
jhnsnc / remove_bum_tweets.js
Created April 19, 2016 04:18
A quick bookmarklet for when @Worthless_Bums is filling up your Twitter feed.
javascript:var c=0;Array.prototype.forEach.call(document.querySelectorAll('.tweet[data-user-id="371635567"]'),function(t){t.parentNode.remove(),c+=1}),window.alert('Removed '+c+' Bum tweets.');
/**
* USAGE: Create a new bookmark in your browser.
* Copy/Paste the entire line above into the URL/location field.
* Name the bookmarklet something like "Remove Bum Tweets".
* Click the bookmarklet you created when you're on Twitter.com and feeling overwhelmed with tweets from @Worthless_Bums.
*/
// Written by Chris Johnson
// 2013-07-21
// Assumes jQuery is available as `$`
/*
* USAGE
* spritify($(element), { //should already have spritesheet set as background
* spriteSheetWidth: 300, //width of spritesheet
* spriteSheetHeight: 150, //height of spritesheet
* offsetX: 0, //offset applied to each frame