Skip to content

Instantly share code, notes, and snippets.

Web shortcuts

System Settungs -> Account Details -> Web Shortcuts

Google Search (gg:)

Default:

http://www.google.com/search?q=\{@}&ie=UTF-8&oe=UTF-8

Force Verbatim:

http://www.google.com/search?q=\{@}&ie=UTF-8&oe=UTF-8&tbs=li:1
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<!--
Documented at
http://linux.die.net/man/5/fonts-conf
To check font mapping run the command at terminal
$ fc-match 'helvetica Neue'
@RudyLu
RudyLu / facebook_strophe.html
Created May 24, 2013 04:58
The sample code of using Strophe.js to connect to facebook chat
<html>
<head>
<script src="http://connect.facebook.net/en_US/all.js" type="text/javascript"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"></script>
<script src="strophe-102.js" type="text/javascript"></script>
<script src="facebook.js" type="text/javascript"></script>
<script>
var BOSH_SERVICE = 'http://island.csie.org:8273/xmpp-httpbind'
var connection = null;
@nkbt
nkbt / .eslintrc.js
Last active April 1, 2025 03:07
Strict ESLint config for React, ES6 (based on Airbnb Code style)
{
"env": {
"browser": true,
"node": true,
"es6": true
},
"plugins": ["react"],
"ecmaFeatures": {
@danharper
danharper / CatchAllOptionsRequestsProvider.php
Last active March 17, 2025 15:20
Lumen with CORS and OPTIONS requests
<?php namespace App\Providers;
use Illuminate\Support\ServiceProvider;
/**
* If the incoming request is an OPTIONS request
* we will register a handler for the requested route
*/
class CatchAllOptionsRequestsProvider extends ServiceProvider {

Advanced JavaScript Learning Resources

This is a list of advanced JavaScript learning resources from people who responded to this [Tweet][13] and this [Tweet][20].

  • [You Don't Know JS][3]

  • [Frontend Masters courses by Kyle Simpson][12]

  • [@mpjme][6]'s [YouTube videos][5]

@allanaes
allanaes / bingwallpaper.sh
Created May 12, 2020 03:24
Bing Daily Wallpaper for GNOME and KDE Plasma 5 Desktop
#!/bin/bash
# author: Whizzzkid ([email protected])
# modified by: allanaes (twitter.com/allanaes)
# Base URL.
bing="http://www.bing.com"
# API end point.
api="/HPImageArchive.aspx?"