Skip to content

Instantly share code, notes, and snippets.

View gyaresu's full-sized avatar

Gareth gyaresu

View GitHub Profile
gyaresu@shazbot:~/programming/projects/gnuradio/build|master⚡
⇒ ctest -R qa_volk_test_all -VV
UpdateCTestConfiguration from :/Users/gyaresu/programming/projects/gnuradio/build/DartConfiguration.tcl
UpdateCTestConfiguration from :/Users/gyaresu/programming/projects/gnuradio/build/DartConfiguration.tcl
Test project /Users/gyaresu/programming/projects/gnuradio/build
Constructing a list of tests
Done constructing a list of tests
Checking test dependency graph...
Checking test dependency graph end
test 1

Keybase proof

I hereby claim:

  • I am gyaresu on github.
  • I am gyaresu (https://keybase.io/gyaresu) on keybase.
  • I have a public key whose fingerprint is 52FA 187A 4E78 36B6 2207 B672 75F7 0A5D 623A 7EE6

To claim this, I am signing this object:

/*
* Sorting Dictionaries - https://codewars.com
*
* Python dictionaries are inherently unsorted. So what do you do if you need to sort the contents of a dictionary.
*
* In this kata you will create a function that returns a sorted list of (key, value) tuples (Javascript: arrays of 2 items).
*
* The list must be sorted by the value and be sorted largest to smallest.
*
* sortDict({3:1,2:2,1:3}) == [[1,3],[2,2],[3,1]]
<!DOCTYPE html>
<head>
<link href='https://fonts.googleapis.com/css?family=Poller+One' rel='stylesheet' type='text/css'>
<script src="/assets/jquery.js"></script>
<style>
.robot {
position: relative;
left: 200px;
" text, tab and indent set expandtab
"set softtabstop=4 " makes the spaces feel like real tabs
set smarttab
set shiftwidth=2
set tabstop=2
set lbr
set tw=500
set ai "Auto indent
set si "Smart indent
set wrap "Wrap lines
{
"plugins": [
"react"
],
"ecmaFeatures": {
"jsx": true
},
// I want to use babel-eslint for parsing!
"parser": "babel-eslint",
"env": {
@gyaresu
gyaresu / gist:1848acc320e4c441d995
Last active August 29, 2015 14:21
Nodeschool Vancouver 2015-07-25

Dear NodeSchoolers,

Hi!

I'm { Gareth: https://twitter.com/gyaresu }

I'll be one of the mentors helping out on International NodeBots day and I must say, I'm REALLY EXCITED!

Teaching is the best way to learn, and I love hanging out with people who are brave enough to learn new things. So thanks!

@gyaresu
gyaresu / solution.js
Last active August 29, 2015 14:22
Why won't yield return from within a `.map` callback? - stackoverflow
// https://stackoverflow.com/questions/30498103/why-wont-yield-return-from-within-a-map-callback/30498924#30498924
// WARNING: UNTESTED!
function *mapGen (arr,callback) {
for (var i=0; i<arr.length; i++) {
yield callback(arr[i])
}
}
Array.prototype.mapGen = mapGen;
@gyaresu
gyaresu / look-sync-do-async.js
Last active August 29, 2015 14:22
LOOK SYNC, DO ASYNC - learn-generators
// My code comments for just the example code (no spoilers) from: Learn Generators: Look Sync, Do Async
// https://github.com/isRuslan/learn-generators/blob/master/exercises/look_sync_do_async/problem.md
var fs = require('fs')
function run (generator) {
var it = generator(go) //[go]
console.log(1, go, it) // 1 [Function: go] { _invoke: [Function: invoke] }
function go (err, result) {
console.log(3, result, '< result') // [3]
@gyaresu
gyaresu / brew.txt
Created May 30, 2015 08:26
brew list
ack hicolor-icon-theme pdf-redact-tools
atk htop-osx pixman
autoconf hub pkg-config
automake icu4c portaudio
bash iftop postgresql
boost imagemagick privoxy
brew-cask ipcalc py2cairo
c-ares isl pygobject
cairo jbig2dec pygtk
cloog jpeg pyqt