Skip to content

Instantly share code, notes, and snippets.

View frekw's full-sized avatar
🐼

Fredrik Wärnsberg frekw

🐼
  • https://www.soundtrackyourbrand.com/
  • Stockholm, Sweden
  • 22:47 (UTC +02:00)
View GitHub Profile
def comment do
gen all id <- positive_integer(),
author <- string(:alphanumeric, max_length: 64),
body <- string(:alphanumeric) do
%{id: id,
author: author,
body: body}
end
end
defmodule Instrumenter do
alias Absinthe.Resolution
@behaviour Absinthe.Middleware
@callback measurement(metric :: atom, result :: any, time :: non_neg_integer) :: none
@callback field(field :: string) :: none
defmacro __using__(opts) do
backend = Keyword.get(opts, :adapter, Instrumenter.Dummy)
app.6ed7eb52.js:10 TypeError: Cannot read property 'subscribe' of null
at P.f.addEventListener (s.ytimg.com/yts/jsbin/www-widgetapi-vfliZmGBd/www-widgetapi.js:21)
at _loadPlayer (app.6ed7eb52.js:25)
at app.6ed7eb52.js:25
at processQueue (app.6ed7eb52.js:10)
at app.6ed7eb52.js:10
at Scope.$eval (app.6ed7eb52.js:10)
at Scope.$digest (app.6ed7eb52.js:10)
at app.6ed7eb52.js:10
at completeOutstandingRequest (app.6ed7eb52.js:8)
@frekw
frekw / keybase.md
Created April 28, 2015 14:03
keybase.md

Keybase proof

I hereby claim:

  • I am frekw on github.
  • I am warnsberg (https://keybase.io/warnsberg) on keybase.
  • I have a public key whose fingerprint is 7717 EBCB 657D C10E 2560 3C5D E858 91C7 CB18 6F05

To claim this, I am signing this object:

app.e25a10b6.js:1 Uncaught Error: [$injector:modulerr] Failed to instantiate module kit due to:
Error: [$injector:modulerr] Failed to instantiate module angular-bugsnag due to:
ReferenceError: Bugsnag is not defined
at new b.provider.bugsnag (https://static.kitcdn.se/dist/latest/assets/js/app.e25a10b6.js:6:27009)
at e (https://static.kitcdn.se/dist/latest/assets/js/app.e25a10b6.js:1:17991)
at Object.f [as instantiate] (https://static.kitcdn.se/dist/latest/assets/js/app.e25a10b6.js:1:18083)
at e (https://static.kitcdn.se/dist/latest/assets/js/app.e25a10b6.js:1:16277)
at https://static.kitcdn.se/dist/latest/assets/js/app.e25a10b6.js:1:1091
at f (https://static.kitcdn.se/dist/latest/assets/js/app.e25a10b6.js:1:903)
at Object.provider (https://static.kitcdn.se/dist/latest/assets/js/app.e25a10b6.js:1:16204)
gulp.task('styleguide-sass', function(){
return gulp.src(['static/sass/styleguide.scss'])
.pipe(sass().on('error', errhandler))
.pipe(rename('style.css'))
.pipe(gulp.dest('styleguide/public'));
});
gulp.task('kss', function(){
return gulp.src(['static/sass/*.scss'])
.pipe(kss({
var cachedAuth;
function getAuthQueryString() {
if (cachedAuth) return cachedAuth;
var qs = [
'sentry_version=4',
'sentry_client=raven-js/' + Raven.VERSION
];
if (globalKey) {
@frekw
frekw / ParentWalker.php
Last active December 14, 2015 02:09
A Wordpress nav_menu walker for adding parent classes to dropdowns
class ParentWalker extends Walker_Nav_Menu {
function display_element ( $element, &$children, $max_depth, $depth = 0, $args, &$output ) {
$id_field = $this->db_fields['id'];
if (!empty($children[$element->$id_field])) {
$element->classes[] = 'menu-item-parent'; //enter any classname you like here!
}
parent::display_element($element, $children, $max_depth, $depth, $args, $output);
}
}
Före rebase, master till vänster
o
|
o
|  \
o   o
|   |
o   o
|  /
o
return
{
a: "2"
};