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
-- This script automatically loads playlist entries before and after the | |
-- the currently played file. It does so by scanning the directory a file is | |
-- located in when starting playback. It sorts the directory entries | |
-- alphabetically, and adds entries before and after the current file to | |
-- the internal playlist. (It stops if the it would add an already existing | |
-- playlist entry at the same position - this makes it "stable".) | |
-- Add at most 5 * 2 files when starting a file (before + after). | |
MAXENTRIES = 5 | |
function Set (t) |
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
// | |
// FilterManager.swift | |
// sPort | |
// | |
// Created by Milan Vít on 05.12.14. | |
// Copyright (c) 2014 AiNeuron. All rights reserved. | |
// | |
import Foundation |
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
{ | |
"status": 200, | |
"projects": [ | |
{ | |
"name": "C128Mopf", | |
"variants": [ | |
{ | |
"id": 40, | |
"name": "SA ECE", | |
"partNumbers": [ |
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 Foundation | |
extension Int { | |
var rank: Int { | |
return self > 0 ? (Int(log10(Double(self)) + 1)) : 1 | |
} | |
func expToRank(rank: Int) -> Int { | |
return self * Int(pow(10, Double(rank - self.rank))) | |
} |
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
for(int i=99;i>-1;i--){System.out.println((i==0?"no more":i)+" bottle"+(i==1?"":"s")+" of beer on the wall, "+(i==0?"no more":i)+" bottle"+(i==1?"":"s")+" of beer.\n"+(i==0?"go to the store and buy some more, ":"take one down, pass it around, ")+(i==0?99:(i==1?"no more":i-1))+" bottle"+(i==2?"":"s")+" of beer on the wall\n");} |
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 Foundation | |
class FilterManager { | |
class var shared: FilterManager { | |
struct Static { | |
static let instance: FilterManager = FilterManager() | |
} | |
return Static.instance | |
} |
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
syntax: glob | |
# OS X | |
.DS_Store | |
# Xcode | |
build | |
*.pbxuser | |
*.mode1v3 | |
*.mode2v3 |
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
#pragma mark Private methods | |
- (void)refreshData | |
{ | |
[self setMessages:[[NSArray alloc] init]]; | |
for (MVAccount *account in [[self accountManager] allAccounts]) | |
{ | |
MCOIMAPSession *session = [[MCOIMAPSession alloc] init]; | |
[session setHostname:[account imapServer]]; |
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
- (void)viewWillAppear:(BOOL)animated | |
{ | |
[super viewWillAppear:animated]; | |
[self setFilteredData:[[[[self trialData] linq_where:^BOOL(id trial) | |
{ | |
return [[self selectedYears] containsObject:[trial objectForKey:@"Year"]]; | |
}] linq_where:^BOOL(id trial) | |
{ | |
NSString *source = [trial objectForKey:@"Source"]; |
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
Hello Tyler, | |
and so sorry for such delayed reply, the last week was more hectic for me than I'd like it to be – university, | |
part-time work, my sister breaking her arm, uh! | |
Anyway, I've been looking at the plane tickets in the last couple of days and it looks like from the monetary | |
standpoint, it doesn't really make a difference when will I arrive, so I'd prefer to leave Czech Republic on | |
May 23 or May 24 at the latest (it very much depends on the real date of my state examination, for now I know | |
that it's either happening on May 22 or May 23, but I'm not sure which day is it yet – I'll try to find out | |
ASAP!) and if I'm counting the timezone difference correctly, I should arrive in the US on the same day as I |