Skip to content

Instantly share code, notes, and snippets.

View Hesamedin's full-sized avatar
🏠
Busy Busy Busy

Hesam Hesamedin

🏠
Busy Busy Busy
View GitHub Profile
@Hesamedin
Hesamedin / App.js
Created August 9, 2017 18:34
React-native project setup
import React, { Component } from 'react';
import { Text, View } from "react-native";
import { Provider } from 'react-redux';
import { createStore } from 'redux';
import reducer from './reducers/'
class App extends Component {
render() {
return (
<Provider store={createStore(reducer)}>
@Hesamedin
Hesamedin / Comment.java
Last active March 23, 2016 00:02
Factory Design pattern for Storing Object in DB
public class Comment {
long commentId;
String message;
// Other setter/getter methodes
...
}
@Hesamedin
Hesamedin / android.md
Last active August 29, 2015 14:25 — forked from geekygecko/android.md
Android Cheat Sheet

Android Cheat Sheet

Developer tips

Record a video of your app

Developer options -> Check show touches
adb shell screenrecord /sdcard/video.mp4
adb pull /sdcard/video.mp4
@Hesamedin
Hesamedin / .bash_profile
Last active August 4, 2017 20:52
Colorful Commandline for Git
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac