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'; | |
export default Ember.Controller.extend({ | |
actions: { | |
getLatest() { | |
this.send('invalidateModel'); | |
} | |
} | |
}); |
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'; | |
export default Ember.Route.extend({ | |
model() { | |
return [{ | |
title: "Tomster", | |
url: "http://emberjs.com/images/about/ember-productivity-sm.png" | |
}, { | |
title: "Eiffel Tower", | |
url: "http://emberjs.com/images/about/ember-structure-sm.png" |
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'; | |
export default Ember.Component.extend({ | |
actions: { | |
submit() { | |
this.sendAction('submit', { | |
name: this.get('name'), | |
bio: this.get('bio') | |
}); | |
}, |
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
class Logger::SimpleFormatter | |
def call(severity, time, progname, msg) | |
('Hodor ' * rand(50)).chop + "\n" | |
end | |
end |
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 | |
set -e | |
pivotal_ticket_id=$1 | |
function commits_from_master() { | |
git checkout master > /dev/null 2>&1 | |
git log --reverse --oneline --no-abbrev-commit --grep $1 | cut -d ' ' -f 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
#= require jquery | |
#= require underscore | |
#= require YouAreDaBomb | |
#= require YouAreDaBomb.shortcuts | |
class DisplayTasksUseCase | |
constructor: (tasks)-> | |
@tasks = tasks ? [] |
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
class Samochod { | |
private: | |
std::string producent; | |
std::string model; | |
int nr_nadwozia; | |
int przebieg; | |
int id; | |
int rocznik; | |
int liczba_napraw; | |
public: |
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
int B = 3; | |
int G = 5; | |
int R = 6; | |
int red = 255; | |
int green = 0; | |
int blue = 0; | |
int step = 1; |