Skip to content

Instantly share code, notes, and snippets.

View hibooboo2's full-sized avatar

James Jeffrey hibooboo2

View GitHub Profile
@hibooboo2
hibooboo2 / python_resources.md
Created February 3, 2014 23:04 — forked from jookyboi/python_resources.md
Python-related modules and guides.

Packages

  • lxml - Pythonic binding for the C libraries libxml2 and libxslt.
  • boto - Python interface to Amazon Web Services
  • Django - Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design.
  • Fabric - Library and command-line tool for streamlining the use of SSH for application deployment or systems administration task.
  • PyMongo - Tools for working with MongoDB, and is the recommended way to work with MongoDB from Python.
  • Celery - Task queue to distribute work across threads or machines.
  • pytz - pytz brings the Olson tz database into Python. This library allows accurate and cross platform timezone calculations using Python 2.4 or higher.

Guides

@hibooboo2
hibooboo2 / javascript_resources.md
Created February 3, 2014 23:04 — forked from jookyboi/javascript_resources.md
Here are a set of libraries, plugins and guides which may be useful to your Javascript coding.

Libraries

  • jQuery - The de-facto library for the modern age. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers.
  • Backbone - Backbone.js gives structure to web applications by providing models with key-value binding and custom events, collections with a rich API of enumerable functions, views with declarative event handling, and connects it all to your existing API over a RESTful JSON interface.
  • AngularJS - Conventions based MVC framework for HTML5 apps.
  • Underscore - Underscore is a utility-belt library for JavaScript that provides a lot of the functional programming support that you would expect in Prototype.js (or Ruby), but without extending any of the built-in JavaScript objects.
  • lawnchair - Key/value store adapter for indexdb, localStorage
@hibooboo2
hibooboo2 / css_resources.md
Created February 3, 2014 23:04 — forked from jookyboi/css_resources.md
CSS libraries and guides to bring some order to the chaos.

Libraries

  • 960 Grid System - An effort to streamline web development workflow by providing commonly used dimensions, based on a width of 960 pixels. There are two variants: 12 and 16 columns, which can be used separately or in tandem.
  • Compass - Open source CSS Authoring Framework.
  • Bootstrap - Sleek, intuitive, and powerful mobile first front-end framework for faster and easier web development.
  • Font Awesome - The iconic font designed for Bootstrap.
  • Zurb Foundation - Framework for writing responsive web sites.
  • SASS - CSS extension language which allows variables, mixins and rules nesting.
  • Skeleton - Boilerplate for responsive, mobile-friendly development.

Guides

File logFile= new File(this.logFileName);
if (!logFile.exists())
{
try
{
logFile.createNewFile();
}
catch (IOException e)
{
System.out.println("IOExeception from writing to log. Can't access log file or make one.");
@hibooboo2
hibooboo2 / folder.java
Created February 4, 2014 00:58
Make a folder.
void makeFolder(String folderLocation)
{
File f= new File(folderLocation);
try
{
if (f.mkdir())
{
System.out.println("Directory Created");
}
@hibooboo2
hibooboo2 / .gitconfig
Created March 3, 2014 21:58
From http://nvie.com/posts/a-successful-git-branching-model/ Start a new Branch. AND OTHER AUTO MAGIC THINGS AS ALIAIS
[core]
editor = gedit -w
[color]
ui = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
@hibooboo2
hibooboo2 / bashArguments
Created February 6, 2015 19:47
How to get bash arguments and how to get path or name
# ------------- SCRIPT ------------- #
#!/bin/bash
echo
echo "# arguments called with ----> ${@} "
echo "# \$1 ----------------------> $1 "
echo "# \$2 ----------------------> $2 "
echo "# path to me ---------------> ${0} "
echo "# parent path --------------> ${0%/*} "
set -x
: ${PORT:=443}
: ${DOMAIN:=example.com}
openssl s_client -showcerts -connect ${DOMAIN}:${PORT} </dev/null 2>/dev/null|openssl x509 -outform PEM >ca.crt
sudo cp ca.crt /etc/docker/certs.d/${DOMAIN}/ca.crt
cat ca.crt | sudo tee -a /etc/ssl/certs/ca-certificates.crt
sudo service docker restart
@hibooboo2
hibooboo2 / notImplemented.go
Created June 3, 2016 23:05
Gist to make and return an error that you can use to represent a go function that is not yet implemented based on where the function is called from.
package dev
import (
"fmt"
"log"
"runtime"
"strings"
)
func notImplemented() error {

Keybase proof

I hereby claim:

  • I am hibooboo2 on github.
  • I am wizardofmath (https://keybase.io/wizardofmath) on keybase.
  • I have a public key whose fingerprint is F402 0FF9 F8F3 E7D7 3D5F B9D3 A67F 3BFB 02C5 7B31

To claim this, I am signing this object: