Skip to content

Instantly share code, notes, and snippets.

View ashleahhill's full-sized avatar

Ashley L Hill ashleahhill

View GitHub Profile
@ashleahhill
ashleahhill / cleanCompassSprite.js
Created August 1, 2014 21:25
Clean Compass Sprites
//[a-z0-9]{10}
clean: {
style: {
src: [
'<%= project.path.images %>/{,*/}*-*.png'
]
}
},
@ashleahhill
ashleahhill / testApacheConfig.md
Created September 30, 2013 14:20
Test apache Config
@ashleahhill
ashleahhill / saveToFolder.js
Created September 6, 2013 00:53
Export Layer to Folder Adobe Extend Script
var docRef, docLayers, myFolder, myOutput, pngExportOptions;
docRef = app.activeDocument;
docLayers = docRef.artLayers;
myOutput = {
name: docRef.name.replace(/\.pdf/,''),
path: docRef.path,
fullPath: docRef.path + '/' + docRef.name.replace(/\.pdf/,'')
}
myFolder = new Folder (myOutput.fullPath);
@ashleahhill
ashleahhill / youdontgetveryfarinlifenotsayingis.scss
Created August 21, 2013 04:07
I like the idea of compass magic selectors, but not the outputted class names.
// Include the selectors for the `$sprite` given the `$map` and the
// `$full-sprite-name`
// @private
@mixin sprite-selectors($map, $sprite-name, $full-sprite-name) {
@each $selector in $sprite-selectors {
@if sprite_has_selector($map, $sprite-name, $selector) {
@if $selector == [something normal]{
&:#{$selector}, &.is-#{$selector}{
@include sprite-background-position($map, "#{$sprite-name}_#{$selector}");
}
@ashleahhill
ashleahhill / loginissue.md
Created March 21, 2013 18:20
Can't log in to Ubuntu w/Gnome
  1. Login Screen ALT+CTRL+F1 To get Terminal
  2. Login with messed up user
~$ ls -a
~$ vi .xsession-errors

  1. Read the Error. Google.
  2. Check for a bad shell script in .profile
@ashleahhill
ashleahhill / gist:5134392
Created March 11, 2013 13:54
Node OSX from grunt-contrib-watch
https://npmjs.org/package/grunt-contrib-watch
How do I fix the error EMFILE: Too many opened files.?
This is because of your system's max opened file limit. For OSX the default is very low (256). Temporarily increase your limit with ulimit -n 10480, the number being the new max limit.