Skip to content

Instantly share code, notes, and snippets.

View vrosnet's full-sized avatar

Antony Ingram vrosnet

View GitHub Profile
@vrosnet
vrosnet / Notepad++AdvancedSearch.txt
Created September 14, 2016 17:03 — forked from ramons03/Notepad++AdvancedSearch.txt
Notepad++ Advanced search and replace. Null, Enter char, Tab, Regular Expressions, Etc.
Open the find/replace dialog.
At the bottom will be some Search mode options. Select "Extended (\n \r \t \0 \x...)"
In either the Find what or the Replace with field entries, you can use the following escapes:
\n new line (LF)
\r carriage return (CR)
\t tab character
\0 null character
\xddd special character with code ddd
>>> Installing (1 of 1) app-shells/zsh-5.0.2
*
* If you want to enable Portage completions and Gentoo prompt,
* emerge app-shells/zsh-completion and add
* autoload -U compinit promptinit
* compinit
* promptinit; prompt gentoo
* to your ~/.zshrc
*
* Also, if you want to enable cache for the completions, add
@vrosnet
vrosnet / perl-5.24.0-r1-build.log
Created September 10, 2016 16:32 — forked from kuzetsa/perl-5.24.0-r1-build.log
perl-5.24.0-r1 trying to chown things
* Package: dev-lang/perl-5.24.0-r1
* Repository: gentoo
* Maintainer: perl@gentoo.org
* USE: abi_x86_32 berkdb elibc_glibc gdbm kernel_linux prefix userland_GNU x86
* FEATURES: preserve-libs userpriv
>>> Unpacking source...
>>> Unpacking perl-5.24.0.tar.bz2 to /gentoo/var/tmp/portage/dev-lang/perl-5.24.0-r1/work
>>> Unpacking perl-5.24.0-patches-2.tar.xz to /gentoo/var/tmp/portage/dev-lang/perl-5.24.0-r1/work
>>> Source unpacked in /gentoo/var/tmp/portage/dev-lang/perl-5.24.0-r1/work
>>> Preparing source in /gentoo/var/tmp/portage/dev-lang/perl-5.24.0-r1/work/perl-5.24.0 ...
$ pypi-show-urls mercurial fabric
Download candidates for mercurial
=================================
Candidates from https://pypi.python.org/simple/mercurial/
---------------------------------------------------------
http://mercurial.selenic.com/release/mercurial-1.7.2.tar.gz
http://mercurial.selenic.com/release/mercurial-2.1.1.tar.gz
http://mercurial.selenic.com/release/mercurial-1.8.2.tar.gz
http://mercurial.selenic.com/release/mercurial-1.5.3.tar.gz
@vrosnet
vrosnet / weatherTempC.js
Created August 31, 2016 09:23 — forked from jimmy89Li/weatherTempC.js
Get the Celsius degrees for a specific city
$.getJSON('http://api.wunderground.com/api/API_KEY/conditions/q/CITY_NAME.json', function(Weather) {
var weatherInfo = Weather.current_observation;
console.log(weatherInfo.temp_c);
document.getElementById('weatherTempC').innerHTML = weatherInfo.temp_c;
});
import json
real = json.load(open('realfagstermer.json'))
lst = []
for x in real['resources']:
if 'ddc' in x:
lst.append([x['id'], x['prefLabel']['nb']['value'], x['ddc'][0]])
for x in sorted(lst, key=lambda u: u[2]):
print('{}\t{}\t{}'.format(*x))
08-31 11:00:57.270 12327-12327/com.passwordboss.android.dev I/JsController: pb-api-impl-android
08-31 11:00:57.270 12327-12721/com.passwordboss.android.dev I/JsController: receive message from js: {"message":"inputFocusIn","inputData":{"fieldType":"username","extractor":"placeholder","extractedText":"username","keyword":"user","inputName":"username","inputValue":"","inputPath":"*:eq(0)>*:eq(0)>*:eq(0)>*:eq(0)>*:eq(0)>*:eq(0)>*:eq(1)>*:eq(0)>*:eq(5)>*:eq(0)","formPath":"*:eq(0)>*:eq(0)>*:eq(0)>*:eq(0)>*:eq(0)>*:eq(0)>*:eq(1)>*:eq(0)","inputRect":{"x":40,"y":87,"width":280,"height":33}}}
08-31 11:00:57.271 12327-12721/com.passwordboss.android.dev I/JsController: callJsFunction RealTypeDetector.extractFromPageRecord args: {"formRecords":[{"path":"*:eq(0)>*:eq(0)>*:eq(0)>*:eq(0)>*:eq(0)>*:eq(0)>*:eq(1)>*:eq(0)","inputRecords":[{"name":"email","path":"*:eq(0)>*:eq(0)>*:eq(0)>*:eq(0)>*:eq(0)>*:eq(0)>*:eq(1)>*:eq(0)>*:eq(3)>*:eq(0)","fieldType":"email","value":"","visible":true},{"name":"fullName","path":"*:eq(0)>*:
@vrosnet
vrosnet / starter.lua
Created August 31, 2016 09:20 — forked from casaval/starter.lua
PICO-8 Starter LUA code (save this as starter.p8)
-- pico-8 starter code
-- by @hypirlink
-- _init() is called when
-- you 'run' the program
function _init()
-- states: menu, game, end
state = "menu"
end
@vrosnet
vrosnet / Dockerfile
Created August 31, 2016 09:20 — forked from P7h/Dockerfile
Docker Image for GHC 8.0.1
FROM ubuntu
MAINTAINER Prashanth Babu <Prashanth.Babu@gmail.com>
RUN apt-get update && \
apt-get install -yqq software-properties-common screen vim && \
add-apt-repository -y ppa:hvr/ghc && \
apt-get update && \
apt-get install -yqq cabal-install-1.24 ghc-8.0.1 && \
apt-get clean && \

Fractal Tree