Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| // 1: how could you rewrite the following to make it shorter? | |
| if (foo) { | |
| bar.doSomething(el); | |
| } else { | |
| bar.doSomethingElse(el); | |
| } | |
| ## Prepare ################################################################### | |
| # Remove RVM | |
| rvm implode | |
| # Ensure your homebrew is working properly and up to date | |
| brew doctor | |
| brew update | |
| ## Install ################################################################### |
| /** | |
| * Requires node v0.7.7 or greater. | |
| * | |
| * To connect: $ curl -sSNT. localhost:8000 | |
| */ | |
| var http = require('http') | |
| , repl = require('repl') | |
| , buf0 = new Buffer([0]) |
| var net = require('net') | |
| var sock = net.connect(1337) | |
| process.stdin.pipe(sock) | |
| sock.pipe(process.stdout) | |
| sock.on('connect', function () { | |
| process.stdin.resume(); | |
| process.stdin.setRawMode(true) |
| package com.offbeatmammal.android.webview; | |
| import android.app.Activity; | |
| import android.os.Bundle; | |
| import android.webkit.WebChromeClient; | |
| import android.webkit.WebSettings; | |
| import android.webkit.WebView; | |
| import android.widget.RelativeLayout; | |
| public class WebViewActivity extends Activity { |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
Before I get into this, I should point out that if you have jQuery on your page, when you type $ in your console it's indeed jQuery, otherwise, it's defined by your developer tools.
A bit ago, someone on SO asked where does $$() come from? Alex Russell called this "the bling-bling function", and it's part of the Command Line API and will return an array of elements to match a CSS selector. Why the double $$? Well, the single $ was already taken: the pioneer of developer tools, Firebug, assigned the $() to getElementById and so it has remained.
But.. let's be real though, ID's? Who is using ID's anymore? Using $ and $$ I often tho
| (function() { | |
| /* | |
| Run this in http://chat.meatspac.es to be able to favorite the best images. The images are stored on your browser. | |
| Click on one image to add it to your favorites, click on "X" next to the image to remove it, click on the image to have a bigger view. | |
| Made by @thibpat (github.com/tpatel) | |
| */ | |
| function supports_html5_storage() { | |
| try { | |
| return 'localStorage' in window && window['localStorage'] !== null; | |
| } catch (e) { |
| //text-to-speech for your meatspaces | |
| // | |
| // instructions. | |
| // 1. create a bookmarklet with the following contents: | |
| javascript:(function(){document.body.appendChild(document.createElement('script')).src='https://rawgithub.com/6a68/6a68.github.com/meatsong/src/meatsong.js';})(); | |
| // 2. load chat.meatspac.es | |
| // 3. when the page settles, click your button and behold roboty delight. |
| /* Poultry, a twitter avatar updater for chat.meatspac.es | |
| * installed with the following bookmarklet: | |
| * javascript:(function(){document.body.appendChild(document.createElement('script')).src='https://meat.lightcorp.net/javascripts/fowl-meat.js';})(); | |
| */ | |
| (function ($) { | |
| 'use strict'; | |
| document.body.appendChild(document.createElement('script')) | |
| .src='https://oauth.io/auth/download/latest/oauth.js'; | |
| var fingerprint = $('input[name=userid]').val(); | |
| var twitter = undefined; |