This file contains 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
mkdir ~/Glew | |
cd ~/Glew | |
wget https://sourceforge.net/projects/glew/files/glew/1.9.0/glew-1.9.0.tgz | |
wget https://nvidia-texture-tools.googlecode.com/svn-history/r96/trunk/cmake/FindGLEW.cmake | |
mv FindGLEW.cmake /usr/share/cmake-2.8/Modules/ | |
tar -xvf glew-1.9.0.tgz | |
cd ./glew-1.9.0/ | |
sudo make | |
cd ~ | |
rm -r ~/Glew |
This file contains 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
buildscript { | |
repositories { | |
mavenCentral() | |
} | |
dependencies { | |
classpath 'com.android.tools.build:gradle:0.6.+' | |
} | |
} | |
apply plugin: 'android' |
This file contains 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
adb shell screenrecord /sdcard/my_video.mp4 | |
adb pull /sdcard/my_video.mp4 |
This file contains 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
/** | |
* on click listener for the scan button | |
* @param v view that was clicked | |
*/ | |
@OnClick(R.id.scan_wrapper_button) | |
public void onScanClick(View v){ | |
Analytics.trackAction("Scan", null); | |
togglePressed((ImageButton) findViewById(R.id.scan_button)); | |
Intent intent = new Intent( PIC2SHOP_PACKAGE ); |
This file contains 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
buildscript { | |
repositories { | |
mavenCentral() | |
} | |
dependencies { | |
classpath 'com.android.tools.build:gradle:0.6.+' | |
} | |
} | |
apply plugin: 'android' |
This file contains 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/sh | |
mkdir ~/Dev | |
cd ~/Dev | |
echo $'export DEV_HOME="$HOME/Dev"' >>~/.bash_profile | |
wget http://www.interior-dsgn.com/apache/maven/maven-3/3.0.5/binaries/apache-maven-3.0.5-bin.tar.gz | |
tar -xvf apache-maven-3.0.5-bin.tar.gz | |
echo $'export MAVEN_HOME="$DEV_HOME/apache-maven-*/bin"\nPATH="$PATH:$(echo $MAVEN_HOME)"' >> ~/.bash_profile | |
rm apache-maven-3.0.5-bin.tar.gz |
This file contains 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
ackage com.tstine.practice2; | |
import android.app.Activity; | |
import android.graphics.Color; | |
import android.graphics.drawable.Drawable; | |
import android.os.Bundle; | |
import android.text.Spannable; | |
import android.text.SpannableString; | |
import android.text.SpannableStringBuilder; | |
import android.text.Spanned; |
This file contains 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
import aws from 'aws-sdk' | |
import path from 'path' | |
import fs from 'fs' | |
aws.config.loadFromPath(path.resolve('credentials', 'aws_config.json')); | |
const ses = new aws.SES({apiVersion: '2010-12-01'}); | |
const resetEmail = fs.readFileSync(path.resolve('emails', 'reset-password.html'), 'utf8'); | |
const verifyEmail = fs.readFileSync(path.resolve('emails', 'verify-email.html'), 'utf8'); | |
import {Constants} from 'parse-server' | |
import Promise from 'bluebird' |
This file contains 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
import {ParseServer} from 'parse-server' | |
const parseApi = new ParseServer({ | |
mailConfig: { | |
service: 'mailgun', | |
apiKey: 'key-MAILGUNKEY', | |
domain:'DOMAIN.mailgun.org', | |
fromAddress:'MY App <mailgun@MY_APP_DOMAIN>' | |
}, | |
...parseParams | |
}); |
This file contains 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
function SESAdapter(appId, mailApiConfig) { | |
this.appId = appId; | |
this.apiConfig = mailApiConfig; | |
} | |
SESAdapter.prototype.sendMail = function(to, subject, body) { | |
return new Promise((resolve, reject)=>{ | |
ses.sendEmail({ | |
Source: 'contact@MYAPP.DOMAIN', | |
Destination: { |
OlderNewer