Skip to content

Instantly share code, notes, and snippets.

View tuxdna's full-sized avatar

Saleem Ansari tuxdna

View GitHub Profile
@tuxdna
tuxdna / betareg.py
Created May 27, 2019 09:05 — forked from brentp/betareg.py
beta regression in statsmodels
# -*- coding: utf-8 -*-
u"""
Beta regression for modeling rates and proportions.
References
----------
Grün, Bettina, Ioannis Kosmidis, and Achim Zeileis. Extended beta regression
in R: Shaken, stirred, mixed, and partitioned. No. 2011-22. Working Papers in
Economics and Statistics, 2011.
@tuxdna
tuxdna / using_git-svn.md
Last active November 29, 2018 05:29 — forked from rickyah/using_git-svn.md
A simple guide to git-svn

Getting started with git-svn

git-svn is a git command that allows using git to interact with Subversion repositories.git-svn is part of git, meaning that is NOT a plugin but actually bundled with your git installation. SourceTree also happens to support this command so you can use it with your usual workflow.

Reference: http://git-scm.com/book/en/v1/Git-and-Other-Systems-Git-and-Subversion

Cloning the SVN repository

You need to create a new local copy of the repository with the command

Select the runtime to download the base image for:
[1] Go
[2] Java
[3] Python27
[4] All
Please enter your numeric choice (4): 3
Pulling base images for runtimes [python27] from Google Cloud Storage
Pulling image: google/appengine-python27
Traceback (most recent call last):
@tuxdna
tuxdna / TheMatrix.scala
Last active December 31, 2015 05:48 — forked from FaKod/gist:1331556
The Neo4j Matrix Example with Neo4j-Scala
package graph
/**
* The Matrix Example
* http://wiki.neo4j.org/content/The_Matrix
*/
import collection.JavaConversions._
import org.neo4j._
import org.neo4j.graphdb._
@tuxdna
tuxdna / photon.sh
Created October 10, 2011 21:00 — forked from tuxdna/photon.sh
Tata Photon Prepaid dongle on Fedora 14
D="201e:2009"
echo "Searching for device: $D"
lsusb | grep "$D"
retval=$?
if [ $retval != 0 ]
then
echo "Device not found in 'lsusb' listing"
exit $retval
else
wikipediaSearch() {
echo -n -e "\n============================================\n\tWelcome to WikiPedia Search"; echo ""; i=1 ; for line in $(lynx --dump "http://www.google.co.in/search?q=$1+site%3Awikipedia.org" | grep http://en.wikipedia.org/wiki | cut -c7-); do echo $i $line; lines[$i]=$line ; i=$(($i+1)); done ; echo -n -e "\n============================================\n\tPlease select the link to open - "; read answer; w3m ${lines[$answer]}
}