[ Launch: An inlet to Tributary ] 4589121 by trtg
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
#from functools import lru_cache#python >=3.2 | |
from functools32 import lru_cache#python 2.7 | |
#from repoze.lru import lru_cache#python 2.7 | |
#NOTE: you can use python -m trace --count fibonacci.py | |
#to see how many times each instruction is called | |
#@lru_cache(maxsize=500)#repoze.lru needs maxsize arg | |
@lru_cache()#using functools32 | |
def fibonacci(n): |
An inlet to tributary
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
from rauth.service import OAuth1Service | |
from credentials import consumer_key,consumer_secret | |
mendeley = OAuth1Service( | |
name='mendeley', | |
consumer_key=consumer_key, | |
consumer_secret=consumer_secret, | |
request_token_url='http://api.mendeley.com/oauth/request_token/', | |
access_token_url='http://api.mendeley.com/oauth/access_token/', | |
authorize_url='http://api.mendeley.com/oauth/authorize/', |
An inlet to tributary
An inlet to tributary
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
scripts/compileOF.sh | |
emerge freeimage | |
emerge glew | |
emerge jack-audio-connection-kit | |
add USER_LDFLAGS = -lGLEW -lGLU to apps/projectGenerator/projectGeneratorSimple/config.make | |
scripts/compilePG.sh |
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
//Demo app to blink the red LED (LED1) on the TI Launchpad | |
//which is attached to P1.0 | |
//The green LED(LED2) is connected to P1.6 | |
#include <msp430g2553.h> | |
int main(void) { | |
volatile int i; | |
// stop watchdog timer |
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
emerge crossdev | |
mkdir /usr/local/portage | |
add PORTDIR_OVERLAY="/usr/local/portage" to /etc/make.conf | |
mv /etc/portage/package.env /etc/portage/package.env.bak | |
mkdir /etc/portage/package.env | |
mv /etc/portage/package.env.bak /etc/portage/package.env/x86_64-pc-linux-gnu | |
crossdev -s4 -t msp430 #stage 4 will build gcc, libc, and binutils | |
#This will also create: /usr/msp430/etc/portage/make.conf | |
crossdev --ex-only --ex-gdb -t msp430 #just cross compile gdb | |
emerge mspdebug |
NewerOlder