I hereby claim:
- I am jaimeguaman on github.
- I am jaime (https://keybase.io/jaime) on keybase.
- I have a public key whose fingerprint is 04E2 4F5D 38EE 5EFE A964 0958 0A55 EBBD F48A 7D84
To claim this, I am signing this object:
<?php | |
$file = '/path/to/file.png'; | |
$filename = basename($file); | |
$upload_file = wp_upload_bits($filename, null, file_get_contents($file)); | |
if (!$upload_file['error']) { | |
$wp_filetype = wp_check_filetype($filename, null ); | |
$attachment = array( | |
'post_mime_type' => $wp_filetype['type'], | |
'post_parent' => $parent_post_id, |
/** | |
* Copy of Excel's PMT function. | |
* Credit: http://stackoverflow.com/questions/2094967/excel-pmt-function-in-js | |
* | |
* @param rate_per_period The interest rate for the loan. | |
* @param number_of_payments The total number of payments for the loan in months. | |
* @param present_value The present value, or the total amount that a series of future payments is worth now; | |
* Also known as the principal. | |
* @param future_value The future value, or a cash balance you want to attain after the last payment is made. | |
* If fv is omitted, it is assumed to be 0 (zero), that is, the future value of a loan is 0. |
/*************************************** | |
Responsive Helper | |
Usage: | |
.my-box { | |
padding: 10px; | |
@include for-size(tv) { | |
padding: 80px; | |
} | |
@include for-size(desktop-up) { |
I hereby claim:
To claim this, I am signing this object:
/** | |
* Facebook Loader Fake UI | |
*/ | |
@-webkit-keyframes loaderFx{ | |
0%{ | |
background-position:-460px 0 | |
} | |
100%{ | |
background-position:460px 0 | |
} |
/* CSS Gradient Yin Yang. */ | |
html{ | |
background: radial-gradient(circle at 50% 33.3%, black 3%, white 2%, white 17.8%, transparent 0) no-repeat, radial-gradient(circle at 50% 66.8%, white 3%, black 2%, black 17.8%, transparent 0) no-repeat, radial-gradient(circle at 50% 50%, transparent 40%, black 41%, white 25%)no-repeat, -webkit-linear-gradient(left, white 50%, black 50%) no-repeat; | |
background-size:800px 600px; | |
} |
/* CSS Gradient Yin Yang. NO More before & after PLS */ | |
.shinshan{ | |
width:40%; | |
height:500px; | |
margin:0 auto; | |
border-radius:50%; | |
overflow:hidden; | |
border:2px solid black; | |
/* chrome (webkit, blink), firefox, opera and safary (I guess). IE, you just fuck off */ | |
background: |
function getURLAction(action){ | |
var posibleAction=window.location.hash.replace(/^#\/?/, ""); | |
posibleAction=posibleAction.substring(0,posibleAction.indexOf('?')); | |
return posibleAction==action ? true : false | |
} | |
function getURLParameter(name,inHashSearch){ | |
var searchScope=inHashSearch ? window.location.hash : location.search; | |
return decodeURIComponent((new RegExp('[?|&]' + name + '=' + '([^&;]+?)(&|#|;|$)').exec(searchScope)||[,""])[1].replace(/\+/g, '%20'))||null; | |
} |
/^((\+?56\s)?(0?2|0?3[2-5]|0?4[1-5]|0?5[123578]|0?6[13457]|0?7[1235])?(\s2\d{6}|\s\d{6}))$/ | |
'+56 2 2xxxxxx', | |
'+56 51 2xxxxxx', | |
'+56 51 xxxxxx', | |
'56 75 xxxxxx', | |
'56 051 xxxxxx', | |
'56 051 2xxxxxx', | |
'+56 051 2xxxxxx' |
/^(\+?56)?(\s?)(0?9)(\s?)[98765432]\d{7}$/ |