This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Install Spark on CentOS 7 | |
yum install java -y | |
java -version | |
yum install wget -y | |
wget http://downloads.typesafe.com/scala/2.11.7/scala-2.11.7.tgz | |
tar xvf scala-2.11.7.tgz | |
sudo mv scala-2.11.7 /usr/lib | |
sudo ln -s /usr/lib/scala-2.11.7 /usr/lib/scala |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Install mlpack on OSX 10.11 (EI Capitan) | |
curl -O http://tenet.dl.sourceforge.net/project/arma/armadillo-6.500.5.tar.gz | |
tar zxvf armadillo-6.500.5.tar.gz | |
cd armadillo-6.500.5 | |
./configure | |
make | |
make install | |
cd .. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Install mlpack on CentOS 7 | |
yum -y groupinstall "Development Tools" | |
yum -y install epel-release | |
yum -y install boost-devel boost-test boost-program-options boost-math libxml2-devel armadillo-devel | |
yum -y install txt2man | |
yum -y install cmake | |
wget http://www.mlpack.org/files/mlpack-2.0.1.tar.gz | |
tar xzvf mlpack-2.0.1.tar.gz |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// main.m | |
// phonetic transcription | |
// | |
// Created by Darcy Liu on 20/02/2016. | |
// Copyright © 2016 Darcy Liu. All rights reserved. | |
// | |
// clang main.m -fobjc-arc -fmodules -o main |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# host challenge files on Apache for your domain | |
<VirtualHost *:80> | |
ServerAdmin [email protected] | |
DocumentRoot /var/www/example.domain | |
ServerName example.domain | |
# Add following code to your Apache VirtualHost | |
Alias "/.well-known/acme-challenge" "/var/www/challenges/" | |
<Directory "/var/www/challenges/"> | |
Header set Content-Type "application/jose+json" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install Time Machine service on CentOS 7 | |
# http://netatalk.sourceforge.net/wiki/index.php/Netatalk_3.1.7_SRPM_for_Fedora_and_CentOS | |
# http://confoundedtech.blogspot.com/2011/07/draft-draft-ubuntu-as-apple-time.html | |
yum install -y rpm-build gcc make wget | |
# install netatalk | |
yum install -y avahi-devel cracklib-devel dbus-devel dbus-glib-devel libacl-devel libattr-devel libdb-devel libevent-devel libgcrypt-devel krb5-devel mysql-devel openldap-devel openssl-devel pam-devel quota-devel systemtap-sdt-devel tcp_wrappers-devel libtdb-devel tracker-devel | |
yum install -y bison docbook-style-xsl flex dconf |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Install OpenCV on OS X Yosemite | |
# # install cmake | |
# curl -O https://cmake.org/files/v3.4/cmake-3.4.3.tar.gz | |
# tar xzvf cmake-3.4.3.tar.gz | |
# cd cmake-3.4.3 | |
# ./bootstrap | |
# make | |
# make install |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// NSString+AppStore.h | |
// NSString+Additions | |
// | |
// Created by Darcy Liu on 11/5/14. | |
// Copyright (c) 2014 Darcy Liu. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
size: {102.804, 486.74399999999957} | |
rect: {{0, 0}, {102.804, 486.74399999999957}} | |
suggestedSize: {98.6953125, 480} | |
rect: {{0, 0}, {100, 487}} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>items</key> | |
<array> | |
<dict> | |
<key>assets</key> | |
<array> | |
<dict> |