Skip to content

Instantly share code, notes, and snippets.

View Joevdwalt's full-sized avatar

Johan van der Walt Joevdwalt

View GitHub Profile
@Joevdwalt
Joevdwalt / gist:b8c81dddc9fc5ac180428cf5ff0caa75
Created October 15, 2017 05:49
Change Java Default Java version
See what the default is currently
/usr/libexec/java_home -V
Change the default example
export JAVA_HOME=`/usr/libexec/java_home -v 1.6.0_65-b14-462`
Can also use major version
export JAVA_HOME=`/usr/libexec/java_home -v 1.6`
import os
import sys
import site
# Add the site-packages of the chosen virtualenv to work with
site.addsitedir('~/.virtualenvs/myprojectenv/local/lib/python2.7/site-packages')
# Add the app's directory to the PYTHONPATH
sys.path.append('/home/django_projects/MyProject')
sys.path.append('/home/django_projects/MyProject/myproject')
@Joevdwalt
Joevdwalt / gist:b2309d36aebe60884c3a
Created October 18, 2015 15:39
Angular Example: Select
<select name="titleId" ng-options="item as item.name for item in apptitle track by item.titleId" ng-model="contact" ></select>
public string FormatString(string testing)
{
this.Console.WriteLine("testing");
}