start new:
tmux
start new with session name:
tmux new -s myname
| <?php | |
| //This is all you need to configure. | |
| $app_key = ''; | |
| $app_token = ''; | |
| //These are our constants. | |
| $api_base = 'https://api.twitter.com/'; | |
| $bearer_token_creds = base64_encode($app_key.':'.$app_token); |
| <?php | |
| /* | |
| * Solution to order first by date, then by start time (both are meta values) | |
| * http://wordpress.stackexchange.com/a/67391/5045 | |
| * */ | |
| add_action( 'pre_get_posts', 'pre_get_posts_programpunkter' ); | |
| function pre_get_posts_programpunkter( $query ) { | |
| if( !is_admin() && is_post_type_archive( 'programpunkt' ) && $query->is_main_query() ) { |
| add_action( 'wp_enqueue_scripts', 'wpsites_load_javascript_conditionally' ); | |
| function wpsites_load_javascript_conditionally() { | |
| if ( is_page('page-slug') ) { | |
| wp_enqueue_script( 'your-script' ); | |
| } | |
| } |
| /** | |
| * Helvetica Neue Normal (No Stretch) | |
| */ | |
| /* Helvetica Neue Black Font Stack */ | |
| .{font-family: "HelveticaNeueBlack", "HelveticaNeue-Black", "Helvetica Neue Black", "HelveticaNeue", "Helvetica Neue", 'TeXGyreHerosBold', "Arial Black", sans-serif; font-weight:800; font-stretch:normal;} | |
| /* Helvetica Neue Heavy Font Stack */ | |
| .{font-family: "HelveticaNeueHeavy", "HelveticaNeue-Heavy", "Helvetica Neue Heavy", "HelveticaNeue", "Helvetica Neue", 'TeXGyreHerosBold', "Arial Black", sans-serif; font-weight:700; font-stretch:normal;} |
| /** | |
| * Be sure to include library scripts in this order. Can be placed either | |
| * in the header or footer. | |
| */ | |
| <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.0/jquery.min.js"></script> | |
| <script src="//cdnjs.cloudflare.com/ajax/libs/jquery-infinitescroll/2.0b2.120519/jquery.infinitescroll.min.js"></script> | |
| <script src="//cdnjs.cloudflare.com/ajax/libs/masonry/3.1.2/masonry.pkgd.js"></script> | |
| <script src="//cdnjs.cloudflare.com/ajax/libs/jquery.imagesloaded/3.0.4/jquery.imagesloaded.min.js"></script> |
This is a reference to Matthew Ericson's article Export Illustrator Layers and/or Artboards as PNGs and PDFs in case something happens to happen to the article, and if I just forget where to find the exporter online.
MultiExporter.js into /Applications/Adobe\ Illustrator\ CS6/Presets.localized/en_GB/Scripts# sudo rm -rf /Library/Frameworks/Python.framework
sudo rm -rf /Library/Frameworks/Python.framework/Versions/2.7
sudo rm -rf "/Applications/Python 2.7"cd /usr/local/bin && \
sudo ls -l /usr/local/bin | grep '../Library/Frameworks/Python.framework/Versions/2.7' | awk '{print $9}' | xargs rm