I hereby claim:
- I am ajitam on github.
- I am ajitam (https://keybase.io/ajitam) on keybase.
- I have a public key whose fingerprint is 2163 45EF 6AC1 6AF6 3643 F24E 624F 3155 458B 4422
To claim this, I am signing this object:
-- Send iMesage with AppleScript | |
-- @description This script open Messages application and sends iMessage to | |
-- specific apple id. | |
-- | |
-- @note Before run go to Messages and create the conversation (aka. send one | |
-- message) | |
-- | |
-- @run osascript sendAppleMessage.applescript "user@email.com" "This is an iMessage send from applescript" | |
on run {sndAppleID, sndMessage} | |
tell application "Messages" |
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
#clear | |
# Ping to get ART table (in case there were no activity for some time) | |
/sbin/ping -t 1 255.255.255.255 | |
#echo ----------------------- | |
# Scan network and find UG (U - Up, G - Gateway) | |
netstat=$(/usr/sbin/netstat -nr | grep UG) | |
#echo Netstat output: $netstat |
$(".js-number-only").bind('change keyup input', function() { | |
var value = $(this).val(); | |
value = value.replace(/[^0-9]+/g, ''); | |
$(this).val(value); | |
}); |
<?php | |
$time = time(); | |
$codes = array(); | |
while (count($codes) < 5) { | |
$code = $time*$time; | |
$code -= rand(0,999999); | |
$code = sha1($code); | |
if(!is_numeric(substr($code, 0, 1))){ | |
array_push($codes, $code); |
// http://jsfiddle.net/2vbY8/1/ | |
var locator = { | |
current_location: null, | |
getLocation: function() { | |
if (navigator.geolocation) { | |
// Browser DOES support HTML location | |
navigator.geolocation.getCurrentPosition(locator.locationOK,locator.locationFAIL); | |
} else { |
var max_height = 0; | |
$(".resize-height li").removeAttr('style'); | |
$(".resize-height li").each(function() { | |
if($(this).outerHeight() > max_height) {max_height = $(this).outerHeight();} | |
}); | |
$(".resize-height li").css('min-height', max_height+5+'px'); |
var times, | |
opacity; | |
$("#torrenttable tbody tr").each(function() { | |
times = $(this).find('td').eq(5).text(); | |
//console.log(parseInt(times.replace("times", ""),10)); | |
opacity = (parseInt(times.replace("times", ""),10))*0.000225; | |
$(this).css('background-color', 'rgba(255,0,0,'+opacity+')'); | |
}); |
<?php | |
date_default_timezone_set('Europe/Belgrade'); | |
function align($string, $width) { | |
$spaces = 0; | |
$spaces = $width - strlen($string); | |
for($i = 0; $i < $spaces; $i++) { | |
$result .= " "; | |
} |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>...</title> | |
</head> | |
<body> | |
<!-- Header --> | |
<header>...</header> |