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 | |
/* | |
Term Archive Pages: | |
- http://example.com/recipes/dinner/ | |
- http://example.com/recipes/breakfast,brunch/ | |
Single Recipe Pages: | |
- http://example.com/recipes/dinner/soup-title/ |
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 | |
$password_length = 8; | |
function password_strength($password) { | |
$returnVal = True; | |
if ( strlen($password) < $password_length ) { | |
$returnVal = False; | |
} |
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 php | |
<?php | |
//usage: php envato-screenshots-downloader.php /path/to/save/screenshots http://url/to/screenshots/page | |
set_time_limit(0); | |
$dir = $argv[1]; | |
$source = $argv[2]; | |
print_r($argv); | |
mkdir ($dir); | |
$src = file_get_contents($source); | |
$pattern = '/src="(https:\/\/0.s3[a-zA-Z0-9_\-\.\/%]+)"/i'; |
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 | |
/* | |
you may modify: | |
php: | |
filename | |
file max size | |
buf size | |
how long to wait |
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 | |
/* | |
Plugin Name: Ninja Forms Email Attachment | |
*/ | |
function add_my_attachment( $attachments ) { | |
$attachments[] = 'server_path_to_my_file'; | |
return $attachments; | |
} |
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 pluginify from 'pluginify'; | |
class Plugin { | |
constructor() { | |
/* ... */ | |
} | |
} | |
/* | |
Convert plugin class into a jQuery plugin |
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
The MIT License (MIT) | |
Copyright (c) 2015 Justin Perry | |
Permission is hereby granted, free of charge, to any person obtaining a copy of | |
this software and associated documentation files (the "Software"), to deal in | |
the Software without restriction, including without limitation the rights to | |
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of | |
the Software, and to permit persons to whom the Software is furnished to do so, | |
subject to the following conditions: |
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
#ais-wrapper { | |
display: flex; | |
} | |
#ais-main { | |
padding: 1rem; | |
width: 100%; | |
} |
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
{ | |
"Kwajalein":"(GMT-12:00) International Date Line West", | |
"Pacific\/Midway":"(GMT-11:00) Midway Island", | |
"Pacific\/Samoa":"(GMT-11:00) Samoa", | |
"Pacific\/Honolulu":"(GMT-10:00) Hawaii", | |
"America\/Anchorage":"(GMT-09:00) Alaska", | |
"America\/Los_Angeles":"(GMT-08:00) Pacific Time (US & Canada)", | |
"America\/Tijuana":"(GMT-08:00) Tijuana, Baja California", | |
"America\/Denver":"(GMT-07:00) Mountain Time (US & Canada)", | |
"America\/Chihuahua":"(GMT-07:00) Chihuahua", |
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
/* Charlie Foxtrot - If You Know What It Means ;) */ | |
package main | |
import ( | |
"fmt" | |
"strings" | |
"bufio" | |
"os" | |
) |
OlderNewer