Skip to content

Instantly share code, notes, and snippets.

View miclovich's full-sized avatar
😇
Working, what else?

Victor miclovich

😇
Working, what else?
View GitHub Profile
@miclovich
miclovich / gist:5748957
Created June 10, 2013 14:06
resursive.java
/*
* File: PythagoreanTheorem.java
* Name:
* Section Leader:
* -----------------------------
* This file is the starter file for the PythagoreanTheorem problem.
*/
import acm.program.*;
@miclovich
miclovich / guess-it-or-lose.py
Created April 7, 2013 21:07
Guessing games
import random
word_basket = []
def split_string(str, delimiter):
return str.split(delimiter)
def guess_word(word_basket, random_int=None):
<VirtualHost *:80>
WSGIDaemonProcess site-2 python-path=/path/to/applicaiton/ user=${APACHE_RUN_USER} group=${APACHE_RUN_USER} threads=25
WSGIProcessGroup site-2
ServerName example.com
ServerAlias www.example.com
WSGIScriptAlias / /home/user/prod/applicaiton/application/wsgi.py
@miclovich
miclovich / .gitignore
Created June 25, 2012 08:27
example .gitignore file global (put in ~)
*.pyc
.DS_Store
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
@miclovich
miclovich / osx_lion_rail_setup.md
Created February 16, 2012 08:41 — forked from jpantuso/osx_lion_rail_setup.md
Setup OS X 10.7 w/ homebrew, oh-my-zsh, rvm, rails, and MySQL
@miclovich
miclovich / gist:1354371
Created November 10, 2011 07:42
reports_today(with work on new chart with generic)
from django.conf import settings
from django.db.models import Count, Sum
from generic.utils import flatten_list
from rapidsms.contrib.locations.models import Location
from rapidsms_httprouter.models import Message
from django.db.models import Q
from script.models import Script
from rapidsms_xforms.models import XFormSubmissionValue, XForm, XFormSubmission
#reports
#from generic.reports import Column, Report
@miclovich
miclovich / gist:1354366
Created November 10, 2011 07:40
reports_original(day Assey added week function)
from django.conf import settings
from django.db.models import Count, Sum
from generic.reports import Column, Report
from generic.utils import flatten_list
from rapidsms.contrib.locations.models import Location
from rapidsms_httprouter.models import Message
from django.db.models import Q
from script.models import Script
from rapidsms_xforms.models import XFormSubmissionValue, XForm, XFormSubmission
from uganda_common.reports import XFormSubmissionColumn, XFormAttributeColumn, PollNumericResultsColumn, PollCategoryResultsColumn, LocationReport
@miclovich
miclovich / kannel.conf
Created October 12, 2011 13:51
kannel (adopted from daveycrokett's kannel conf file)
#
group = core
admin-port = 13000
smsbox-port = 13001
admin-password = maw
status-password = maw
admin-allow-ip = "127.0.0.1"
log-level = 1
box-allow-ip = "*.*.*.*"