This file contains hidden or 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
#include <stdio.h> | |
void pass_the_taco(int *); | |
int main( int argc, const char* argv[] ){ | |
int taco = 420; | |
pass_the_taco(&taco); | |
// 55667 |
This file contains hidden or 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.util.Scanner; | |
public class Exam2 { | |
public static boolean paymentIsEnough( int amount, int years, double rate, double payment ) { | |
int i = 0; | |
for( i = 0; i < years * 12; i++ ) { | |
double interest = (rate / 12) * amount; | |
double principal = interest - payment; | |
amount += principal; |
This file contains hidden or 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
void reverse(char* string) { | |
char tmp; | |
for(int i = 0; i < strlen(string)/2; i++) { | |
tmp = string[i]; | |
string[i] = string[(strlen(string) - 1) - i]; | |
string[(strlen(string) - 1) - i] = tmp; | |
} | |
} |
This file contains hidden or 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
def show | |
json = Rails.cache.fetch("criteria_report_#{params[:id]}_json") do | |
if( @criteria_report.rails_simple_auth_drg_user_id === current_user.id ) | |
serialize_criteria_report(@criteria_report) | |
render json: json | |
else | |
render status: :forbidden | |
end | |
end |
This file contains hidden or 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
{{#collapse-div unique=indication.id}} | |
{{input-group objects=drugs setSelected='passSelectedObjects'}} | |
{{/collapse-div}} | |
#input-group | |
fireAction: function() { | |
this.sendAction('setSelected', this.get('selectedObjects').mapBy('content')); | |
}.observes('selectedObjects.length') |
This file contains hidden or 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/sh | |
# Aetna Commercial | |
node filter.js filter --provider=Aetna --health-plan-type=Commercial --drug=2434 | |
node filter.js filter --provider=Aetna --health-plan-type=Commercial --drug=2919 | |
node filter.js filter --provider=Aetna --health-plan-type=Commercial --drug=3334 | |
node filter.js filter --provider=Aetna --health-plan-type=Commercial --drug=2434,2919 | |
node filter.js filter --provider=Aetna --health-plan-type=Commercial --drug=2434,3334 | |
node filter.js filter --provider=Aetna --health-plan-type=Commercial --drug=2919,3334 | |
node filter.js filter --provider=Aetna --health-plan-type=Commercial --drug=2434,2919,3334 |
This file contains hidden or 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({ | |
myService: Ember.inject.service(), | |
init() { | |
this.txt = this._super(...arguments); | |
return this.get('myService.items'). | |
mapBy('fname'). | |
join(','); | |
} |
This file contains hidden or 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({ | |
appName: 'Ember Twiddle', | |
taco: false, | |
tr: true, | |
tt: false, | |
canUse: Ember.computed.or('taco', 't{t,r}') | |
}); |
This file contains hidden or 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({ | |
appName: 'Ember Twiddle', | |
actions: { | |
noop: function() {} | |
} | |
}); |
This file contains hidden or 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({ | |
arr: [ | |
{ id: 3, name: 'a' }, | |
{ id: 1, name: 'b' }, | |
{ id: 2, name: 'c' } | |
], | |
filterKey: 'name', | |
filterValue: 'c', |
OlderNewer