This file contains hidden or 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++) { |
This file contains hidden or 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) |
This file contains hidden or 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'}) |
This file contains hidden or 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'],-> |
This file contains hidden or 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 |
This file contains hidden or 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 |
This file contains hidden or 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 |
This file contains hidden or 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 | |
} |
This file contains hidden or 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 |
This file contains hidden or 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(){function c(){var e=document.createElement("link");e.setAttribute("type","text/css");e.setAttribute("rel","stylesheet");e.setAttribute("href",f);e.setAttribute("class",l);document.body.appendChild(e)}function h(){var e=document.getElementsByClassName(l);for(var t=0;t<e.length;t++){document.body.removeChild(e[t])}}function p(){var e=document.createElement("div");e.setAttribute("class",a);document.body.appendChild(e);setTimeout(function(){document.body.removeChild(e)},100)}function d(e){return{height:e.offsetHeight,width:e.offsetWidth}}function v(i){var s=d(i);return s.height>e&&s.height<n&&s.width>t&&s.width<r}function m(e){var t=e;var n=0;while(!!t){n+=t.offsetTop;t=t.offsetParent}return n}function g(){var e=document.documentElement;if(!!window.innerWidth){return window.innerHeight}else if(e&&!isNaN(e.clientHeight)){return e.clientHeight}return 0}function y(){if(window.pageYOffset){return window.pageYOffset}return Math.max(document.documentElement.scrollTop,document.body.scrollTop)}function E(e){va |