Skip to content

Instantly share code, notes, and snippets.

@jpgls
jpgls / dabblet.css
Created March 31, 2013 08:29
ASCII Web Platform
/**
* ASCII Web Platform
*/
background: #111;
min-height: 100%;
font-size:11pt;
letter-spacing:4px;
line-height:11pt;
font-weight:bold;
@jpgls
jpgls / gitBitsAndPieces
Created May 10, 2014 05:11
Useful git commands
## Remove files that have already been indexed
$ git rm -r --cached [filesToRemove]
@jpgls
jpgls / list-html-classes
Last active August 29, 2015 14:01
List All Class Names Used on Page
// Temporary code for Development
var elements = document.getElementsByTagName('*');
console.log('$$$$$ - Checked this many elements - ', elements.length);
var unique = function (list, x) {
if (x != "" && list.indexOf(x) === -1) {
list.push(x);
}
return list;
};
@jpgls
jpgls / devResources.md
Last active June 21, 2016 17:48
Living list of webdev resources
@jpgls
jpgls / cssTransitions-multipleProperties.css
Last active August 29, 2015 14:03
CSS Transition Shorthand Syntax for Multiple Properties
.some-selector {
-webkit-transition: height 0.3s ease-out, opacity 0.3s ease 0.5s;
-moz-transition: height 0.3s ease-out, opacity 0.3s ease 0.5s;
-ms-transition: height 0.3s ease-out, opacity 0.3s ease 0.5s; /* IE10 is actually unprefixed */
-o-transition: height 0.3s ease-out, opacity 0.3s ease 0.5s;
transition: height 0.3s ease-out, opacity 0.3s ease 0.5s;
}
/* Adding delay to height property */
.some-selector {
@jpgls
jpgls / photostreamCaveats.md
Created July 3, 2014 21:16
Photostream Caveats

Photostream Syncing Caveats

Wifi obviously, but two things I didn't know -

  • Photostream only syncs when the camera app is closed
  • Photostream only syncs when the battery is above 20%
@jpgls
jpgls / sublime-search-strings.md
Last active September 1, 2016 04:02
Sublime Text Search Strings

Sublime Text Search Strings

For use in Sublime Text's "Find In Files..." Dialog (⇧⌘F)

Regex Search Strings

These are some useful templates for regex strings to use in the "Find:" field

Search "Near"

@jpgls
jpgls / user.less
Created August 7, 2014 23:12
Folding Text - Prelim Custom Stylesheet
// This is your user.less. Use it to override the default styling. When this
// file is first created all lines are commented out (start with //) and so it
// has no effect in the editor's style.
// To change the font uncomment the following line:
@fontFamily: "Input Sans";
// To change the font size uncomment the following line:
@fontSize: 11pt;
@jpgls
jpgls / font-smoothing.md
Created August 14, 2014 22:19
Font Smoothing CSS

Font Smoothing CSS Rules

When you have small fonts, or narrow ornaments that don't look right in the browser, try these-moz and -webkit rules for font-smoothing.

.font-smoothing {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
@jpgls
jpgls / css-ellipsis.md
Created August 14, 2014 22:40
CSS Ellipsis - Single Line (standard)

CSS Ellipsis Rules

All of these rules need to be in place for CSS Ellipses to work:

.truncate {
  width: 250px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}