Skip to content

Instantly share code, notes, and snippets.

View koddsson's full-sized avatar
:fishsticks:

Kristján Oddsson koddsson

:fishsticks:
View GitHub Profile
2016-03-20 20:46:43.078888: handle_incoming_response: in {u'isFull': False, u'notes': [{u'end': 5992, u'severity': {u'typehint': u'NoteError'}, u'beg': 5964, u'file': u'/Users/koddsson/Repos/quizup-monorepo/src/scala/com/quizup/moderation/endpoints/players.scala', u'msg': u'not found: value createModerationActionReader', u'line': 142, u'col': 57}], u'typehint': u'NewScalaNotesEvent'}
2016-03-20 20:46:43.079001: path: in
2016-03-20 20:46:44.095930: unqueue: result received {
"payload": {
"typehint": "NewScalaNotesEvent",
"isFull": false,
"notes": [{
"beg": 6805,
"line": 157,
"col": 42,
2016-03-20 20:32:02.891767: path: in
2016-03-20 20:32:02.901789: unqueue: result received {
"callId": 1,
"payload": {
"name": "io.finch.Endpoint",
"localName": "Endpoint",
"typehint": "SymbolInfo",
"type": {
"name": "Endpoint",
"fullName": "io.finch.Endpoint",
2016-03-20 20:23:37.265154: open_declaration: in
2016-03-20 20:23:37.266185: 37 50
2016-03-20 20:23:37.267052: 1286
2016-03-20 20:23:37.267156: path: in
2016-03-20 20:23:37.267740: send_request: in
2016-03-20 20:23:37.268202: send: in
2016-03-20 20:23:37.268541: send: {"callId": 2, "req": {"typehint": "SymbolAtPointReq", "file": "/Users/koddsson/Repos/quizup-monorepo/src/scala/com/quizup/moderation/endpoints/players.scala", "point": 1287}}
2016-03-20 20:23:38.274219: unqueue: result received {
"callId": 2,
"payload": {

Keybase proof

I hereby claim:

  • I am koddsson on github.
  • I am koddsson (https://keybase.io/koddsson) on keybase.
  • I have a public key whose fingerprint is 2696 7637 2476 4B0B F2B7 19D4 595B 7AC1 BC27 37C6

To claim this, I am signing this object:

/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ return installedModules[moduleId].exports;
@koddsson
koddsson / filter-widget-selectboxes.js
Last active December 17, 2015 13:54
Filter widget select boxes based on a criteria.
// Edit this object with the id of the select element and a array of values to
// keep.
var optionsToKeep = {
'activity-pcat256': [0, 1],
'activity-pcat258': [0, 2, 3],
'activity-pcat257': [0, 4, 5]
};
var filterSelectBoxes = function(options) {
var toDelete = [];
@koddsson
koddsson / git-post-push-function.sh
Last active December 19, 2023 10:00
Runs a `post-push` hook after a successful run of `git push`
git() {
ROOT="$(/usr/bin/git rev-parse --show-toplevel)"
LOCATION="/.git/hooks/post-push"
if [ "$1" == "push" ] && [ -f "$ROOT$LOCATION" ]; then
/usr/bin/git $* && eval $ROOT$LOCATION
else
/usr/bin/git $*
fi
}
var gulp = require('gulp');
gulp.task('default', function () {
var postcss = require('gulp-postcss');
return gulp.src('index.css')
.pipe(postcss([
require('postcss-style-guide')(),
require('cssnext')()
]))
.pipe(gulp.dest('build/'));
content github-emojis ./ contentaccessible=true
@koddsson
koddsson / blog.md
Last active September 11, 2018 09:02

Lint checker comments on GitHub PR using Travis

I really like PEP8. It's a standard that's used pretty much everywhere in the python "world". It's job is to make sure that your code adheres to certain rules, for example no line of code should exceed 80 characters.

Recently I opened up a pull request to add a flake8 check to the snippets-service project at mozilla. Flake8 is a command line tool that "lints" your code against certain standards,