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
var express = require('express'); | |
var stormpath = require('express-stormpath'); | |
var app = express(); | |
app.use(stormpath.init(app, { | |
apiKeyFile: process.env[(process.platform == 'win32') ? 'USERPROFILE' : 'HOME'] + '/.stormpath/apiKey.properties', | |
secretKey: 'some_random_long_string_here', | |
application: 'https://api.stormpath.com/v1/applications/xxx', | |
})); |
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
create a template engine |
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
# This test is meant to test out Scenario 1: a lot of users are concurrently | |
# creating accounts and then logging into a web service with Stormpath. | |
# | |
# This script will create 1,000 users total before exiting. This script should | |
# be launched as many concurrent times as you want to emulate production | |
# traffic. | |
from uuid import uuid4 | |
from stormpath.client import Client |
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
# This test is meant to test out Scenario 2: users logging into a group | |
# protected page, refreshing their custom data, and saving it. | |
# | |
# This script will run the above operations 1,000 times in a row, and should be | |
# launched as many concurrent times as you want to emulate production traffic. | |
from uuid import uuid4 | |
from stormpath.client import Client | |
STORMPATH_API_KEY_ID = 'xxx' |
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
#!/usr/bin/python | |
""" | |
hello-world.py | |
@author: Randall Degges | |
@email: rdegges@gmail.com | |
@date: 11-20-09 | |
This program tests the pycall library and makes sure that you are able to place |
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
#!/usr/bin/python | |
""" | |
simple-flood.py | |
@author: Randall Degges | |
@email: rdegges@gmail.com | |
@date: 11-20-09 | |
This program floods the specified phone number. |
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
/* | |
* test.c | |
* | |
* @author: Randall Degges | |
* @email: rdegges@gmail.com | |
* @date: 1-7-2009 | |
* | |
* This example program demonstrates a weird way to reference array elements in C. All | |
* credit goes to the Stack Overflow 'Strangest language feature' discussion page: | |
* http://stackoverflow.com/questions/1995113/strangest-language-feature |
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
rdegges@cora:~/Desktop$ tar zxvf pycall-1.2.tar.gz | |
pycall-1.2/ | |
pycall-1.2/README | |
pycall-1.2/PKG-INFO | |
pycall-1.2/setup.py | |
pycall-1.2/demos/ | |
pycall-1.2/demos/schedule-call.py | |
pycall-1.2/demos/hello-world.py | |
pycall-1.2/demos/run-as-user.py | |
pycall-1.2/demos/variable-passing.py |
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
rdegges@cora:~$ sudo easy_install pycall | |
Searching for pycall | |
Best match: pycall 1.2 | |
Adding pycall 1.2 to easy-install.pth file | |
Using /usr/local/lib/python2.6/dist-packages | |
Processing dependencies for pycall | |
Finished processing dependencies for pycall |
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
rdegges@cora:~/Desktop/pycall-1.2$ python | |
Python 2.6.4 (r264:75706, Nov 2 2009, 14:38:03) | |
[GCC 4.4.1] on linux2 | |
Type "help", "copyright", "credits" or "license" for more information. | |
>>> from pycall.callfile import * | |
>>> |