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
Process: TogglDesktop [531] | |
Path: /Applications/TogglDesktop.app/Contents/MacOS/TogglDesktop | |
Identifier: com.toggl.toggldesktop.TogglDesktop | |
Version: 7.2.199 (7.2.199) | |
Code Type: X86-64 (Native) | |
Parent Process: ??? [1] | |
Responsible: TogglDesktop [531] | |
OS Version: Mac OS X 10.10.4 (14E46) | |
Report Version: 11 |
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
#include <stdio.h> | |
#define SRAM_SIZE (32 * 1024) | |
static unsigned char SRAM[SRAM_SIZE]; | |
int main(void) | |
{ | |
FILE * stream; | |
register int i; |
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
module TimeDistanceHelper | |
def date_time_distance(start_date_time,end_date_time) | |
seconds_distance = (end_date_time - start_date_time).to_i.abs | |
days_distance = (seconds_distance / (3600 * 24)).to_i | |
seconds_distance -= days_distance * 3600 * 24 | |
hours_distance = (seconds_distance / 3600).to_i | |
seconds_distance -= hours_distance * 3600 | |
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 Migration < ActiveRecord::Migration | |
def change | |
create_table :countries do |t| | |
t.string :name | |
t.timestamps | |
end | |
create_table :regions do |t| | |
t.string :short_name |