Skip to content

Instantly share code, notes, and snippets.

View jcbwlkr's full-sized avatar

Jacob Walker jcbwlkr

View GitHub Profile
@xcsrz
xcsrz / server.go
Created January 2, 2016 07:12
A golang web server on a randomly (os) chosen port.
package main
import (
"fmt"
"github.com/skratchdot/open-golang/open"
"net"
"net/http"
)
func main() {
@jcbwlkr
jcbwlkr / README.md
Last active February 9, 2016 21:49

Git Workshop

What is Git?

  • Version Control System (VCS).
  • Much better than having
    • index.html
    • index.html_backup
    • index.html_before_bootstrap
    • index.html_working

JavaScript Workshop 2

A Few of My Favorite Things

The purpose of this workshop is to introduce adding behavior to a site using the JavaScript library jQuery. To accomplish this we will build up an interactive page that lists a few of our favorite things.

Libraries

In the real world, libraries share knowledge through books and other media. In

JavaScript Workshop 1

Overview

  • What is JavaScript?
  • How to Run Code
  • Arithmetic
  • Variables
  • Comments
  • Methods
  • Strings
@mitchellh
mitchellh / gist:6531113
Last active December 23, 2015 21:08
`go get` replacement that works around Go issue #5375 (go get doesn't work with private Bitbucket repositories)
#!/bin/bash
#
# Due to a bug in Go, you can't `go get` a private Bitbucket repository
# (issue #5375, linked below). This means you can't `go get ./...` ANY project
# that might depend on a private Bitbucket repository.
#
# This script works around it by detecting Bitbucket imports and using
# `git` directly to clone into it. This will not work if you use private
# Mercurial repositories on Bitbucket.
#
@MicahElliott
MicahElliott / colortrans.py
Created November 29, 2010 07:57
Convert values between RGB hex codes and xterm-256 color codes.
#! /usr/bin/env python
""" Convert values between RGB hex codes and xterm-256 color codes.
Nice long listing of all 256 colors and their codes. Useful for
developing console color themes, or even script output schemes.
Resources:
* http://en.wikipedia.org/wiki/8-bit_color
* http://en.wikipedia.org/wiki/ANSI_escape_code