Skip to content

Instantly share code, notes, and snippets.

View kyuumeitai's full-sized avatar

Álex Acuña Viera kyuumeitai

View GitHub Profile
@kyuumeitai
kyuumeitai / dabblet.css
Created January 5, 2012 22:14 — forked from anonymous/dabblet.css
Possible solution: transparent to :visible pseudoclass.
/*
Possible solution: transparent to :visible pseudoclass.
BTW, it's not Webkit, it's chrome-only bug (at least MAC version 16.0.912.63)
Feel free to comment.
http://kyuumeitai.posterous.com/
*/
a {
-moz-transition: 1s background;
-ms-transition: 1s background;
@kyuumeitai
kyuumeitai / html5start
Created June 22, 2012 17:34
html5: start template
<!DOCTYPE html>
<!--[if lt IE 7 ]> <html lang="en" class="no-js ie6"> <![endif]-->
<!--[if IE 7 ]> <html lang="en" class="no-js ie7"> <![endif]-->
<!--[if IE 8 ]> <html lang="en" class="no-js ie8"> <![endif]-->
<!--[if IE 9 ]> <html lang="en" class="no-js ie9"> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!--> <html lang="en" class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<!--[if IE]><![endif]-->
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
@kyuumeitai
kyuumeitai / hack.sh
Created November 30, 2012 15:33 — forked from erikh/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#
/*
* Copyright (c) 2010 Tobias Schneider
* This script is freely distributable under the terms of the MIT license.
*/
(function(){
var UPC_SET = {
"3211": '0',
"2221": '1',
"2122": '2',
@kyuumeitai
kyuumeitai / style.css call replacement for WordPress
Created January 9, 2013 21:45
It prints a parameter with the modification date on it. Useful for pushing updates when the style changes.
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); echo '?'.filemtime(get_stylesheet_directory().'/style.css'); ?>" />
@kyuumeitai
kyuumeitai / pdf2jpg.sh
Created January 28, 2013 13:43 — forked from yura/pdf2jpg.sh
#!/bin/bash
# Script to convert PDF file to JPG images
#
# Dependencies:
# * pdftk
# * imagemagick
PDF=$1
@kyuumeitai
kyuumeitai / gist:5084283
Last active December 14, 2015 12:09
Die with style.
<?php
if(!$variable)
die('<iframe width="100%" height="100%" src="http://www.youtube.com/embed/IAISUDbjXj0?autoplay=1&iv_load_policy=3" frameborder="0" allowfullscreen></iframe>');
?>

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
/*global ga*/
/*global Modernizr*/
/*jslint bitwise: true*/
$(function(){
'use strict';
var cardpool = [];
var allcards = [];
function mnetgaevent(label,action){
try{
ga('send', 'event', label, action);
# Install Homebrew
# http://mxcl.github.io/homebrew/
# Install system dependencies
brew install rtmpdump git
# Install perl dependencies
sudo perl -MCPAN -e 'install YAML::Base'
sudo perl -MCPAN -e 'install Crypt::Rijndael'
sudo perl -MCPAN -e 'install WWW::Mechanize'