Skip to content

Instantly share code, notes, and snippets.

View mojtabamarashee's full-sized avatar

seyed mojtaba marashi mojtabamarashee

View GitHub Profile
@mattratleph
mattratleph / vimdiff.md
Last active October 16, 2024 17:26 — forked from roothybrid7/vimdiff_cheet.md
vimdiff cheat sheet

vimdiff cheat sheet

##git mergetool

In the middle file (future merged file), you can navigate between conflicts with ]c and [c.

Choose which version you want to keep with :diffget //2 or :diffget //3 (the //2 and //3 are unique identifiers for the target/master copy and the merge/branch copy file names).

:diffupdate (to remove leftover spacing issues)

:only (once you’re done reviewing all conflicts, this shows only the middle/merged file)

@skynetbinary
skynetbinary / twitter_unfollow.js
Last active July 3, 2018 08:38
How to unfollow all of your twitter followers in few minutes? Here is the solution. Cheers!
/*
Steps to unfollow:
------------------
1. Load all of your twitter followers by scrolling down.
2. Run the below "Minified Version" of "unfollow.js" in browser's console.
*/
// Minified Version
$(".user-actions-follow-button.js-follow-btn.follow-button.btn").each(function(){$(this).click();});
@skynetbinary
skynetbinary / Getting Started: Android Development with Gradle (without Android Studio).md
Last active July 11, 2024 19:24
Getting Started: Android Development with Gradle (without Android Studio)

Getting Started: Android Development with Gradle (without Android Studio)

Install JDK

Open Terminal. Type javac -version and check your current JDK version. If you seem to have javac 1.7.* JDK version, you can skip this section.

  • Open Termianl.
  • Type sudo apt-get install openjdk-7-jdk.

Download Android SDK (standalone tools)

@sebkouba
sebkouba / ParentChild.es6
Created February 17, 2016 06:00
Basic example to pass values between parent and child components in React.
/**
* Basic example to pass values between parent and child components in React
* Seems to be in line with this
* http://stackoverflow.com/questions/24147331/react-the-right-way-to-pass-form-element-state-to-sibling-parent-elements
* Now I have the state in parent and child. Is that good or bad? Why would I need it in child?
* Could probably take that out
* */
class Parent extends React.Component {
constructor(props) {
super(props);
@brauliodiez
brauliodiez / readme.md
Last active September 5, 2024 14:16
lodash/fp set and flow

lodash/fp - set / flow

In this gist we are going to learn about basic goodies that we get from the library lodash/fp (fp stands for functional programming, great for ensuring immutability).We'll learn just by doing (step by step guided sample + codepens).

We'll cover lodash set and flow functions

Steps

  • We'll use codepen as our playground, navigate to this page: