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 logging | |
import os | |
import struct | |
import sys | |
from erlport import Port, Protocol, String | |
from django.core.management.base import BaseCommand | |
from models.ExtendedUser import ExtendedUser as User | |
from Logic.tasks import sendToUser, sendToUserDev | |
from django.contrib.auth.models import check_password |
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
library(maptools) | |
library(ggplot2) | |
gpclibPermit() | |
theme_set(theme_bw()) | |
setwd("C:\\R") | |
# Data: http://thematicmapping.org/downloads/world_borders.php | |
world.shp <- readShapeSpatial("TM_WORLD_BORDERS-0.3.shp") | |
# check for region-id - Use "FIPS" |
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
%%%---------------------------------------------------------------------- | |
%%% File : ejabberd_auth_odbc.erl | |
%%% Author : Alexey Shchepin <alexey@process-one.net> | |
%%% Purpose : Authentification via ODBC | |
%%% Created : 12 Dec 2004 by Alexey Shchepin <alexey@process-one.net> | |
%%% | |
%%% | |
%%% ejabberd, Copyright (C) 2002-2010 ProcessOne | |
%%% | |
%%% This program is free software; you can redistribute it and/or |
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 FriendshipHandlerCreate(BaseHandler): | |
allowed_methods = ('POST', 'GET', ) | |
resp = rc.BAD_REQUEST | |
@classmethod | |
def createFriendShip(self, user_id, request): | |
friendship.set_friendship(request.user.id, user_id) | |
def entryMethod(self, request): | |
if hasattr(request, "content_type"): |
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 logging | |
import os | |
import struct | |
import sys | |
from erlport import Port, Protocol, String | |
from django.core.management.base import BaseCommand | |
from models.ExtendedUser import ExtendedUser as User | |
from Notifications import Push | |
from django.contrib.auth.models import check_password |
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
-module(django_offline). | |
-author("Henrik P. Hessel"). | |
-behaviour(gen_mod). | |
-export([start/2, stop/1, django_message/3, send_to_django/3]). | |
-include("ejabberd.hrl"). | |
-include("jlib.hrl"). |
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 | |
# Detect Movie File Rotation Meta Data - return number in degrees | |
# Copyright 2010 Henrik P. Hessel | |
# requires MediaInfo Commandline Tools http://mediainfo.sourceforge.net/en/Download | |
# i.e. Video Rotation for video recordings on Apples iPhone | |
from subprocess import Popen, PIPE | |
from xml.etree import ElementTree |
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/perl | |
# | |
# This script parses a crashdump file and attempts to resolve addresses into function names. | |
# | |
# It finds symbol-rich binaries by: | |
# a) searching in Spotlight to find .dSYM files by UUID, then finding the executable from there. | |
# That finds the symbols for binaries that a developer has built with "DWARF with dSYM File". | |
# b) searching in various SDK directories. | |
# | |
# Copyright (c) 2008 Apple Inc. All Rights Reserved. |