Skip to content

Instantly share code, notes, and snippets.

- (void) setIsPlaying:(BOOL)isPlaying {
_isPlaying = isPlaying;
NSArray *arrOfPlayAndPause = @[@"playButton", @"pauseButton"];
[self.playPauseButton setBackgroundImage:[UIImage imageNamed:arrOfPlayAndPause[(Byte)isPlaying]] forState:UIControlStateNormal];
}
window.location = yourscheme://callfunction/parameter1/parameter2?parameter3=value
- (BOOL)webView:(UIWebView*)webView shouldStartLoadWithRequest:(NSURLRequest*)request navigationType:(UIWebViewNavigationType)navigationType {
NSURL *URL = [request URL];
if ([[URL scheme] isEqualToString:@"yourscheme"]) {
// parse the rest of the URL object and execute functions
}
}
<<<<<<< HEAD
This is first version with typo
=======
This is first verion with typo
This is new feature of this text, it has new chars in it, so it
is very cool
>>>>>>> newFeature
bluesm@vz12176:~/gitEx/proGitBranches$ git merge master
Auto-merging abc
CONFLICT (content): Merge conflict in abc
Automatic merge failed; fix conflicts and then commit the result.
bluesm@vz12176:~/gitEx/proGitBranches$ cat abc
<<<<<<< HEAD
This is first verion with typo
This is new feature of this text, it has new chars in it, so it
is very cool
=======
mbp-pawe:_ikke_ pawel$ git init
Initialized empty Git repository in /Users/pawel/gitEx/_ikke_/.git/
mbp-pawe:_ikke_ pawel$ echo "text from master" > testFile
mbp-pawe:_ikke_ pawel$ git add testFile
mbp-pawe:_ikke_ pawel$ git commit -m "Added testFile"
[master (root-commit) b3ecf8d] Added testFile
1 file changed, 1 insertion(+)
create mode 100644 testFile
mbp-pawe:_ikke_ pawel$ git branch secondBranch
mbp-pawe:_ikke_ pawel$ git checkout secondBranch
- (IBAction)historyUISliderValueChanged:(id)sender {
float sliderValue = ((UISlider *)sender).value;
NSUInteger sizeOfHistory = self.game.historyOfActions.count;
NSUInteger index = floor(sliderValue * sizeOfHistory);
NSLog(@"index %d" ,index);
NSLog(@"%@ index: %d ", self.game.historyOfActions[index], index); // Problem when historyOfActions is empty!
NSUInteger desiredNumber = 30;
NSMutableString *binaryRep = [[NSMutableString alloc] init];
int lastBit = (1 << 31);
NSLog(@"%d", lastBit);
for(int i = 0; i < 32; i++) {
if (desiredNumber & (lastBit))
[binaryRep appendString:@"1"];
else
[binaryRep appendString:@"0"];
StringBuilder taskNamesSeparatedByComma = new StringBuilder();
StringBuilder endTimesSeparatedByComma = new StringBuilder();
Log.v(MainActivity.TAG, " size of this.taskList " + this.taskList.size());
for(Task t: this.taskList) {
taskNamesSeparatedByComma.append(t.taskName).append(',');
endTimesSeparatedByComma.append(Long.toString(t.endTime)).append(',');
}
String a = taskNamesSeparatedByComma.toString();
root@debian:~/.local/openocd.git# cat /etc/apt/sources.list
+ cat /etc/apt/sources.list
#
# deb cdrom:[Debian GNU/Linux testing _Wheezy_ - Official Snapshot i386 CD Binary-1 20121203-03:36]/ wheezy main
# deb cdrom:[Debian GNU/Linux testing _Wheezy_ - Official Snapshot i386 CD Binary-1 20121203-03:36]/ wheezy main
# deb http://ftp.de.debian.org/debian squeeze main
A novel is a work of poetry. In order to write it, one must have tranquility of spirit and of impression  …” A novel, at least a Dostoevsky novel, is a “work of poetry”— that is, a simultaneous composition on multiple planes— and the critics can therefore be forgiven their perplexity about where to take hold of it, since the first perplexity of criticism is that it must speak monosemantically of the polysemous. But besides that, these were novels of a new kind, their multiple planes so divergent and even contradictory as to all but baffle definition. So much so that one line of criticism, rightly noting the dramatic technique and high seriousness of Dostoevsky’s writing, has called his late works “novel-tragedies,” while another, withe qual rightness, finds their roots in Ménippean satire and a carnival sense of the world. Dostoevsky’s uniqueness as an artist lies in his invention of a form capable of combining such opposites, of sounding such depths (carnival laughter has as much depth as tragedy), while nev