Skip to content

Instantly share code, notes, and snippets.

View muthmano-dev's full-sized avatar
:octocat:

muthmano muthmano-dev

:octocat:
  • Gainesville, Florida, United States
View GitHub Profile

I just had to set up Jenkins to use GitHub. My notes (to myself, mostly):

Detailed Instructions

For setting up Jenkins to build GitHub projects. This assumes some ability to manage Jenkins, use the command line, set up a utility LDAP account, etc. Please share or improve this Gist as needed.

Install Jenkins Plugins

#### linear regression
import numpy as np
import pandas as pd
import os
os.chdir("/Users/shuozhang/Desktop/data")
nycmodel=pd.read_csv('nycmodeldata.csv', sep='\t', index_col=False, dtype={'zipcode':'S10'})
import statsmodels.api as sm
add_dummies = pd.get_dummies(nycmodel['zipcode'])
add_dummies=add_dummies.applymap(np.int)
@muthmano-dev
muthmano-dev / cvdiff.py
Created May 12, 2017 13:00 — forked from vgoklani/cvdiff.py
Sklearn GridSearchCV vs. CrossValidation
from sklearn.linear_model import SGDClassifier
from sklearn import cross_validation
from sklearn import metrics
from sklearn.grid_search import GridSearchCV
from sklearn.datasets import load_iris
data = load_iris()
sample_vector = data.data
targets = data.target
@muthmano-dev
muthmano-dev / blinkledv1
Created March 19, 2015 04:10
an example C code using PRUSS-C libraries
#include <gpio_v2.h>
#include <soc_AM335x.h>
//#include "blink.h"
#define PRU0_ARM_INTERRUPT 19
#define AM33XX
#define GPIO1 (*(volatile unsigned long *)(0x4804c000)) // The address of the GPIO1
#define GPIO_INSTANCE_ADDRESS (SOC_GPIO_1_REGS)
#define SYSCFG (*(&C4+0x01))
int C4 __attribute__((cregister("MEM",near),peripheral)); //only compatible with v1.1.0B1 +
//add following lines to MEMORY{} in lnk.cmd