by alexander white ©
| $ brew install markdown htmldoc | |
| $ markdown <file.md> | htmldoc --cont --headfootsize 8.0 --linkcolor blue --linkstyle plain --format pdf14 - > <file.pdf> |
| export PS1='\[\e[0;36m\][\A] \u@\h:\[\e[0m\e[0;32m\]\W\[\e[1;33m\]$(__git_ps1 " (%s)")\[\e[0;37m\] \$\[\e[0m\]' |
| /* | |
| Minimal Facebook Messenger | |
| ========================== | |
| 1. Make a Fluid (http://fluidapp.com/) instance of https://facebook.com/messages/ | |
| 1. a. (You need to buy the paid version of Fluid to modify UserStyles) | |
| 2. Apply the below CSS as a Userstyles stylesheet | |
| 3. Like magic, you can now message without all the cruft of Full Facebook | |
| function interceptFunction (object, fnName, options) { | |
| var noop = function () {}; | |
| var fnToWrap = object[fnName]; | |
| var before = options.before || noop; | |
| var after = options.after || noop; | |
| object[fnName] = function () { | |
| before.apply(this, arguments); | |
| var result = fnToWrap.apply(this, arguments); | |
| after.apply(this, arguments); |
| import java.io.FileDescriptor; | |
| import java.io.FileOutputStream; | |
| import java.io.IOException; | |
| import java.io.OutputStream; | |
| import java.io.PrintStream; | |
| public class HelloWorld{ | |
| private static HelloWorld instance; | |
| public static void main(String[] args){ | |
| instantiateHelloWorldMainClassAndRun(); |
| <?php | |
| /* | |
| WordPress Theme Template Hierarchy Last updated for WordPress 5.4 | |
| ================================== | |
| This diagram is partially simplified for legibility. To view the complete template hierarchy in use on your site see the | |
| Template panel in the Query Monitor plugin. |
A collection of articles by AngularJS veterans, sometimes even core committers, that explain in detail what's wrong with Angular 1.x, how Angular 2 isn't the future, and why you should avoid the entire thing at all costs unless you want to spend the next few years in hell.
Reason for this: I'm getting tired of having to explain to everyone, chief of which all the indiscriminate Google Kool-Aid™ drinkers, why I have never believed in Angular, why I think it'll publicly fail pretty soon now (a couple years), and why it's a dead end IMO. This gist serves as a quick target I can point people to in order not to have to parrot / compile the core of the articles below everytime. Their compounded reading pretty much captures 99% of my view on the topic.
This page is accessible through http://bit.ly/angular-just-say-no and http://bit.ly/angularjustsayno, btw.
| <?php | |
| define('_PS_ROOT_DIR_', '/path/to/prestashop/root'); | |
| define('_PS_ADMIN_DIR_', _PS_ROOT_DIR_.'admin_folder'); | |
| require(_PS_ADMIN_DIR_.'/../config/config.inc.php'); | |
| require(_PS_ADMIN_DIR_.'/functions.php'); | |
| class Employee2 extends EmployeeCore | |
| { | |
| public function isSuperAdmin() |
| #!/bin/bash | |
| firstLine=`head -2 $1 | tail -1` | |
| if [[ $firstLine == \#* ]]; then # Testing that the file starts with a comment, not yet a real commit ;) | |
| echo '<type>(<component>): <subject>' > .prepare-commit-msg-temp | |
| echo '' >> .prepare-commit-msg-temp | |
| echo '<body>' >> .prepare-commit-msg-temp | |
| echo '' >> .prepare-commit-msg-temp | |
| echo '# types: feat, fix, docs, style, refactor, test, chore(mantean)' >> .prepare-commit-msg-temp |