As configured in my dotfiles.
start new:
tmux
start new with session name:
defmodule BeExercise.DatabaseSeeder do | |
alias BeExercise.Repo | |
alias BeExercise.Accounts | |
alias BeExercise.Accounts.User | |
alias BeExercise.Finances | |
alias Faker.{Person, Internet} | |
alias Ecto.Multi | |
@currencies Finances.get_current_known_currencies() |
javascript:(function(){ | |
document.getElementById("ContentWallHardsell").remove(); | |
document.getElementsByTagName("body")[0].style.overflow = "scroll"; | |
let style = document.createElement('style'); | |
style.innerHTML = ` | |
#LoginModal { | |
display: none!important; | |
} | |
`; | |
document.head.appendChild(style); |
SPC | |
SPC: find file | |
, switch buffer | |
. browse files | |
: MX | |
; EX | |
< switch buffer | |
` eval | |
u universal arg | |
x pop up scratch |
As configured in my dotfiles.
start new:
tmux
start new with session name:
/** | |
* Return all permutations of given string. | |
* | |
* @example | |
* permute('abc'); | |
* //=> ['abc', 'acb', 'bac', 'bca', 'cab', 'cba'] | |
* @param str {String} | |
* @return {Array} | |
*/ | |
function permute(str) { |
... | |
#import "RCTLog.h" | |
... | |
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions | |
{ | |
RCTSetLogThreshold(RCTLogLevelInfo); | |
... |
This document details some tips and tricks for creating redux containers. Specifically, this document is looking at the mapDispatchToProps
argument of the connect
function from [react-redux][react-redux]. There are many ways to write the same thing in redux. This gist covers the various forms that mapDispatchToProps
can take.
This method avoids merge conflicts if you have periodically pulled master into your branch. It also gives you the opportunity to squash into more than 1 commit, or to re-arrange your code into completely different commits (e.g. if you ended up working on three different features but the commits were not consecutive).
Note: You cannot use this method if you intend to open a pull request to merge your feature branch. This method requires committing directly to master.
Switch to the master branch and make sure you are up to date: