Skip to content

Instantly share code, notes, and snippets.

View XiXora's full-sized avatar

Damon Stephenson XiXora

View GitHub Profile
@IanOfGit
IanOfGit / KeyboardAssemblyGuide.md
Last active January 21, 2024 02:49
How to Assemble a Custom Mechanical Keyboard

This is a detailed, but generalized guide to the assembly of a custom mechanical keyboard designed around the Cherry MX standard.

Authored by IanOfEarth with editorial input from the members of the Relay.FM Members-Only Discord Server Keyboards Channel: "The most exclusive keyboards community on the internet." - Jaicob, Co-Founder Mode Designs, 2022-06-11

Inspired by MattVortex, my love, my muse.

Pre-Build

Prepare Switches

@effiksmusic
effiksmusic / m4motorfader_v10.1.ini
Last active December 2, 2023 15:36
Motofader setup v10.1
# Motofader setup v10.1
# December 2022
# INPUTS:
# I1: [cv input]
# I4: [activity]
# I5: [gate input]
# OUTPUTS:
@davidfowl
davidfowl / .NET6Migration.md
Last active July 1, 2024 01:52
.NET 6 ASP.NET Core Migration

Angular2 + JSPM cheat sheet

First time setup

  • install jspm beta: npm install -g jspm@beta
  • set up your project: jspm init
  • install dependencies: jspm install angular2 reflect-metadata zone.js es6-shim

This will create a jspm_packages folder, and a config.js file.

Open the config.js file - this file manages options for the System.js loader - tweak it as appropriate

using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Threading;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;
namespace Pauwels.AspNet
@metaskills
metaskills / left-nav.scss
Created August 28, 2014 20:30
Dynamic SVGs Using <defs> Elements & JavaScript
@import "bourbon";
$steeler-fill1: rgba(#052838, 0.8);
$steeler-fill2: rgba(#95a8b1, 0.3);
@include keyframes(star) {
0% { opacity: 1.0; }
20% { opacity: 0.2; }
50% { opacity: 0.7; }
70% { opacity: 0.1; }
@tvandervossen
tvandervossen / environment.js
Last active April 2, 2024 20:18
Here’s an example of my current web app user agent, device, and/or feature detection approach. I tend to inline this in the page header just before the stylesheet as part of the distribution build. A benefit of this approach is that detection is done early without any external dependencies. It’s also straightforward to modify or extend while you…
env = (function() {
var flags = {}, ua = navigator.userAgent, el = document.createElement('div'), video = document.createElement('video'), audio = document.createElement('audio'), root = document.documentElement, i
function flag(names) {
names = names.split(' ')
for (i = 0; i < names.length; i++)
flags[names[i]] = true
}
function classnames() {
var names = [], name
for(name in flags) if (flags.hasOwnProperty(name))
@ryanrousseau
ryanrousseau / OAuth2Authorize.cs
Created June 22, 2012 13:30
OAuth2 Authorize Attribute for MVC Web API
using System;
using System.Net;
using System.Security.Cryptography;
using System.Security.Cryptography.X509Certificates;
using System.Security.Principal;
using System.ServiceModel.Channels;
using System.Threading;
using System.Web.Http;
using System.Web.Http.Controllers;
using System.Web.Http.Filters;
@thulstrup
thulstrup / compass-retina-sprites.scss
Created March 20, 2012 19:18
Using Compass to generate normal and retina sprite maps
$sprites: sprite-map("sprites/*.png");
$sprites-retina: sprite-map("sprites-retina/*.png");
@mixin sprite-background($name) {
background-image: sprite-url($sprites);
background-position: sprite-position($sprites, $name);
background-repeat: no-repeat;
display: block;
height: image-height(sprite-file($sprites, $name));
width: image-width(sprite-file($sprites, $name));
@madrobby
madrobby / i18n.coffee
Created November 14, 2011 15:45
Backbone i18n with CoffeeScript
# before this file is loaded, a locale should be set:
#
# In a browser environment, you can use:
# ```<script>__locale='en';</script>```
#
# In a server environment (specifically node.js):
# ```global.__locale = 'en';```
# normalize in-app locale string to "en" or "de-AT"
parts = @__locale.split('-')