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 android.animation.Animator; | |
import android.animation.ObjectAnimator; | |
import android.support.v7.widget.RecyclerView; | |
import android.view.View; | |
public class MyAlphaInAnimationAdapter extends MyAnimationAdapter { | |
private static final float DEFAULT_ALPHA_FROM = 0.0F; | |
private final float mFrom; | |
private RecyclerView recyclerView; |
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 org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; | |
public class InitActivity { | |
public InitActivity() { | |
logger.debug("Activity loading...."); | |
} | |
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
from http.server import BaseHTTPRequestHandler, HTTPServer | |
from urllib.parse import urlparse | |
import subprocess | |
class GetHandler(BaseHTTPRequestHandler): | |
ls_l_cmd = ['ls','-l'] | |
def do_GET(self): | |
parsed_path = urlparse(self.path) |
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
apply plugin: 'com.android.application' | |
apply from: 'nonnull.gradle' | |
android { | |
compileSdkVersion 24 | |
buildToolsVersion "24.0.2" | |
[...] | |
} |
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
# author: | |
# @Bartosz Kosarzycki | |
# | |
sudo apt-get install npm | |
sudo npm install -g react-native-cli | |
sudo ln -s /usr/bin/nodejs /usr/bin/node | |
cd /home/user/your/project/path | |
react-native init AwesomeProject | |
cd AwesomeProject |
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
#save this file under: ~/.karabiner.d/configuration/karabiner.json | |
{ | |
"profiles": [ | |
{ | |
"name": "Default profile", | |
"selected": true, | |
"simple_modifications": { | |
"right_command": "right_option", | |
"right_option": "right_command" |
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
Prerequisite: Install docker | |
> docker version | |
Client: | |
Version: 1.8.2 | |
API version: 1.20 | |
Go version: go1.4.2 | |
Git commit: 0a8c2e3 | |
Built: Thu Sep 10 19:19:00 UTC 2015 | |
OS/Arch: linux/amd64 |
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
public class ExplodeActivity extends Activity { | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
setContentView(R.layout.activity_explode); | |
} | |
} |
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
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
package="com.your.application.id"> | |
<application | |
android:label="@string/app_name" | |
android:icon="@mipmap/ic_launcher" | |
android:theme="@style/Theme.AppCompat.Light.DarkActionBar"> | |
<activity | |
//change Activity class to generated class from AA |
NewerOlder