Skip to content

Instantly share code, notes, and snippets.

View minichate's full-sized avatar
🥰
Hi Everyone

Christopher Troup minichate

🥰
Hi Everyone
View GitHub Profile
/*
* Long and Dreary.
*/
var json = xml2json.parser(response_text),
query_result = json.envelope.body.queryresponse.result,
users = [];
// Build up a list of {{sd.User}}s to return to the view.
if(query_result.size == 1){
import os
from commands import getoutput
class Blamer(object):
"""
This script will run through all the files git tracks, and see how many
lines each user has written/edited. You will get a number of lines and
percentage. Throughout the course of a project, you will add lines and your
lines will be deleted. This shows you how much of your code is still in the
project now.
@minichate
minichate / coffee.json
Created June 17, 2011 14:18 — forked from thurloat/coffee.json
Timmys Run
{
"Christopher Troup": [
{
item: "Coffee",
modifiers: [
cream: 2,
sugar: 2
],
amount: 1
},
@minichate
minichate / controllers.application.js
Last active March 29, 2017 05:24 — forked from k-fish/controllers.application.js
BigNumber 2.08 Check
import Ember from 'ember';
const { computed } = Ember;
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
bigNumberTest: computed(function() {
const a = (new BigNumber(249500)).dividedBy(10000);
return a;
import Ember from 'ember';
const { computed } = Ember;
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
bigNumberTest: computed(function() {
const a = (new BigNumber(2495)).dividedBy(100);
return a;