###Download XCode from the App Store Get it from here
###Get cmake Use/get a package manager, such as homebrew. Open a terminal window and type the following
brew install cmake
This will get the required packages for cmake.
# change 1280*768 to what ever your monitor and computer must support but does not! | |
cvt 1280 768 60 | |
# 1280x768 59.87 Hz (CVT) hsync: 47.78 kHz; pclk: 79.50 MHz | |
# Modeline "1280x768_60.00" 79.50 1280 1344 1472 1664 768 771 781 798 -hsync +vsync | |
# change based on what was printed after the previous command | |
xrandr --newmode "1280x768_60.00" 79.50 1280 1344 1472 1664 768 771 781 798 -hsync +vsync | |
xrandr --addmode VGA1 "1280x768_60.00" |
private void sendSMS(String to, String text) { | |
SmsManager sms = SmsManager.getDefault(); | |
ArrayList<String> messages = sms.divideMessage(text); | |
sms.sendMultipartTextMessage(to, null, messages, null, null); | |
} |
private void sendSMS(String to, String text) { | |
SmsManager sms = SmsManager.getDefault(); | |
sms.sendTextMessage(to, null, text, null, null); | |
} |
def main(): | |
i = 1 | |
while True: | |
i += 1 | |
print i | |
if s(factorial(i)) == 8001: | |
print 'YES' | |
break | |
def factorial(n): |
› brew install -v opencv | |
/usr/bin/env python -c import numpy | |
==> Downloading http://sourceforge.net/projects/opencvlibrary/files/opencv-unix/2.3.1/OpenCV-2.3.1a.tar.bz2 | |
File already downloaded in /Users/Yasser/Library/Caches/Homebrew | |
/usr/bin/tar xf /Users/Yasser/Library/Caches/Homebrew/opencv-2.3.1a.tar.bz2 | |
==> Patching | |
/usr/bin/patch -f -p1 -i 001-homebrew.diff | |
patching file modules/highgui/src/grfmt_exr.hpp | |
==> cmake . -DCMAKE_INSTALL_PREFIX='/usr/local/Cellar/opencv/2.3.1a' -DCMAKE_BUILD_TYPE=None -Wno-dev -DPYTHON_LIBRARY='/usr/local/Cellar/python/2.7.2/lib/libpython2.7.dylib' -DPYTHON_INCLUDE_DIR='/usr/local/Cellar/python/2.7.2/include/python2.7' -DPYTHON_PACKAGES_PATH='/usr/local/Cellar/opencv/2.3.1a/lib/python2.7/site-packages' | |
cmake . -DCMAKE_INSTALL_PREFIX='/usr/local/Cellar/opencv/2.3.1a' -DCMAKE_BUILD_TYPE=None -Wno-dev -DPYTHON_LIBRARY='/usr/local/Cellar/python/2.7.2/lib/libpython2.7.dylib' -DPYTHON_INCLUDE_DIR='/usr/local/Cellar/python/2.7.2/include/python2.7' -DPYTHON_PACKAGES |
› jitsu deploy | |
path.existsSync is now called `fs.existsSync`. | |
info: Welcome to Nodejitsu yasser | |
info: It worked if it ends with Nodejitsu ok | |
info: Executing command deploy | |
info: Analyzing your application dependencies in subway | |
warn: Local version appears to be old | |
warn: Your package.json version will be incremented for you automatically | |
warn: About to write /Users/Yasser/repo/subway/package.json | |
data: |
##Model
This is an implementation of Facebook's baseline GRU/LSTM model on the bAbI dataset Weston et al. 2015. It includes an interactive demo.
The bAbI dataset contains 20 different question answering tasks.
The model training script train.py and demo script demo.py are included below.
# git aliases | |
alias gs='git status' | |
alias gl="git log --graph --pretty=format:'%Cred%h%Creset %an: %s - %Creset %C(yellow)%d%Creset %Cgreen(%cr)%Creset' --abbrev-commit --date=relative" | |
alias gpom='git push origin master' | |
alias gpo='git push origin' | |
alias gp='git push' | |
alias glom='git pull origin master' | |
alias glo='git pull origin' | |
alias gm='git commit -m' | |
alias gma='git commit -am' |
# | |
# mexopts.sh Shell script for configuring MEX-file creation script, | |
# mex. These options were tested with the specified compiler. | |
# | |
# usage: Do not call this file directly; it is sourced by the | |
# mex shell script. Modify only if you don't like the | |
# defaults after running mex. No spaces are allowed | |
# around the '=' in the variable assignment. | |
# | |
# Note: For the version of system compiler supported with this release, |