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
__author__ = 'Marcos Lopez' | |
# http://github.com/mikelopez | |
from django.test.simple import DjangoTestSuiteRunner | |
import settings | |
class BaseAppsTestNoDb(DjangoTestSuiteRunner): | |
def setup_databases(self, **kwargs): | |
""" override the db stuff from DjangoTestSuiteRunner """ | |
pass |
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 aweber_api import AWeberAPI | |
class AWeberWrapper(AWeberAPI): | |
""" interface between aweber_api and our database objects """ | |
_w_access_key = None | |
_w_access_secret = None | |
_w_consumer_key = None | |
_w_consumer_secret = None | |
_w_obj = None | |
_w_account = None |
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/bash | |
if [ "$(id -u)" != "0" ]; then | |
echo "This script must be run as root" 1>&2 | |
exit 1 | |
fi | |
cgpt add -i 6 -P 0 -S 1 /dev/sda && reboot |
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/bash | |
if [ "$(id -u)" != "0" ]; then | |
echo "This script must be run as root" 1>&2 | |
exit 1 | |
fi | |
cgpt add -i 6 -P 5 -S 1 /dev/sda && reboot |
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
// use dev-port 3000 | |
var express = require('express'); | |
var http = require('http'); | |
var Browser = require('zombie'); | |
var assert = require('assert'); | |
var settings = require('../globalsettings'); | |
var app = require('../app'); | |
describe('Starting server and testing client urls...', function() { |
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
states = { | |
'AK': 'Alaska', | |
'AL': 'Alabama', | |
'AR': 'Arkansas', | |
'AS': 'American Samoa', | |
'AZ': 'Arizona', | |
'CA': 'California', | |
'CO': 'Colorado', | |
'CT': 'Connecticut', | |
'DC': 'District of Columbia', |
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
[ CONTROLS ] | |
Toggle_LSTG = 97 // J by default | |
Toggle_SECL = 98 // K by default | |
Toggle_WRNL = 99 // L by default | |
Toggle_SRN = 100 // H by default | |
Toggle_InfoPanel = 101 // M by default ** | |
Toggle_Hazlights = 0 // Nothing/disabled by default ** | |
Toggle_Takedowns = 221 // ] by default | |
Toggle_Cruise = 219 // [ by default | |
Chng_Pat_PRML = 85 // U by default * |
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
<VirtualHost 192.168.1.10:80> | |
ServerAdmin dev@scidentify.info | |
ServerName scidentify.info | |
ServerAlias www.scidentify.info | |
ProxyRequests off | |
<Proxy *> | |
Order deny,allow | |
Allow from all |
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
LOG :: 2013-07-18 15:15:37,533 ERROR Internal Server Error: / | |
--- | |
Traceback (most recent call last): | |
File "/Library/Python/2.6/site-packages/Django-1.4.1-py2.6.egg/django/core/handlers/base.py", line 111, in get_response | |
response = callback(request, *callback_args, **callback_kwargs) | |
File "/Library/Python/2.6/site-packages/Django-1.4.1-py2.6.egg/django/contrib/auth/decorators.py", line 19, in _wrapped_view | |
if test_func(request.user): | |
File "/Library/Python/2.6/site-packages/Django-1.4.1-py2.6.egg/django/contrib/auth/decorators.py", line 42, in <lambda> | |
lambda u: u.is_authenticated(), |
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
public class Dialer | |
{ | |
ManagerConnection _managerConnection; | |
Timer _timer; | |
public delegate void CallFinalizedCallback(Dialer sender); | |
string _uniqueID = string.Empty; | |
bool _wasOriginated = false; | |
object _locker = new object(); | |
List<HangupEvent> _hangupList = new List<HangupEvent>(); |