Skip to content

Instantly share code, notes, and snippets.

View zackexplosion's full-sized avatar
🏠
Working from home

Zack zackexplosion

🏠
Working from home
View GitHub Profile

An ongoing project to catalogue all of these sneaky, hidden, bleeding edge selectors as I prepare my JSConf EU 2012 talk.

Everything is broken up by tag, but within each the selectors aren't particularly ordered.

I have not tested/verified all of these. Have I missed some or got it wrong? Let me know. - A

A friendly reminder that you may need to set this property on your target/selected element to get the styling results you want:

-webkit-appearance:none;

<h1>hello</h1>
<?php
if('tori' === 'gay'){
echo 'yooooooooooooooooo';
}
?>
<?php if('tori' === 'gay'): ?>
yooooooooooooooooo <!-- this is html code -->
<?php endif;?>
var http = require('http');
var base = 'http://www.fighter.com.tw/updata/down_files/';
var patterns = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split('');
// var patterns = "ABC".split('');
var password_length = 2;
var level = 0;
var total_length = Math.pow(patterns.length , password_length);
@zackexplosion
zackexplosion / 0_reuse_code.js
Last active August 29, 2015 14:16
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
#include <string.h>
int main(int argc,char*argv[]) {
char CommandBuf[20];
int a,b,sum;
fprintf(stderr,"Please enter a number:");
fgets(CommandBuf,20,stdin);
a = atoi(CommandBuf);
default: &default
adapter: postgresql
encoding: unicode
host: localhost
# For details on connection pooling, see rails configuration guide
# http://guides.rubyonrails.org/configuring.html#database-pooling
pool: 5
development:
<<: *default
<?php
$ENV = 'development';
if($ENV == 'production'){
$VERSION = '20150601';
}else{
$VERSION = time();
}
?>
<html>
@zackexplosion
zackexplosion / gist:8b1b96663a93129c741c
Created June 1, 2015 07:23
simple javascript version cache control
var ENV = 'production';
var version = Date.now();
if(ENV == 'production'){
version = '20150601';
}
var url = 'https://gist.github.com/cstony0917/425c39beb6ec83662e26.js';
$.ajax(url + '?v=' + version);
@zackexplosion
zackexplosion / gulpfile.js
Created June 21, 2015 05:35
plugins.js not build
// generated on 2015-06-14 using generator-gulp-webapp 1.0.0
import gulp from 'gulp';
import gulpLoadPlugins from 'gulp-load-plugins';
import browserSync from 'browser-sync';
import del from 'del';
import {stream as wiredep} from 'wiredep';
const $ = gulpLoadPlugins();
const reload = browserSync.reload;
require "net/http"
require "uri"
require "random-word"
# enter your hook
hook = ""
uri = URI.parse(hook)