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
| Session.setDefault 'isAdding', false | |
| Session.setDefault 'isEditing', false | |
| Session.setDefault 'isSearching', false | |
| Session.setDefault 'activeContact', null | |
| # ------- RENDERED --------- | |
| Template.contacts.rendered = () -> | |
| Session.set 'isAdding', false | |
| Session.set 'isEditing', false |
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
| var Menu = require('terminal-menu') | |
| function bcMenu () { | |
| var menu = Menu({ width: 60, x: 4, y: 2, bg: 'red'}) | |
| menu.reset() | |
| menu.write("Welcome to the Rakuten Ball Clock.\n") | |
| menu.write('----------------------------\n') | |
| menu.add("1 - Calculate cycle length for a given number of balls.") | |
| menu.add("2 - Print ball layout for X balls after Y minutes.") |
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
| package main | |
| import "fmt" | |
| func main() { | |
| ball_count := 28 | |
| var ones_track, fives_track []int | |
| // hours_track := make([]int, 0) | |
| original, queue := loadBalls(ball_count) | |
| fmt.Println(original, queue, ones_track, fives_track) |
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
| package main | |
| import "fmt" | |
| func main() { | |
| ball_count := 28 | |
| var original, queue, ones_track, fives_track []int | |
| // hours_track := make([]int, 0) | |
| loadBalls(ball_count, original, queue) | |
| fmt.Println(original, queue, ones_track, fives_track) |
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
| { | |
| "" : 1283, | |
| " CORRECTED CLAIM " : 2, | |
| "1199 NATIONAL BENEFITS FUND" : 101, | |
| "8TH DISTRICT" : 10, | |
| "8TH DISTRICT ELECTRICAL" : 12, | |
| "978126432" : 1, | |
| "AENTA" : 24, | |
| "AETNA" : 10663, | |
| "AETNA CLAIMS" : 9, |
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
| var PATH = require('path'), | |
| DIR = '/source/dir'; | |
| var files = fs.readdir(DIR).forEach(function(file) { | |
| var data = fs.readFileSync(PATH.join(DIR, file)).toString().split('\r\n'); | |
| // now I have the data as an array of lines and I can | |
| // grab each individual line and assign them a variable. Great. | |
| // for example: | |
| var name_field = data[28].split(', ') | |
| var first_name = name_field[1] |
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
| @get_ub04 = (patient, facility, insurance, physician, attendances, claim_type) -> | |
| patient_policy_holder_relationship = '01' if patient.policyHolderRelationship == 'Spouse' | |
| #get then set diagCodes | |
| dcs = patient.diagCodes.split(', ') | |
| dc1 = dcs[0] | |
| dc2 = dcs[1] || '' | |
| dc3 = dcs[2] || '' | |
| dc4 = dcs[3] || '' |
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
| @cars = @car.all | |
| @contracts = Contract.where(imei:params['imei']) | |
| #view | |
| <% @cars.each_with_index do |car, index| %> | |
| <%= @contracts.select {|c| c['imei'] == car['imei']}.each do |contract| %> | |
| #inside here i have a table and need to print fields of the 2 collections | |
| <p><%= contract.car.username %></p> | |
| <p><%= contract.car.name %></p> | |
| # and need the especific contracto too, something like |
NewerOlder