This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { ApolloServer, gql } = require('apollo-server'); | |
const find = require('lodash/find'); | |
const filter = require('lodash/filter'); | |
const map = require('lodash/map'); | |
const { Console } = require('console'); | |
// Our type definitions | |
const typeDefs = gql` | |
""" | |
How the cookie tastes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Some things taken from here | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# Set the colours you can use | |
black='\033[0;30m' | |
white='\033[0;37m' | |
red='\033[0;31m' | |
green='\033[0;32m' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function qshash(){ | |
return location.search.replace('?', '').split("&") | |
.reduce(function(h, kv){ var v = kv.split('='); h[v[0]] = v[1]; return h; }, {}); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery.extend({ | |
putJSON: function( url, data, callback ){ | |
return $.ajax({ | |
type: 'put', | |
url: url, | |
processData: false, | |
data: data, | |
success: callback, | |
contentType: 'application/json', | |
dataType: 'json' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
plugin.onMessageInsertion = function(talkerEvent){ | |
// Change those values with yours. | |
// When you type JIRA-1234, it will automatically convert it to a link | |
var jiraServer = 'https://xxx.xxx.com' | |
, browseLink = '<a href="' + jiraServer + '/browse/$1" target="_blank">$1</a>' | |
, jiraPrefix = 'AE-' | |
, jiraRegex = new RegExp('('+jiraPrefix+'\\d+\\b)', 'gi'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Written by @vincentsimard */ | |
/* | |
Converts f7u12 faces code into images | |
See http://www.reddit.com/r/fffffffuuuuuuuuuuuu/comments/ecnd4/every_fffffffuuuuuuuuuuu_face_a_reference_guide for reference | |
Does not support titles, or any other cool features | |
Type [/code] to use the face in Talker. | |
*/ | |
plugin.F7U12Faces = function(matcher){ | |
this.matcher = matcher; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2011 Bruno Carriere <http://js-montreal.org> | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery.fn.subquery = function(){ | |
var ctx = $(this); | |
return function(){ | |
return arguments.length ? ctx.find.apply(ctx, arguments) : ctx; | |
}; | |
}; | |
// Given something like: | |
// <article id="article1"> | |
// <h3>foobar</h3> |