Skip to content

Instantly share code, notes, and snippets.

👻
Write something..

Fatih Mert Doğancan fatihmert

👻
Write something..
Block or report user

Report or block fatihmert

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
@gaearon
gaearon / slim-redux.js
Last active Oct 19, 2019
Redux without the sanity checks in a single file. Don't use this, use normal Redux. :-)
View slim-redux.js
function mapValues(obj, fn) {
return Object.keys(obj).reduce((result, key) => {
result[key] = fn(obj[key], key);
return result;
}, {});
}
function pick(obj, fn) {
return Object.keys(obj).reduce((result, key) => {
if (fn(obj[key])) {
@wenzhixin
wenzhixin / ubuntu14.04-command-line-install-android-sdk
Last active Sep 26, 2019
Ubuntu 14.04 command line install android sdk
View ubuntu14.04-command-line-install-android-sdk
# install openjdk
sudo apt-get install openjdk-7-jdk
# download android sdk
wget http://dl.google.com/android/android-sdk_r24.2-linux.tgz
tar -xvf android-sdk_r24.2-linux.tgz
cd android-sdk-linux/tools
# install all sdk packages
@armicron
armicron / hello_world_into_file.asm
Created Oct 10, 2016
NASM x86_64 open file and write 'Hello world'
View hello_world_into_file.asm
section .text
global _start ;must be declared for linker (ld)
_start: ;tell linker entry point
mov rdi, filename
mov rsi, 0102o ;O_CREAT, man open
mov rdx, 0666o ;umode_t
mov rax, 2
syscall
You can’t perform that action at this time.