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
package com.fryit.snapexpense; | |
import java.lang.reflect.InvocationTargetException; | |
import java.lang.reflect.Method; | |
import android.app.Notification; | |
import android.app.NotificationManager; | |
import android.app.Service; | |
import android.util.Log; |
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/env python | |
import ConfigParser | |
import random | |
import sys | |
import time | |
import numpy | |
import pygame, pygame.locals |
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/env python | |
import ConfigParser | |
import random | |
import sys | |
import time | |
import numpy | |
import pygame, pygame.locals |
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
Index: sources/rtmpserver/src/rtmpserver.cpp | |
=================================================================== | |
--- sources/rtmpserver/src/rtmpserver.cpp (revision 1315) | |
+++ sources/rtmpserver/src/rtmpserver.cpp (working copy) | |
@@ -27,6 +27,8 @@ | |
* POSSIBILITY OF SUCH DAMAGE. | |
*/ | |
+#include <stdlib.h> | |
+#include <execinfo.h> |
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 django import forms | |
class YesNoNullBooleanSelect(forms.Select): | |
""" | |
A Select Widget intended to be used with YesNoBooleanField. | |
""" | |
def value_from_datadict(self, data, files, name): | |
value = data.get(name, None) | |
return {u'2': True, |
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 | |
# Find all the TODO in the code which need to be fixed | |
# Android | |
if [ -f AndroidManifest.xml ]; then | |
echo '\nJava' | |
git grep -In "\(TODO\)\|\(XXX\)" -- '*.java' | |
echo "Resources" | |
git grep -In "\(TODO\)\|\(XXX\)" -- '*.xml' |
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 urllib2 | |
import json | |
import urllib | |
API_URL = "http://search.twitter.com/search.json" | |
def find_a_tweet_without_twitter_stuff(tweets): | |
for tweet in tweets: | |
if not ("#" in tweet or "@" in tweet or "http://" in tweet): | |
yield tweet |
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 os | |
import dalton | |
from django.test import TestCase | |
from django.conf import settings | |
class DaltonTestCase(TestCase): | |
ROOT_DIR = os.path.join(os.path.abspath(os.path.dirname(__file__)), | |
"replay") |
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 django.core.management import setup_environ | |
from asyncdb import settings | |
setup_environ(settings) | |
from core.models import Help | |
from eventlet import wsgi | |
import eventlet | |
import websocket |
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
class DatePickerMixIn(object): | |
def prepare_datefields(self): | |
for field in self.fields: | |
if isinstance(self.fields[field], forms.fields.DateField): | |
self.fields[field].widget.attrs.update({'class':'datepicker'}) |
OlderNewer