View Github-network-graph.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function hide(selector) { $(selector).setAttribute('style','display:none')} | |
function remove(selector) { $(selector).remove()} | |
function remove_class(selector) { $(selector).setAttribute('class','')} | |
function move_left(count) | |
{ | |
var eventObj = document.createEvent("Events"); | |
eventObj.initEvent("keydown", true, true); | |
eventObj.which = 37; // left key | |
for (i=0; i < count ; i++) { |
View Github-network-graph.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function hide(selector) { $(selector).setAttribute('style','display:none')} | |
function remove(selector) { $(selector).remove()} | |
function remove_class(selector) { $(selector).setAttribute('class','')} | |
function move_left(count) | |
{ | |
var eventObj = document.createEvent("Events"); | |
eventObj.initEvent("keydown", true, true); | |
eventObj.which = 37; // left key | |
for (i=0; i < count ; i++) { |
View bokeh.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#https://bokeh.pydata.org/ | |
#http://bokeh.pydata.org/en/latest/docs/installation.html | |
#https://nbviewer.jupyter.org/github/bokeh/bokeh-notebooks/blob/master/quickstart/quickstart.ipynb | |
!pip install bokeh | |
from bokeh.plotting import figure | |
from bokeh.io import output_notebook, show | |
output_notebook() | |
from numpy import cos, linspace | |
x = linspace(-6, 60, 1200) |
View print-okrs.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('.jira-issues th').css({ 'min-width' : '100px' } ) | |
$('#title-text').height(100) | |
$('.jira-issues th:nth-child(1)').css({'min-width': '700px'}) |
View gulpfile.coffee
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
browserSync = require('browser-sync').create(); | |
gulp = require('gulp'); | |
shell = require('gulp-shell'); | |
gulp.task 'build', shell.task(['jekyll build --incremental']) | |
gulp.task 'reload-page', ['build'], -> browserSync.reload() | |
gulp.task 'default' , ['build'],-> |
View gist:1a5fbd548c15a7a6419366c8553f4837
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
download docker | |
install docker (click cancel on the VirtualBox question) | |
on cmd.exe/sh | |
docker-machine create --driver=virtualbox default | |
docker-machine ssh default | |
docker run hello-world | |
docker run -it ubuntu bash | |
docker run -it -p 3000:3000 gogs/gogs |
View set-cert-pwd.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo | |
echo "Note: run this using . ./set-cert-pwd.sh to set the variable in the host bash (it is expected that the bbc-cert.p12 is in the current path" | |
echo "What is the .p12 password: " | |
read -s pwd | |
export P12_PWD=$pwd | |
echo "The password has been set to the P12_PWD variable" | |
echo |
View setup-maven.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd ~/_tools | |
wget http://mirror.catn.com/pub/apache/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gz | |
tar xzvf apache-maven-3.3.9-bin.tar.gz | |
echo "export PATH=~/_tools/apache-maven-3.3.9/bin:$PATH" >> ~/.bashrc |
View checking-if-app-exists.v1.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function does_application_exist { | |
local app_name=$1 | |
local result=$(veracode_get_app_Id "$app_name") | |
if [[ "$result" != "" ]]; then | |
echo "it exists" | |
else | |
echo "it doesn't exist" | |
fi | |
} |
View bash-command.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# run this on folder to monitor and location of on-change.sh file | |
fswatch -o . | xargs -n1 -I{} ./on-change.sh |
NewerOlder