Skip to content

Instantly share code, notes, and snippets.

  • in the CSS inspector in the Chrome DevTools
  • when i disable (or change) a property which is mapped to a source file
  • the link to the source file is destroyed

is there a way to respawn the link to the source file without reloading the page?

@afknapping
afknapping / .bashrc
Created May 14, 2014 15:59
bash aliases for wtf did i do today (and yesterday)
alias wtf-did-i-do-yesterday="echo '' && echo 'wtf did i do yesterday?' && echo '' && git log --pretty=format:'%Cred%h%Creset - %s%Creset - %Cgreen%cd%Creset ' --date=relative --all --since=2.days.ago --until=1.day.ago --author=\"$(git config user.name)\""
alias wtf-did-i-do-today="echo '' && echo 'wtf did i do today?' && echo '' && git log --pretty=format:'%Cred%h%Creset - %s%Creset - %Cgreen%cd%Creset ' --date=relative --all --since=6am --author=\"$(git config user.name)\""
# the aliases need escaped double quotes
# to try the commands directly, copy this and paste into your terminal:
# echo '' && echo 'wtf did i do today?' && echo '' && git log --pretty=format:'%Cred%h%Creset - %s%Creset - %Cgreen%cd%Creset ' --date=relative --all --since=6am --author="$(git config user.name)"
@afknapping
afknapping / gist:9bbdb57b3bb72f6c5444
Created July 16, 2014 11:07
WIKI FORMATTING CHEAT SHEET

WIKI FORMATTING CHEAT SHEET

	[http://www.edgewall.com/ Edgewall Software]
	[wiki:TitleIndex Title Index]
	[wiki:ISO9000]
	Tickets: #1 or ticket:1
	Reports: {1} or report:1

	'''bold''', '''!''' can be bold too''', and '''! '''

''italic''

@afknapping
afknapping / gist:b591591c2eef694f75c3
Created August 26, 2014 10:44
decks/new console
Error: [$injector:unpr] Unknown provider: tProvider <- t <- initFromFormDirective
http://errors.angularjs.org/1.3.0-beta.13/$injector/unpr?p0=tProvider%20%3C-%20t%20%3C-%20initFromFormDirective
at http://slidr.io/assets/application-990ff6f4690b960587bd83aa24c12279.js:7:8904
at http://slidr.io/assets/application-990ff6f4690b960587bd83aa24c12279.js:7:25744
at Object.i [as get] (http://slidr.io/assets/application-990ff6f4690b960587bd83aa24c12279.js:7:24956)
at http://slidr.io/assets/application-990ff6f4690b960587bd83aa24c12279.js:7:25841
at i (http://slidr.io/assets/application-990ff6f4690b960587bd83aa24c12279.js:7:24956)
at Object.r [as invoke] (http://slidr.io/assets/application-990ff6f4690b960587bd83aa24c12279.js:7:25280)
at http://slidr.io/assets/application-990ff6f4690b960587bd83aa24c12279.js:7:29941
at Array.forEach (native)
@afknapping
afknapping / gist:c675f5bd3cec571f1afe
Created April 10, 2015 08:24
CouchDB.app OS X – how does it stop?
- downloaded the OS X app
- it started and opened a browser tab with the Futon UI
- had no idea how to stop it:
- CouchDB.app didn't give any feedback when opening again
- didn't find anything related in the doc links
- `$ couchdb -s` replied "Apache CouchDB is not running."
- `$ couchdb` replied:
```
Apache CouchDB 1.6.1 (LogLevel=info) is starting.
Failure to start Mochiweb: eaddrinuse
@afknapping
afknapping / gist:c762f55f39d8f8b73577
Last active August 29, 2015 14:18
CouchDB.app OS X – how does it stop?
  • downloaded the OS X app
  • it started and opened a browser tab with the Futon UI
  • had no idea how to stop it:
    • CouchDB.app didn't give any feedback when opening again
    • didn't find anything related in the doc links
    • $ couchdb -s replied "Apache CouchDB is not running."
    • $ couchdb replied:
      Apache CouchDB 1.6.1 (LogLevel=info) is starting.
      

Failure to start Mochiweb: eaddrinuse

@afknapping
afknapping / gist:52ce380f756bd8d1d4b2
Created April 10, 2015 08:32
CouchDB.app OS X – how does it stop?
  • downloaded the OS X app
  • it started and opened a browser tab with the Futon UI
  • had no idea how to stop it:
    • CouchDB.app didn't give any feedback when opening again
    • didn't find anything related in the doc links
    • $ couchdb -s replied "Apache CouchDB is not running."
    • $ couchdb replied:
      Apache CouchDB 1.6.1 (LogLevel=info) is starting.
      

Failure to start Mochiweb: eaddrinuse

React...

  • is technology which was innovative 5 years ago
  • is obsolete today because [web components] started to ship in major browsers
  • solves problems nobody except facbook has ('serving highly dynamic content to billions of people')
  • under constraints most web apps don't have ('legacy browser support matrix')
  • assuming resources nobody of us have (last facebook dev count i remember was ~2k)
  • doesn't have CSS scoping (about which you don't care, because CSS is "the designer's problem", right?)
  • introduces its own file format (wtf, just use two different standard file formats like the rest of us)
  • hard-couples controller and view (what could possibly go wrong, right?)
@afknapping
afknapping / gist:d4df26210d78769ecfe2
Last active August 29, 2015 14:20
child care at community events

child care at community events

  • finding a nanny, recommended pay
    • make clear how many spots for what ages
  • location
    • (conference) room with nearby toilets
    • nearby kita/kiga
  • toys etc
  • general introduction to child safety
  • Legal/liability/insurance stuff. doing it "official" vs doing it "private"
@afknapping
afknapping / gist:7fbc0229a8c7b67fde88
Last active August 29, 2015 14:21
Basic dev enviroment and tooling for designers on OS X