// jQuery
$(document).ready(function() {
// code
})
This file contains hidden or 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 | |
| /* | |
| * PHP: Recursively Backup Files & Folders to ZIP-File | |
| * MIT-License - 2012-2018 Marvin Menzerath | |
| */ | |
| // Make sure the script can handle large folders/files | |
| ini_set('max_execution_time', 600); | |
| ini_set('memory_limit', '1024M'); |
This file contains hidden or 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 | |
| // Dirty, easy to miss a ' or " or . | |
| echo '<a href="' . get_permalink() . '" class="link">' . get_the_title() . '</a>'; | |
| // Clean, easier to read | |
| printf( '<a href="%s" class="link">%s</a>', get_permalink(), get_the_title() ); | |
| // Almost as clean, and more secure, maybe a little paranoic :) | |
| printf( '<a href="%s" class="link">%s</a>', esc_url( get_permalink() ), esc_html( get_the_title() ) ); |
This file contains hidden or 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
| -- Modified by Felipe Reyes <freyes@tty.cl> | |
| -- Original: http://awesome.naquadah.org/wiki/Acpitools-based_battery_widget | |
| -- usage: | |
| -- require("battery") | |
| -- include "mybattmon" in your wibox | |
| local naughty = require("naughty") | |
| local time_rem = "" | |
| mybattmon = widget({ type = "textbox", name = "mybattmon", align = "right" }) |
Awesome PHP has been relocated permanently to its own Github repository. No further updates will made to this gist.
Please open an issue for any new suggestions.
NewerOlder