Heavily informed by the work of @katowulf in this gist - https://gist.github.com/katowulf/f264e7e0c7b8cefd1bcf/eddbadfbafe9e1fe658c51e43e25ac51e26d65b6
MIT
- Angular === 1.5.0
- Firebase === 2.4.1
| <div class="container"> | |
| <ul class="flip minutePlay"> | |
| <li> | |
| <a href="#"> | |
| <div class="up"> | |
| <div class="shadow"></div> | |
| <div class="inn">0</div> | |
| </div> | |
| <div class="down"> |
| function unregister_default_wp_widgets() { | |
| unregister_widget('WP_Widget_Pages'); | |
| unregister_widget('WP_Nav_Menu_Widget'); | |
| unregister_widget('WP_Widget_Calendar'); | |
| unregister_widget('WP_Widget_Archives'); | |
| unregister_widget('WP_Widget_Links'); | |
| unregister_widget('WP_Widget_Meta'); | |
| unregister_widget('WP_Widget_Search'); | |
| unregister_widget('WP_Widget_Categories'); | |
| unregister_widget('WP_Widget_Recent_Comments'); |
| // requires Underscore.js | |
| // uses jQuery style funciton declaration (if you aren't using jQuery, simply re-arrange the declaration) | |
| function sum(arr) { | |
| // returns the sum total of all values in the array | |
| return _.reduce(arr, function(memo, num) { return memo + num}, 0); | |
| } | |
| function average(arr) { | |
| // returns the average of all values in the array |
| <title><?php | |
| if (is_home () ) { echo sprintf('The %s Blog', get_bloginfo(‘name’)); } | |
| elseif ( is_category() ) { single_cat_title(); echo ‘ - ‘ ; bloginfo(‘name’); } | |
| elseif (is_single() ) { echo sprintf('%s – The %s Blog', single_post_title(false), get_bloginfo(‘name’));} | |
| elseif (is_page() ) { single_post_title();} | |
| else { wp_title('',true); echo sprintf(' Blog – %s', get_bloginfo(‘name’));} | |
| ?></title> |
| var gulp = require('gulp'); | |
| var electron = require('gulp-atom-electron'); | |
| var del = require('del'); | |
| gulp.task('clean:dist', function () { | |
| return del(['dist/**', '!dist']); | |
| }) | |
| gulp.task('default',['clean:dist'], function () { | |
| var electronConfig = { version: '0.33.6', platform: 'darwin', token: '326cd8521a4fa11371bb89e1bec56a03f704a7e5' }; |
Heavily informed by the work of @katowulf in this gist - https://gist.github.com/katowulf/f264e7e0c7b8cefd1bcf/eddbadfbafe9e1fe658c51e43e25ac51e26d65b6
MIT
| { | |
| "stage" : "$context.stage", | |
| #foreach( $key in $input.path('$').keySet() ) | |
| "$key": "$input.path('$').get($key)"#if($foreach.hasNext), | |
| #end | |
| #end | |
| } |
First install Brew on your MAC
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"brew updatebrew tap homebrew/dupesbrew tap homebrew/phpbrew install php70mcrypt: brew install mcrypt php70-mcryptbrew install composer| // require('jStat'); | |
| function calculateSignificance(a_sessions, a_conversions, b_sessions, b_conversions) { | |
| a_cr = a_conversions / a_sessions; | |
| b_cr = b_conversions / b_sessions; | |
| a_stdErr = Math.sqrt(a_cr * (1 - a_cr) / a_sessions); | |
| b_stdErr = Math.sqrt(b_cr * (1 - b_cr) / b_sessions); | |
| // get_z_score() | |
| const z_score = |
| # autoload venv if there's a .venv file | |
| # Support for bash | |
| PROMPT_COMMAND='prompt' | |
| # Mirrored support for zsh. See: https://superuser.com/questions/735660/whats-the-zsh-equivalent-of-bashs-prompt-command/735969#735969 | |
| precmd() { eval "$PROMPT_COMMAND" } | |
| function prompt() | |
| { | |
| if [ "$PWD" != "$MYOLDPWD" ]; then |