Skip to content

Instantly share code, notes, and snippets.

View edoloughlin's full-sized avatar

Ed O'Loughlin edoloughlin

  • Dublin
  • 03:25 (UTC -12:00)
View GitHub Profile
rejecting 2018-03-01T09:54:03 #DUBLIN Breakdown on M50 southbound. More here: https://www.TheAA.ie/Newsroom 
rejecting 2018-03-01T09:38:21 @aaroadwatch do you know whether m50, M4 & M6 have been / will be salted today?
rejecting 2018-03-01T08:43:37 @aaroadwatch any news on m50 northbound and n7? Thanks
rejecting 2018-03-01T06:42:20 @aaroadwatch is m50 passable do we know? #m50dublin
-
➜ ~ elm repl
Elm REPL 0.4.2 (Elm Platform 0.15.1)
See usage examples at <https://github.com/elm-lang/elm-repl>
Type :help for help, :exit to exit
> fortyTwo : Int
## ERRORS in repl-temp-000.elm #################################################
-- SYNTAX PROBLEM -------------------------------------------- repl-temp-000.elm
I ran into something unexpected when parsing your code!
@edoloughlin
edoloughlin / ffmpeg-rgba.txt
Last active August 29, 2015 14:15
ffmpeg rgba in
ffmpeg -pix_fmt rgba -s 480x360 -r 25 -vcodec rawvideo -f rawvideo -i in-0.rgba \
-pix_fmt rgba -s 480x360 -r 25 -vcodec rawvideo -f rawvideo -i in-1.rgba \
-pix_fmt rgba -s 480x360 -r 25 -vcodec rawvideo -f rawv^Ceo -i in-2.rgba \
-f s16le -ar 44.1k -ac 2 -acodec pcm_s16le -i 28.wav \
-r 25 -pix_fmt yuv420p -strict -2 -c:v libx264 -preset ultrafast -crf -1 \
-me_method zero -b:v 0.4M -s 480x360 out.mp4
Error: Invalid path
at pathToArray (/my-proj-path/node_modules/webpack-dev-server/node_modules/webpack-dev-middleware/node_modules/memory-fs/lib/MemoryFileSystem.js:24:38)
at MemoryFileSystem.mkdirpSync (/my-proj-path/node_modules/webpack-dev-server/node_modules/webpack-dev-middleware/node_modules/memory-fs/lib/MemoryFileSystem.js:108:13)
at MemoryFileSystem.(anonymous function) [as mkdirp] (/my-proj-path/node_modules/webpack-dev-server/node_modules/webpack-dev-middleware/node_modules/memory-fs/lib/MemoryFileSystem.js:188:34)
at Tapable.<anonymous> (/my-proj-path/node_modules/webpack/lib/Compiler.js:225:25)
at Tapable.applyPluginsAsync (/my-proj-path/node_modules/webpack/node_modules/tapable/lib/Tapable.js:60:69)
at Tapable.Compiler.emitAssets (/my-proj-path/node_modules/webpack/lib/Compiler.js:222:7)
at Watching.<anonymous> (/my-proj-path/node_modules/webpack/lib/Compiler.js:53:18)
at /my-proj-path/node_modules/webpack/lib/Compiler.js:397:12
at Tapable.next (/my-proj-path/
'use strict';
var LIVERELOAD_PORT = 35729;
var lrSnippet = require('connect-livereload')({
port: LIVERELOAD_PORT
});
var mountFolder = function (connect, dir) {
return connect.static(require('path').resolve(dir));
};
@edoloughlin
edoloughlin / .xsession-errors
Created May 26, 2014 18:35
.xsession-errors - KDE sound broken
Script for none started at run_im.
Script for auto started at run_im.
Script for default started at run_im.
init: Disconnected from notified D-Bus bus
Xsession: X session started for root at Mon May 26 16:50:03 IST 2014
localuser:root being added to access control list
Script for none started at run_im.
Script for auto started at run_im.
Script for default started at run_im.
Script for none started at run_im.
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
@edoloughlin
edoloughlin / project-stuff.clj
Created July 2, 2012 15:27
lein ring server doesn't call
;;
;; My project.clj file:
;;
(defproject my-server/my-server "0.0.1"
:description "My REST API"
:dependencies [[org.clojure/clojure "1.4.0"]
[org.clojure/java.jdbc "0.2.1"]
[org.clojure/data.xml "0.0.3"]
[slingshot "0.10.2"]
[ring "1.1.1"]
@edoloughlin
edoloughlin / dispatcher-test.clj
Created February 21, 2011 12:40
(prxml-data []) --> What gives?
(defn dispatcher
[node]
(condp = (class node)
clojure.lang.PersistentVector ::vector
clojure.lang.PersistentArrayMap ::map
clojure.lang.PersistentList ::sequence
java.lang.Integer ::atomic
java.lang.String ::atomic))
(defmulti prxml-data
@edoloughlin
edoloughlin / flatten-wierdness.clj
Created January 31, 2011 12:00
Why is the {:t 1} map elevated to the top level while other nested elements aren't?
user=> (flatten [
:a 1
:b [
{:a [{:x 3} {:v 4}]}
{:t 1}]])
(:a 1 :b {:a [{:x 3} {:v 4}]} {:t 1})