Skip to content

Instantly share code, notes, and snippets.

View danielgroner's full-sized avatar

Daniel danielgroner

View GitHub Profile
@artero
artero / launch_sublime_from_terminal.markdown
Last active May 15, 2024 03:38 — forked from olivierlacan/launch_sublime_from_terminal.markdown
Launch Sublime Text 2 from the Mac OS X Terminal

Launch Sublime Text 2 from the Mac OS X Terminal

Sublime Text 2 ships with a CLI called subl (why not "sublime", go figure). This utility is hidden in the following folder (assuming you installed Sublime in /Applications like normal folk. If this following line opens Sublime Text for you, then bingo, you're ready.

open /Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl

You can find more (official) details about subl here: http://www.sublimetext.com/docs/2/osx_command_line.html

Installation

@bastianallgeier
bastianallgeier / loaded.css
Created December 2, 2011 10:57
I'd love to have a :loaded pseudo selector in css, which makes it possible to style elements when they are actually loaded – like images, iframes or the entire document
img {
opacity: 0;
-webkit-transition: opacity .2s;
-moz-transition: opacity .2s;
-o-transition: opacity .2s;
transition: opacity .2s;
}
img:loaded {
opacity: 1;
@volgorean
volgorean / app.js
Created December 3, 2017 08:08
Example vue.js app setup without webpack
new Vue({
el: "#app",
new Router({
mode: "history",
routes: [
{ path: "/", component: httpVueLoader("components/dash.vue") }
]
})
});