Skip to content

Instantly share code, notes, and snippets.

package pl.twigit.timertry;
import android.os.Handler;
import android.support.v7.app.ActionBarActivity;
import android.support.v7.app.ActionBar;
import android.support.v4.app.Fragment;
import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.Menu;
→ bluesm joined (uid13438@gateway/web/irccloud.com/x-vwzagpplvfbnrrfz)
17:06:39 Channel mode is +Ccgnt
17:06:48 ⇐ eulerphi quit ([email protected]) Ping timeout: 252 seconds
17:06:55 <bluesm> I know my question could be vague but I will ask anyway.
17:07:17 <bluesm> Does the "Switch" from enumerable value, will compare and then "jump" or just jump ? It would be not to compare... but just make array with pointers to jump [firstpointer, second pointer, third pointer] and value "0" would select "first pointer" and jump to the first pointer ?
17:07:39 ⇐ haxxpop quit ([email protected]) Quit: Konversation terminated!
17:07:45 <bluesm> Normal switch compares the given value, with other values... But if you have say "3" states. - 0 1 2 - . i could instead of comparing, it could go array of pointers get "n'th" (0 , 1 , 2 in our case) value in this array. And execute something at give pointer.
17:08:46 <bluesm> I know it could depend on the higher programm
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ERConsole.Menu
{
class MenuCollectionController
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ERConsole.Menu
{
class MenuCollectionController
{
pawel@debian:~/symbolicLinkTest$ git init
Initialized empty Git repository in /home/pawel/symbolicLinkTest/.git/
pawel@debian:~/symbolicLinkTest$ echo 'Hello world' > greeting
pawel@debian:~/symbolicLinkTest$ ls
greeting
pawel@debian:~/symbolicLinkTest$ git add greeting
pawel@debian:~/symbolicLinkTest$ git log
fatal: bad default revision 'HEAD'
pawel@debian:~/symbolicLinkTest$ git write-tree
870e3f1f32de1e81e954dadc36bd60f9ce0d3cd0
pawel@debian:~/gitFromBottomUp$ find .git/objects -type f
.git/objects/af/5626b4a114abcb82d63db7c8082c3c4756e51b
.git/objects/47/78adb7ec4957eee9a1ad28dd878e22ab0830f1
.git/objects/05/63f77d884e4f79ce95117e2d686d7d6e282887
pawel@debian:~/gitFromBottomUp$ git cat-file -t af5626b4
blob
pawel@debian:~/gitFromBottomUp$ git cat-file -t 4778adb7
commit
pawel@debian:~/gitFromBottomUp$ git cat-file -t 0563f77d
tree
root@debian:/home/pawel/bash/wildcardTest# ls
root@debian:/home/pawel/bash/wildcardTest# *
bash: *: command not found
root@debian:/home/pawel/bash/wildcardTest# echo *
*
root@debian:/home/pawel/bash/wildcardTest# ls
root@debian:/home/pawel/bash/wildcardTest# touch someFile
root@debian:/home/pawel/bash/wildcardTest# touch otherFile
root@debian:/home/pawel/bash/wildcardTest# ls
otherFile someFile
make[1]: Entering directory `/home/pawel/git/git-1.8.4.2/Documentation'
make[2]: Entering directory `/home/pawel/git/git-1.8.4.2'
make[2]: `GIT-VERSION-FILE' is up to date.
make[2]: Leaving directory `/home/pawel/git/git-1.8.4.2'
ASCIIDOC git-add.xml
/bin/sh: 2: asciidoc: not found
make[1]: *** [git-add.xml] Error 127
make[1]: Leaving directory `/home/pawel/git/git-1.8.4.2/Documentation'
make: *** [man] Error 2
root@debian:/home/pawel# hcitool scan
Scanning ...
20:00:00:00:0D:20 Bluetooth 3.0 Keyboard
root@debian:/home/pawel#
pawel@debian:~/gitDirectory/gitInit$ git init
Initialized empty Git repository in /home/pawel/gitDirectory/gitInit/.git/
pawel@debian:~/gitDirectory/gitInit$ git branch
pawel@debian:~/gitDirectory/gitInit$