Skip to content

Instantly share code, notes, and snippets.

View mixcas's full-sized avatar
🎶
hacking for kpop

Carlos Solares mixcas

🎶
hacking for kpop
View GitHub Profile
var keyStr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="
function base64_decode(input){
var output = new Array();
var chr1, chr2, chr3;
var enc1, enc2, enc3, enc4;
var i = 0;
var orig_input = input;
input = input.replace(/[^A-Za-z0-9\+\/\=]/g, "");
if (orig_input != input)
--- Proyectos/my-repo ‹master› » tree .git
.git
|-- HEAD
|-- branches
|-- config
|-- description
|-- hooks
| |-- applypatch-msg.sample
| |-- commit-msg.sample
| |-- post-update.sample
@mixcas
mixcas / blocker.js
Last active November 18, 2016 22:31
Blocker.js
(function(){
var css = "@font-face{font-family:'Block';src:url('https://github.com/christiannaths/Redacted-Font/raw/master/src/Redacted-Regular.ttf') format('truetype');} body{font-size: 0.6em !important;letter-spacing: -1px;}",
head = document.head || document.getElementsByTagName('head')[0],
style = document.createElement('style');
style.type = 'text/css';
if (style.styleSheet){
style.styleSheet.cssText = css;
} else {
style.appendChild(document.createTextNode(css));
@mixcas
mixcas / opengraph_wordpress
Last active December 23, 2015 20:29
Facebook Open Graph tags for Wordpress
<?php //FACEBOOK OG ?>
<meta property="fb:app_id" content="231596313659705"/>
<meta property="og:title" content="<?php if (is_home () || is_front_page() ) {
bloginfo('name');
} elseif ( is_category() ) {
single_cat_title(); echo ' | ' ; bloginfo('name');
} elseif (is_single() ) {
single_post_title();
} elseif (is_page() ) {
single_post_title(); echo ' | '; bloginfo('name');
admins-iMac:~ cas$ brew doctor
Your system is raring to brew.
admins-iMac:~ cas$ brew --config
HOMEBREW_VERSION: 0.9.4
ORIGIN: https://github.com/mxcl/homebrew
HEAD: bd29176508aa2f33fca0692a5c9174e6d9567632
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: quad-core 64-bit sandybridge
OS X: 10.7.5-x86_64