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 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; |
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 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; |
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
{ | |
"Christopher Troup": [ | |
{ | |
item: "Coffee", | |
modifiers: [ | |
cream: 2, | |
sugar: 2 | |
], | |
amount: 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
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. |
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
/* | |
* 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){ |