Skip to content

Instantly share code, notes, and snippets.

@yaowenqiang
yaowenqiang / dabblet.css
Created December 17, 2011 07:11 — forked from LeaVerou/dabblet.css
Untitled
input[type=email]:focus:valid{background:pink;}
input[type=email]:valid{background:yellow;}
input[type=email]:focus:invalid{background:#ccf;}
::-webkit-validation-bubble-message {
color: #eee;
background: #000;
border-color: #444;
-webkit-box-shadow: 4px 4px 4px rgba(100,100,100,0.5);
-webkit-animation-timing-function: ease;
-webkit-animation: bounce 0.45s 1;
@yaowenqiang
yaowenqiang / git tutorials.md
Created July 29, 2012 03:24 — forked from jaseemabid/git tutorials.md
Awesome git tutorials I am finding here and there
[Default Text]
FileNameExtensions=txt; text; wtx; log; asc; doc; diz; nfo
Default Style=font:Consolas; size:10; fore:#F8F8F2; back:#272822
Margins and Line Numbers=size:-2; fore:#BCBCBC; back:#3B3A32
Matching Braces=size:+1; bold; fore:#000000; back:#FD971F
Matching Braces Error=size:+1; bold; fore:#F8F8F0; back:#F92672
Control Characters (Font)=size:-1
Indentation Guide (Color)=fore:#A0A0A0
Selected Text (Colors)=fore:#F8F8F2; back:#49483E; eolfilled
Whitespace (Colors, Size 0-5)=
#!/usr/bin/sh
set -e
sudo apt-get install openjdk-7-jdk git-core wget -y # Ubuntu 12.04 meets no problem
wget --no-check-certificate -O ~/bin/lein https://raw.github.com/technomancy/leiningen/preview/bin/lein
chmod 755 ~/bin/lein
# Add ~/bin to your $PATH, it has been done if in Ubuntu 12.04
lein # the first time it will install itself
<?php
/**
* @file
* sample_push_many.php
*
* Apns-php 文件夹地址:https://www.dropbox.com/sh/170mcjp39v5qwqe/IUv7IUmBcc
* Push demo
*
* LICENSE
*
[client]
host=
user=
password=

How to purge ('ban') an entire domain in Varnish Cache 3

#####EDIT: NB Ban is technically different from Purge. Banned objects remain in memory but banning is faster than purging. Read the Varnish 3 documentation here and here.

Purge may be a more appropriate action for your use-case; although the examples in the gist below work, it's not necessarily the best way of doing this.


##Given Apache 2 and MySQL are already installed.

#Update MacPorts sudo port selfupdate;sudo port -u upgrade outdated

#Install PHP 5.4.* sudo port install php54 php54-apache2handler ##Activate Apache Module cd /opt/local/apache2/modules

How to remove hide the select arrow in Firefox using -moz-appearance:none;

tl;dr (or, the fix)

  1. Set -moz-appearance to none. This will "reset" the styling of the element;
  2. Set text-indent to 0.01px. This will "push" the text a tiny bit[1] to the right;
  3. Set text-overflow to '' (an empty string). This will change anything that extends beyond the element's width to... nothing - and this includes the infamous arrow!

Firefox select element with no arrow

[emacs]
name=Emacs 24.2 repo
baseurl=http://pj.freefaculty.org/EL/6/x86_64/
failovermethod=priority
enabled=1
gpgcheck=1
gpgkey=http://pj.freefaculty.org/EL/PaulJohnson-BinaryPackageSigningKey