- Pod file
pod 'FBSDKCoreKit'
pod 'FBSDKShareKit'
pod 'FBSDKLoginKit'
- AppDelegate
{"food":[{"freezer":"","name":"abruzzese sausage, dry - unopened package","pantry":"4-6 weeks","refrigerator":"6 months","shortName":"abruzzese sausage"},{"freezer":"1-2 months","name":"abruzzese sausage, dry - opened package","pantry":"","refrigerator":"2-3 weeks","shortName":"abruzzese sausage"},{"freezer":"","name":"alfalfa sprouts - fresh, raw","pantry":"","refrigerator":"2-3 days","shortName":"alfalfa sprouts"},{"freezer":"4-6 months","name":"alfredo sauce - homemade","pantry":"","refrigerator":"3-4 days","shortName":"alfredo sauce"},{"freezer":"","name":"allspice, ground, dried, commercially bottled or purchased in bulk - unopened or opened","pantry":"3-4 years","refrigerator":"","shortName":"allspice"},{"freezer":"","name":"allspice, whole, dried, commercially bottled or purchased in bulk - unopened or opened","pantry":"4 years","refrigerator":"","shortName":"allspice"},{"freezer":"","name":"almond extract, pure or imitation, commercially bottled - unopened or opened","pantry":"4 years","refrigerator": |
pod 'FBSDKCoreKit'
pod 'FBSDKShareKit'
pod 'FBSDKLoginKit'
Local notifications
import UserNotifications
class ViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
UNUserNotificationCenter.current().requestAuthorization(options: [.alert, .sound, .badge], completionHandler: {didAllow, error in })
#!/bin/bash | |
# The IP for the server you wish to ping (8.8.8.8 is a public Google DNS server) | |
SERVER=8.8.8.8 | |
# Only send two pings, sending output to /dev/null | |
ping -c2 ${SERVER} > /dev/null | |
# If the return code from ping ($?) is not 0 (meaning there was an error) | |
if [ $? != 0 ] |
brew install python3
brew linkapps python3
cv
(using virtualenvwrapper
):export PATH=/usr/local/cuda-9.0/bin${PATH:+:${PATH}} | |
export LD_LIBRARY_PATH=/usr/local/cuda-9.0/lib64 ${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} | |
sudo ldconfig /usr/local/cuda/lib64 |
For gcloud:
tcp:<PORT-NUMBER>
for this field if this is the page you see.For others:
import io | |
import re | |
import sys | |
import collections | |
if len(sys.argv) != 7: | |
print(sys.argv[0] + " <base_dict> <base_lm> <ext_dict> <ext_lm> <merged_dict> <merged_lm>") | |
sys.exit(2) | |
[basedic, baselm, extdic, extlm, outdic, outlm] = sys.argv[1:7] |
# . set_gopath.sh | |
export GOPATH=`pwd` | |
export PATH="$GOPATH/bin:$PATH" | |
# for mac osx | |
# export GOBIN=$GOPATH/bin | |
# unset if `flogo build` | |
git config --global --unset alias.gb |