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
import gql from "graphql-tag"; | |
import jwt from "jsonwebtoken"; | |
import getConfig from "next/config"; | |
import qs from "qs"; | |
import React from "react"; | |
import { withApollo, WithApolloClient } from "react-apollo"; | |
import FullPageLoader from "../components/fullPageLoader"; | |
import { currentUser } from "../__generated__/currentUser"; | |
import { userSignUp } from "../__generated__/userSignUp"; |
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
Verifying that "gcpantazis.id" is my Blockstack ID. https://onename.com/gcpantazis |
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
Verifying that "gcpantazis.id" is my Blockstack ID. https://onename.com/gcpantazis |
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
var labels = document.querySelectorAll('.label'); | |
var matchedLabels = []; | |
for (var i = 0; i < labels.length; i++) { | |
if (labels[i].innerText.match('Halstead effort')) { | |
matchedLabels.push(labels[i]); | |
} | |
} | |
matchedLabels.reduce(function(memo, item) { | |
var value = item.parentNode.querySelector('.value').innerText * 1; |
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
'use strict'; | |
// If you're unfamiliar with streams a lot of Gulp will seem super confusing. | |
// Streams are really critical to Node, and increasingly to the front-end. | |
// An excellent read: https://github.com/substack/stream-handbook | |
var gulp = require('gulp'); | |
var browserify = require('browserify'); | |
var source = require('vinyl-source-stream'); |
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
var browserify = require('browserify'); | |
var source = require('vinyl-source-stream'); | |
gulp.task('scripts', function() { | |
var bundler = browserify({ | |
entries: ['./app/scripts/app.js'], | |
debug: true, | |
transform: ['reactify', 'debowerify'] | |
}); |
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
// Connect | |
gulp.task('connect', $.connect.server({ | |
root: ['dist'], | |
port: 9000, | |
livereload: true, | |
middleware: function() { | |
return [ | |
require('connect-gzip').gzip() | |
]; | |
} |
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() { | |
var MyModule = function() { | |
// ... | |
} | |
// Browserify / CommonJS | |
if (typeof module === "object" && typeof module.exports === "object") { | |
module.exports = MyModule; |
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/bash | |
if [ $DRONE_BRANCH ]; then | |
git fetch --unshallow | |
git remote remove dokku | |
git remote add dokku dokku@foo.dokkuhost.com:project-bar-$DRONE_BRANCH | |
git push dokku $DRONE_BRANCH:master | |
fi |
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
// Description: | |
// Watch methods for JIRA worklogs | |
// | |
// Commands: | |
// Hubot Set JIRA Worklogs Watch <query> - Have Hubot watch this JQL search for worklog changes. | |
// Hubot List JIRA Worklog Watches - Displays all the watches Hubot is managing for this channel. | |
// Hubot Clear JIRA Worklog Watches - Destroy all watches Hubot is managing for this channel. | |
/*jshint camelcase: false */ |
NewerOlder