$q.all([ promise1, promise2 ]).then($q.spread(function (promise1Result, promise2Result) {
});
| ! Hide "This is your last free article" banners | |
| ! REQUIRED: Use "Forget Me Not" to block cookie: pay_ent_msmp@*.newyorker.com | |
| ! to actually block the paywall. (Change domain to suit) | |
| ! UPDATE 2025: No longer works. Block "build" js instead as below. | |
| ! vanityfair.com##.journey-unit__container | |
| ! wired.com##.journey-unit__container | |
| ! newyorker.com##.journey-unit__container | |
| ! gq.com##.journey-unit__container | |
| ! Brisbane Times & Fairfax sites |
| -- Logseq Hookmark integration via Applescript | |
| -- Copies Links to pages only, not blocks. | |
| -- Paste this into Hook -> Preferences -> Scripts -> Logseq -> Get Address | |
| tell application "System Events" | |
| set the clipboard to "" | |
| delay 0.5 | |
| -- You need to set a keyboard shortcut for "Copy page Url" in Logseq | |
| -- Here: CMD + CTRL + SHIFT + U |
| license: bsd-3-clause |
| # The packages we'll be using | |
| packages <- c("rvest","dplyr","tidyr","pipeR","ggplot2","stringr","data.table") | |
| # From those packages, which ones are not yet installed? | |
| newPackages <- packages[!(packages %in% as.character(installed.packages()[,"Package"]))] | |
| # If any weren't already installed, install them now | |
| if(length(newPackages)) install.packages(newPackages) | |
| # Now make sure all necessary packages are loaded |
| /* From http://furbo.org/2015/07/09/i-left-my-system-fonts-in-san-francisco/ */ | |
| * { font-family: -apple-system-font, HelveticaNeue, LucidaGrande; } | |
| /* Dynamic Type feature */ | |
| * { font-family: -apple-system-headline1, HelveticaNeue, LucidaGrande; } | |
| * { font-family: -apple-system-headline2, HelveticaNeue, LucidaGrande; } | |
| * { font-family: -apple-system-body, HelveticaNeue, LucidaGrande; } | |
| * { font-family: -apple-system-subheadline1, HelveticaNeue, LucidaGrande; } | |
| * { font-family: -apple-system-subheadline2, HelveticaNeue, LucidaGrande; } |
| if version < 600 | |
| syntax clear | |
| elseif exists("b:current_syntax") | |
| finish | |
| endif | |
| syn case match | |
| " indication for missing a proper subject or object 'who is doing what?' | |
| syn keyword authorAnonym man |
| using System.IO; | |
| using UnityEngine; | |
| using UnityEditor; | |
| using UnityEditor.Callbacks; | |
| public static class PostBuildTrigger | |
| { | |
| private static DirectoryInfo targetdir; | |
| private static string buildname; | |
| private static string buildDataDir; |
| " Don't try to be vi compatible | |
| set nocompatible | |
| " Helps force plugins to load correctly when it is turned back on below | |
| filetype off | |
| " TODO: Load plugins here (pathogen or vundle) | |
| " Turn on syntax highlighting | |
| syntax on |
| // MultiExporter.jsx | |
| // Version 0.1 | |
| // Version 0.2 Adds PNG and EPS exports | |
| // Version 0.3 Adds support for exporting at different resolutions | |
| // Version 0.4 Adds support for SVG, changed EPS behaviour to minimise output filesize | |
| // Version 0.5 Fixed cropping issues | |
| // Version 0.6 Added inner padding mode to prevent circular bounds clipping | |
| // | |
| // Copyright 2013 Tom Byrne | |
| // Comments or suggestions to tom@tbyrne.org |