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 / 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 / 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

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
# 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'
say -v Fred "Fitter, happier, more productive,\
comfortable,\
not drinking too much,\
regular exercise at the gym\
(3 days a week),\
getting on better with your associate employee contemporaries,\
at ease,\
eating well\
(no more microwave dinners and saturated fats),\
a patient better driver,\
// Read full blogpost explaining this at http://labs.lillyapps.no/2014/04/12/handle-timezones-parse-com
var moment = require('cloud/moment-timezone.js');
moment.tz.add(require('cloud/moment-timezone-data.js'));
Parse.Cloud.define("momentTest", function (request, response)
{
var osloSummerTime = moment.tz('2014-04-12 11:55', 'Europe/Oslo');
var osloWinterTime = moment.tz('2013-11-18 11:55', 'Europe/Oslo');
@kyuumeitai
kyuumeitai / custom-cf7-tags.php
Created September 9, 2016 18:41 — forked from bainternet/custom-cf7-tags.php
custom contact form 7 tags
<?php
//contact form 7 extras
//author email
wpcf7_add_shortcode('expert_email', 'wpcf7_expert_email_shortcode_handler', true);
function wpcf7_expert_email_shortcode_handler($tag) {
if (!is_array($tag)) return '';
$name = $tag['name'];
if (empty($name)) return '';
@kyuumeitai
kyuumeitai / README.md
Last active January 30, 2017 19:31 — forked from lopezjurip/README.md
Write to NTFS on OSX Yosemite and El Capitan

Install Homebrew:

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Update Homebrew formulae:

brew update