Skip to content

Instantly share code, notes, and snippets.

Working from home

Hesam Hesamedin

Working from home
Block or report user

Report or block Hesamedin

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
Hesamedin / build.gradle
Last active Nov 10, 2019
KTLint integration
View build.gradle
apply plugin: ''
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlin-kapt'
apply plugin: 'io.fabric'
apply from: '../gradle/afsTasks.gradle' <========
android {
compileSdkVersion 28
Hesamedin / hmac_generator.kt
Last active Apr 1, 2019
HMAC Generator based on path(URL), expiry time and reuse times
View hmac_generator.kt
package hmac
import org.apache.commons.codec.binary.Base64
import java.time.LocalDateTime
import java.time.OffsetDateTime
import javax.crypto.Mac
import javax.crypto.spec.SecretKeySpec
import java.util.HashMap
Hesamedin / App.js
Created Aug 9, 2017
React-native project setup
View App.js
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 /
Last active Mar 23, 2016
Factory Design pattern for Storing Object in DB
public class Comment {
long commentId;
String message;
// Other setter/getter methodes
Hesamedin /
Last active Aug 29, 2015 — forked from geekygecko/
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 / .bash_profile
Last active Aug 4, 2017
Colorful Commandline for Git
View .bash_profile
# ~/.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;;
You can’t perform that action at this time.