Simple pure JavaScript plugin to rotate text snippets as if they were being typed.
A Pen by Secret Sam on CodePen.
$(document).ready(function() | |
{ | |
if ( $.browser.msie ){ | |
if($.browser.version == '6.0') | |
{ $('html').addClass('ie6'); | |
} | |
else if($.browser.version == '7.0') | |
{ $('html').addClass('ie7'); | |
} | |
else if($.browser.version == '8.0') |
var getGooglAuthToken = function(b){ | |
var c = function(){ | |
for (var l=0, m=0, ml=arguments.length; m<ml; m++) l = l + arguments[m] & 4294967295; | |
return l; | |
} | |
var d = function(l){ | |
l = String(l > 0 ? l : l + 4294967296); | |
var m = l; | |
for (var o=0, n=false, p=m.length-1; p>=0; --p){ | |
var q = Number(m.charAt(p)); |
## | |
# Command to empty Trash with 35-pass security method. This is the most secure deletion, | |
# so you will not be able to recover any file deleted with this method. | |
# Replace <MAC_USER> with your Mac username. | |
## | |
srm -rfv /Users/<MAC_USER>/.Trash/* | |
## | |
# Command to empty Trash with 7-pass security method that meets the |
# Git Flow completion | |
complete -F _git_flow gf | |
complete -F __git_flow_feature feature | |
complete -F __git_flow_release release | |
complete -F __git_flow_hotfix hotfix |
<?php | |
function get_ip_address() { | |
$ip_keys = array('HTTP_CLIENT_IP', 'HTTP_X_FORWARDED_FOR', 'HTTP_X_FORWARDED', 'HTTP_X_CLUSTER_CLIENT_IP', 'HTTP_FORWARDED_FOR', 'HTTP_FORWARDED', 'REMOTE_ADDR'); | |
foreach ($ip_keys as $key) { | |
if (array_key_exists($key, $_SERVER) === true) { | |
foreach (explode(',', $_SERVER[$key]) as $ip) { | |
// trim for safety measures | |
$ip = trim($ip); | |
// attempt to validate IP | |
if (validate_ip($ip)) { |
<?php | |
class Fetcher | |
{ | |
private $_torIp = '127.0.0.1'; | |
private $_torProxyPort = '8118'; | |
protected function _request($url) |
Simple pure JavaScript plugin to rotate text snippets as if they were being typed.
A Pen by Secret Sam on CodePen.
/* | |
<a href="posts/2" data-method="delete"> <---- We want to send an HTTP DELETE request | |
- Or, request confirmation in the process - | |
<a href="posts/2" data-method="delete" data-confirm="Are you sure?"> | |
Requires you to have a meta tag with CSRF Token: | |
<meta name="csrf-token" content="{{ csrf_token() }}"> | |
*/ |
This is my script for handling unsolicited sales calls. I can tell by the caller id as they usually come in on our second (unpublished) phone number.
Thank you for calling Planet Argon. If you know your party’s extension, please say or enter it followed by the pound key.
#!/bin/sh | |
# genssl.sh - Generates all required certificate files in one go. Written in | |
# 2014 by Patrick "Argure" Godschalk <[email protected]>. | |
# | |
# To the extent possible under law, the author has dedicated all copyright and | |
# related and neighbouring rights to this software to the public domain | |
# worldwide. This software is distributed without any warranty. | |
# | |
# You may view the CC0 Public Domain Dedication at |