This guide is based on the very informative discussion in this article: Using node_sqlite3 with Electron
Install sqlite3
npm install sqlite3 --save
use std::sync::Mutex; | |
use std::sync::RwLock; | |
use std::sync::Arc; | |
use std::collections::HashMap; | |
use lazy_static::lazy_static; | |
lazy_static! { | |
static ref CACHE: Mutex<HashMap<&'static str, Arc<RwLock<Option<u32>>>>> = Mutex::new(HashMap::new()); | |
} |
{% layout none %}<?xml version="1.0"?> | |
<rss xmlns:g="http://base.google.com/ns/1.0" version="2.0"> | |
{% paginate collections.all.products by 1000 %} | |
{%- assign useSEOtitle = false -%} | |
{%- assign useSEOdescription = true -%} | |
{%- assign CountryCode = 'US' -%} | |
{%- if shop.currency == 'CAD' -%}{%- assign CountryCode = 'CA' -%}{%- endif -%} | |
{%- assign Color = "" -%} | |
{%- assign Size = "" -%} | |
<channel> |
# shortform git commands | |
alias g='git' | |
# get a list of all commit messages for a repo | |
git log --pretty=format:'%s' | |
# find the nearest parent branch of the current git branch | |
git show-branch -a | grep '\*' | grep -v `git rev-parse --abbrev-ref HEAD` | head -n1 | sed 's/.*\[\(.*\)\].*/\1/' | sed 's/[\^~].*//' | |
# push changes to an empty git repository for the first time |
on sansExt(theFileName) | |
do shell script "file=" & theFileName & ";" & "echo ${file%.*}" | |
end sansExt | |
on getExt(theFileName) | |
do shell script "file=" & theFileName & ";" & "echo ${file##*.}" | |
end getExt | |
on run argv | |
set keynote_path to (item 1 of argv) |
``` | |
sudo apt-get install -y gconf-service libasound2 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils wget | |
``` |
Array.prototype.groupBy = function(prop) { | |
return this.reduce(function(groups, item) { | |
const val = item[prop] | |
groups[val] = groups[val] || [] | |
groups[val].push(item) | |
return groups | |
}, {}) | |
} |
brew cask install homebrew/cask-versions/java8 | |
brew install ant | |
brew install maven | |
brew install gradle | |
brew cask install android-sdk | |
'export ANDROID_SDK_ROOT="/usr/local/share/android-sdk"' | |
brew cask install android-ndk | |
'export ANDROID_NDK_HOME="/usr/local/share/android-ndk"' | |
brew cask install intel-haxm |
This guide is based on the very informative discussion in this article: Using node_sqlite3 with Electron
Install sqlite3
npm install sqlite3 --save
wget http://golang.org/dl/go1.3.linux-amd64.tar.gz | |
sudo tar -C /usr/local -xzf go1.3.linux-amd64.tar.gz | |
sudo echo "PATH=$PATH:/vagrant/go/bin:/usr/local/go/bin" >> ~/.profile | |
sudo echo "export GOPATH=/vagrant/go" >> ~/.profile | |
sudo echo "export GOROOT=/usr/local/go" >> ~/.profile | |
source ~/.profile |