Skip to content

Instantly share code, notes, and snippets.

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

@sergiobuj
sergiobuj / Dockerfile
Created February 18, 2016 08:12
cl-jupyter on docker with sbcl 1.3.2
FROM buildpack-deps:jessie
RUN apt-get update -qq && apt-get install -y bzip2 wget build-essential python3-dev python3-pip unzip libzmq3-dev
RUN wget -nv http://downloads.sourceforge.net/project/sbcl/sbcl/1.3.2/sbcl-1.3.2-x86-64-linux-binary.tar.bz2
RUN wget -nv https://beta.quicklisp.org/quicklisp.lisp
RUN wget -nv https://github.com/fredokun/cl-jupyter/archive/master.zip
RUN bzip2 -cd sbcl-1.3.2-x86-64-linux-binary.tar.bz2 | tar xvf -
RUN unzip master.zip
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#include <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
#include <set>
#include <map>
#include <queue>
using namespace std;
@sergiobuj
sergiobuj / solution_for_gs.py
Last active August 29, 2015 14:04
New graph from the SCC
## Tarjan implementation from Wikipedia's pseudocode
def tarjan(graph):
#input: graph G = (V, E)
#output: set of strongly connected components (sets of vertices)
n = len(graph)
sccs = []
index = [0]
indexes = [-1] * n
lows = [float('Inf')] * n
S = []
@sergiobuj
sergiobuj / clusterpysal.ipynb
Last active August 29, 2015 14:02
What if we could use [the amazing] Clusterpy on top of Pysal?
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@sergiobuj
sergiobuj / README.md
Last active August 29, 2015 14:01
Working vagrant base box with python dev tools included.

Create custom Vagrant base boxes

About ipyvmbase:

  • Debian 7.5
  • build-essentials and git
  • ipython notebook
  • numpy
  • scipy
  • matplotlib
  • pandas
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@sergiobuj
sergiobuj / gist:8962775
Created February 12, 2014 19:29
Clusterpy loves Matplotlib
{
"metadata": {
"name": "clusterpy loves matplotlib"
},
"nbformat": 2,
"worksheets": [
{
"cells": [
{
"cell_type": "code",
@sergiobuj
sergiobuj / tour71.golang.go
Last active January 13, 2016 22:27
Exercise: Web Crawler In this exercise you'll use Go's concurrency features to parallelize a web crawler. Modify the Crawl function to fetch URLs in parallel without fetching the same URL twice. http://tour.golang.org/#71
package main
import (
"fmt"
"time"
)
type Fetcher interface {
// Fetch returns the body of URL and
// a slice of URLs found on that page.