This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Author: Andy Hawkins | |
Email: YW5keUBhOTA0Z3V5LmNvbQ== | |
Facebook: http://fb.me/andyhawkins | |
HackerNews: http://hackerne.ws/user?id=a904guy | |
This file will allow you to create a project that will create global functions that allow you to instantly access and singleton classes from their class name |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Created by [BombSquad Inc](http://www.bmbsqd.com) | |
* User: Andy Hawkins | |
* Date: 3/26/15 | |
* Time: 9:01 PM | |
*/ | |
if (php_sapi_name() == "cli") { | |
//Launch Web Server |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
__author__ = 'Andy Hawkins' | |
__version__ = 0 | |
""" | |
__ __ __ | |
| |--.--------| |--.-----.-----.--| | | |
| _ | | _ |__ --| _ | _ | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$("#layout-header,#top-text-ad-region,#inbox-threads,#inbox-module-rail,#compose-region").remove(); | |
$("#inbox-content-container").css('min-width','100%','important'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var url; performance.getEntriesByType("resource").map((x) => url = x['name'].contains('fbcdn.net/v/') && x['name'].contains('video') ? x['name'].replace(new RegExp('bytestart=.*?&'),'bytestart=0') : url ); window.location = url; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for letter in {A..Z} ; do | |
format $letter+":\"; | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var message = 'Message to be sent here' | |
$(".msg-conversation-listitem__link").on('click.andy', | |
function (e) { | |
setTimeout( | |
function () { | |
console.log('Setting Message'); | |
$('.msg-thread').find('textarea').val(message).attr('data-artdeco-is-focused', 'true').trigger('keyup'); | |
setTimeout( | |
function () { | |
console.log('Submitting'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Possible to pass version as first arg of the script | |
# `install_python 3.6` | |
versions="2.3 2.4 2.5 2.6, 2.7 3.2 3.3 3.4 3.5 3.5 3.6" | |
## Parse first arg or else ask which version to install | |
if [ $1 ]; | |
then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Possible to pass version as first arg of the script | |
# ./install_php 7.2 (Latest Available) | |
versions="5.6 7.0 7.1 7.2" | |
## Parse first arg or else ask which version to install | |
if [ $1 ]; | |
then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import itertools | |
import string | |
from typing import List, Union | |
class crunch: | |
char_list: List[str] = list(string.ascii_uppercase) + list(string.ascii_lowercase) + list(string.digits) | |
min: int = 1 | |
max: int = 6 | |
resume: Union[None, str] = None |
OlderNewer