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
/** | |
* Oh yeah | |
*/ | |
function rotate(id) { | |
var element = document.getElementById(id); | |
function applyRotate(angle) { | |
var strAngle = "rotate(" + angle + "rad)"; | |
element.style.WebkitTransform = strAngle; | |
element.style.MozTransform = strAngle; | |
} |
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
/* | |
* Copyright (C) 2008 The Android Open Source Project | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
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") |
OlderNewer