Skip to content

Instantly share code, notes, and snippets.

View rex's full-sized avatar
🧘
Designing calm systems for 20 years. Available.

ᴘɪᴇʀᴄᴇ ᴍᴏᴏʀᴇ™ rex

🧘
Designing calm systems for 20 years. Available.
View GitHub Profile
@rex
rex / 2-space-tabs.editorconfig
Created January 29, 2015 17:37
EditorConfig Files
root = true
[*]
end_of_line = lf
trim_trailing_whitespsace = true
insert_final_newline = true
charset = utf-8
indent_style = space
indent_size = 2
class Entity
constructor: (params) ->
@user_id = params.user_id
@logged_in = true
@user_data = {}
class User extends Entity
class Admin extends Entity
do_something = ->
@rex
rex / rex.sublime-settings
Last active December 4, 2015 01:25
My Sublime Text settings
{
"Rex_tabs_font_small": true,
"bold_folder_labels": true,
"caret_style": "phase",
"color_scheme": "Packages/Material Theme/schemes/Material-Theme.tmTheme",
"colored_folder_glyphs": true,
"default_line_ending": "unix",
"detect_slow_plugins": false,
"disable_colored_folder_labels": false,
"disable_colored_group_labels": false,
@rex
rex / rex.sublime-keymap
Created January 11, 2015 12:57
My Sublime Text key mappings
[
{
"keys": ["alt+w"],
"command": "toggle_setting",
"args":
{
"setting": "word_wrap"
}
},
{
@rex
rex / mixins.scss
Last active July 30, 2021 02:48
Sass Mixin Collection
/**
* Note: Several of these mixins (especially the first few) assume you are using
* the Flat UI color variables and $flat-ui-colors from the flat-ui-colors gist
* > https://gist.github.com/rex/61964b6d2060059c6a5c
*/
// Generate a border for an item with a random color. Useful for debugging CSS layouts.
@mixin random-border() {
// Pick a random number from 1-20, since we have 20 flat-ui colors
$key: random(20);
@rex
rex / this-is-how-we-do-it.rb
Created November 21, 2014 22:39
This is how we do it. Shell style.
#!/usr/bin/env ruby
# names = `say -v ? | awk '{print $1}'`
# names_array = names.split(/\n/)
# names_array.each do |name|
# puts " > #{name}"
# `say #{name} -v #{name}`
# end
@rex
rex / colors.scss
Last active March 11, 2017 17:48
Flat UI Colors for SASS/Compass Projects
$css-colors: AliceBlue, AntiqueWhite, Aqua, Aquamarine, Azure, Beige, Bisque, Black, BlanchedAlmond, Blue, BlueViolet, Brown, BurlyWood, CadetBlue, Chartreuse, Chocolate, Coral, CornflowerBlue, Cornsilk, Crimson, Cyan, DarkBlue, DarkCyan, DarkGoldenRod, DarkGray, DarkGreen, DarkKhaki, DarkMagenta, DarkOliveGreen, DarkOrange, DarkOrchid, DarkRed, DarkSalmon, DarkSeaGreen, DarkSlateBlue, DarkSlateGray, DarkTurquoise, DarkViolet, DeepPink, DeepSkyBlue, DimGray, DodgerBlue, FireBrick, FloralWhite, ForestGreen, Fuchsia, Gainsboro, GhostWhite, Gold, GoldenRod, Gray, Green, GreenYellow, HoneyDew, HotPink, IndianRed, Indigo, Ivory, Khaki, Lavender, LavenderBlush, LawnGreen, LemonChiffon, LightBlue, LightCoral, LightCyan, LightGoldenRodYellow, LightGray, LightGreen, LightPink, LightSalmon, LightSeaGreen, LightSkyBlue, LightSlateGray, LightSteelBlue, LightYellow, Lime, LimeGreen, Linen, Magenta, Maroon, MediumAquaMarine, MediumBlue, MediumOrchid, MediumPurple, MediumSeaGreen, MediumSlateBlue, MediumSpringGreen, MediumT
@rex
rex / bootstrap-navbar.slim
Created August 8, 2014 12:56
Default Twitter Bootstrap nav bar, in the Slim templating language
nav.navbar.navbar-default role="navigation"
.container-fluid
/! Brand and toggle get grouped for better mobile display
.navbar-header
button.navbar-toggle data-target="#bs-example-navbar-collapse-1" data-toggle="collapse" type="button"
span.sr-only Toggle navigation
span.icon-bar
span.icon-bar
span.icon-bar
a.navbar-brand href="#" Brand
@rex
rex / .gitignore
Created August 5, 2014 13:26
Cure-all .gitignore = happy
.DS_Store
thumbs.db
node_modules/
bower_components/
.sass-cache/
.cap-tasks~
*.tmp
.env
*.env.*
@rex
rex / .editorconfig
Created August 5, 2014 13:20
My standard editor configuration file
root = true
# Global defaults
[*]
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 2
trim_trailing_whitespace = true
charset = utf-8