Key/Command | Description |
---|---|
Tab | Auto-complete files and folder names |
Ctrl + A | Go to the beginning of the line you are currently typing on |
Ctrl + E | Go to the end of the line you are currently typing on |
Ctrl + U | Clear the line before the cursor |
Ctrl + K | Clear the line after the cursor |
Ctrl + W | Delete the word before the cursor |
Ctrl + T | Swap the last two characters before the cursor |
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
class CustomOperationBlock: Operation{ | |
private var data: Any! | |
init(_ data: Any){ | |
self.data = data | |
} | |
override func main() { | |
doWork() |
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
let operation = BlockOperation.init() | |
let operationBlock1 = { | |
print("I am operation Block One") | |
} | |
let operationBlock2 = { | |
print("I am operation Block Two") | |
} | |
operation.addExecutionBlock { |
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
let operation = BlockOperation.init() | |
let operationBlock = { | |
print("I am operation Block") | |
} | |
operation.addExecutionBlock { | |
operationBlock() | |
} | |
operation.start() |
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
import android.app.Activity; | |
import android.content.Context; | |
import android.content.Intent; | |
import android.support.v4.app.FragmentActivity; | |
import com.apptcom.external.logging.Logger; | |
import com.apptcom.external.model.UserSocialModel; | |
import com.google.android.gms.auth.api.Auth; | |
import com.google.android.gms.auth.api.signin.GoogleSignInAccount; | |
import com.google.android.gms.auth.api.signin.GoogleSignInOptions; |
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
import android.graphics.Bitmap; | |
import android.graphics.drawable.BitmapDrawable; | |
import android.graphics.drawable.Drawable; | |
import java.io.ByteArrayOutputStream; | |
/** | |
* Sketch Project Studio | |
* Created by Angga on 12/04/2016 14.27. | |
*/ | |
public class AppHelper { |
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
Button Background Selector insdide drawble folder ---------------------------------------------- | |
<?xml version="1.0" encoding="utf-8"?> | |
<selector xmlns:android="http://schemas.android.com/apk/res/android"> | |
<item android:drawable="@drawable/numpad_button_bg_selected" android:state_selected="true"></item> | |
<item android:drawable="@drawable/numpad_button_bg_pressed" android:state_pressed="true"></item> | |
<item android:drawable="@drawable/numpad_button_bg_normal"></item> | |
</selector> |
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
import java.io.*; | |
interface Shape | |
{ | |
public void draw(); | |
} | |
class Square implements Shape | |
{ | |
@Override |
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
<VirtualHost *:80> | |
ServerName myapp.localhost.com | |
DocumentRoot "/home/vagrant/projects/myapp/public" | |
<Directory "/home/vagrant/projects/myapp/public"> | |
AllowOverride all | |
</Directory> | |
</VirtualHost> |
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
public class Generics { | |
static class Foo<T, R> { | |
public void bar(T arg) { | |
System.out.println("T " + arg); | |
} | |
public void bar(R arg) { | |
System.out.println("R " + arg); | |
} | |
} |