::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::,:::::::,:::::::::,:::::::::,:::,::,,:,,,:::::,:::,,,,,,,,,,,,,,,,,,,,,,,, ::::::::::::::::::::::::::::::::::::::::::::::::,:::,::::::::::::::::::,::::,::::::,:::,::,:,,:,,,,,,,,,,,,:,:,,,,,,,,,,,,,,,,,,,,,,,,,, :::::::::::::::::::::::::::::::::::::::::,:::::::::,:::::::::,:::,:::,,,,:,,,,,,::,,:,,,:,,:::,,:,:,,,,,,,:::,,,,,,,,,,,,,,,,,,,,,,,,,,, :::::::::::::::::::::::::::::::::::::::::,:,::,,,,:::::::::::::::,,,,,,,,,,,:,,,:,,::,,,,,,,,::,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, ::::::::::::::::::::::::::::::::,:,:::::::::,,::::::,,:::,,,,:,,:,,,,:,,,::::::,,,,,,,,,,,,,::,,,,,,,,,,,,,,,,,,,,,,,,,:,,,,,,,,,,,,,,,, :::::::::::::::::::::::::::,,::::::,:::::::,,,:,::,,,,,:,,,,,,,:::,:::,,:,,:::,,,,,,,:,,,,:,,,,,,,:,,:,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, ::::::::::::::::::::::::::::,:,,,,::,::::,:::,::,:,:,,,,,::,,,:,,,,,,:,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, :::::::::::::::::::::::,:::
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
require 'rails_helper' | |
RSpec.describe TodosController, :type => :controller do | |
describe "GET #index" do | |
#describe "POST #create" do | |
#describe "GET #show" do | |
#describe "PATCH #update" do (or PUT #update) | |
#describe "DELETE #destroy" do | |
#describe "GET #new" do |
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
[ | |
{"ab_test":{"achievements":"on","anonymous_driving":"off"}} | |
] |
Times in "Hours per Character"
- 0.84210526315 - 16 hours/"open_in_view: false" - I spent trying to get a spring boot to not open a connection to the database.
- infinity - 20 hours/"" - Time I spend debugging a "Timeout Exception" only to have it be a computer issue with networking that went away once I restart the computer.
- 10.0 - 10 hours/"5" - Michael, Jeremy and Andrew spend time upgrading a version that fixed a connection closing in MongoDB.
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 sys | |
import os | |
import xml.etree.ElementTree as ET | |
import logging | |
import re | |
from shutil import copyfile | |
from optparse import OptionParser | |
### This file came from the https://github.com/flow123d/flow123d repo they were nice enough to spend time to write this. | |
### It is copied here for other people to use on its own. |
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
<tbody> | |
<tr> | |
<td style="text-align:right" colspan="2"> | |
<g:javascript> | |
var types = new Array(); | |
<g:each var="code" status="i" in="${ProjectCodeType.values()}"> | |
types[${i}] = "${code.toString()}"; | |
</g:each> | |
var adder${projectInstance.id} = new ProjectCodeAdder("project${projectInstance.id}",types); | |
adder${projectInstance.id}.id = ${newProjectCodeCounter}; |
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
package com.spidasoftware.interchange.util | |
import groovy.util.logging.Log4j | |
import org.apache.log4j.Logger | |
import spock.lang.Specification | |
/** | |
* Created by toverly on 6/27/14. | |
*/ | |
class LogPerformanceSpec extends Specification { |
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 java.nio.file.DirectoryStream | |
import java.nio.file.Files | |
import java.nio.file.Path | |
import java.nio.file.Paths | |
class LogWrapper { | |
static exclusions = ["/deployments/", "grails-app/conf/", "/test/", "/cas/", "/migrations/", "/target/"] |
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
# Set these up once, and generally forget for each linking | |
export TOKEN='YOUR TRACKER TOKEN' | |
export PROJECT_ID='Project Id from Tracker URL' | |
# Change these for each ticket to link | |
export STORY_ID='Story ID from Tracker URL' | |
export EXTERNAL_ID='Ticket ID from Zendesk URL' | |
curl -X PUT -H "X-TrackerToken: $TOKEN" -H "Content-Type: application/json" \ | |
-d "{\"integration_id\":21611, \"external_id\":\"$EXTERNAL_ID\"}" "https://www.pivotaltracker.com/services/v5/projects/$PROJECT_ID/stories/$STORY_ID" |