All notable changes to this project will be documented in this file. See standard-version for commit guidelines.
- works 6 7bbab1a
All notable changes to this project will be documented in this file. See standard-version for commit guidelines.
// go to https://nominatim.openstreetmap.org/search?q=waikato&format=json | |
// in chrome console paste this | |
const list = [] | |
const countryRegion = [ | |
'waikato, new zealand', | |
'perth, australia' | |
] | |
for(let i = 0; i < countryRegion.length; i++) { | |
const searchTerm = countryRegion[i] |
/** copy and paste this in console (f12) after you have clicked log button on a device, tested on Calamp units **/ | |
function checkLogs() { | |
var flag_type = { | |
"E":"Job on Working off", | |
"F":"Job on Working on", | |
"C":"Both off" | |
}; | |
var data = $('#headunit_positions').text() |
lkjlkjlkjlkj |
// ==UserScript== | |
// @name Jira Points | |
// @version 0.1.5 | |
// @description adds issues done this week | |
// @match https://*.atlassian.net/secure/RapidBoard.jspa* | |
// ==/UserScript== | |
// a function that loads jQuery and calls a callback function when jQuery has finished loading | |
function addJQuery(callback) { | |
var script = document.createElement("script"); |
#!/usr/bin/python | |
import texttable as tt | |
import fnmatch | |
import os | |
import operator | |
from collections import Counter | |
import mimetypes | |
def file_len(fname): |
<pre> | |
<?php | |
// ---------------------- CONFIG DETAILS ---------------------- | |
//branch in git | |
$BRANCH = 'master'; | |
// --------- You should not need to edit below here ------------ | |
$current_sha1 = `git rev-parse $BRANCH`; | |
$status_of_branch = `git ls-remote origin -h refs/heads/$BRANCH`; |
<pre> | |
<?php | |
/** | |
Modify the capitalised variables with your info. | |
Call this from your github webservice hook / CI server. | |
If you are not using new relic you need to remove that cruft. | |
(the last 3 lines) |
echo -e "Files to change:\n" \ | |
&& svn st -u | grep -v ? \ | |
&& echo -e "\nChange Log:\n" \ | |
&& svn log -r BASE:HEAD | grep -v -e '^\-\|^$\|^r[0-9].'| sort -u | awk '{print "* " $0}' |
/** | |
sum everything in format ($100) for list one | |
**/ | |
var sum = 0; | |
$('.list:eq(0) .list-card-title').each(function(d,v){ | |
matches = $(v).text().match(/([0-9]+)(?=\))/); | |
if(matches !== null) { | |
sum += parseInt(matches.pop()); | |
} |