Skip to content

Instantly share code, notes, and snippets.

View clindsey's full-sized avatar

not important clindsey

  • haunting the internet
View GitHub Profile
@clindsey
clindsey / inuitcss.md
Last active October 5, 2016 01:06
inuitcss + bemit

InuitCSS

File Organization

An explanation of ITCSS.

  • Settings: Used with preprocessors and contains font, color definitions, etc.
  • core:
@mjackson
mjackson / app.js
Created December 29, 2015 05:07
Using webpack with pixi.js
var PIXI = require('pixi.js')
console.log(PIXI)
@paulirish
paulirish / what-forces-layout.md
Last active December 2, 2025 15:01
What forces layout/reflow. The comprehensive list.

What forces layout / reflow

All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.

Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout. Read on for additional cases and details.

Element APIs

Getting box metrics
  • elem.offsetLeft, elem.offsetTop, elem.offsetWidth, elem.offsetHeight, elem.offsetParent

CSS recommended reading

CSS is a crazy person, it belongs in a dungeon.

Development

👍 ITCSS - settings, tools, generic, base, objects, components, trumps

Styleguide Driven Development - a practice that encourages the separation of UX, Design & Frontend from Backend concerns

@staltz
staltz / introrx.md
Last active December 1, 2025 11:31
The introduction to Reactive Programming you've been missing
@clindsey
clindsey / private.xml
Last active September 28, 2016 16:56
KeyRemap4MacBook + Razer Naga + OSX
<?xml version="1.0"?>
<root>
<!-- HELP RESOURCES - http://pqrs.org/macosx/keyremap4macbook/xml.html.en -->
<!-- KEY LOOKUP - https://github.com/tekezo/KeyRemap4MacBook/blob/version_8.0.0/src/bridge/generator/keycode/data/KeyCode.data -->
<!-- MODIFIER KEY LOOKUP - https://github.com/tekezo/KeyRemap4MacBook/blob/version_8.0.0/src/bridge/generator/keycode/data/ModifierFlag.data -->
<item>
<name>Razer Naga with OSX</name>
<item>
<name>browser navigate forward/back with keypad 7/9</name>
<identifier>private.browser_nav_with_num</identifier>
@gavinheavyside
gavinheavyside / trivial_file_upload_service.rb
Created November 3, 2009 20:09
Trivial file upload service using Sinatra
require 'rubygems'
require 'sinatra'
require 'fileutils'
# upload with:
# curl -v -F "data=@/path/to/filename" http://localhost:4567/user/filename
post '/:name/:filename' do
userdir = File.join("files", params[:name])