Skip to content

Instantly share code, notes, and snippets.

View benjaminreid's full-sized avatar
💭
🦕 are my jam

Benjamin Reid benjaminreid

💭
🦕 are my jam
View GitHub Profile
@gagarine
gagarine / fish_install.md
Last active November 10, 2024 01:21
Install fish shell on macOS Mojave with brew

Installing Fish shell on MacOS (Intel and M1) using brew

Fish is a smart and user-friendly command line (like bash or zsh). This is how you can instal Fish on MacOS and make your default shell.

Note that you need the https://brew.sh/ package manager installed on your machine.

Install Fish

brew install fish

@JonnyBurger
JonnyBurger / UPGRADING.md
Last active February 20, 2019 04:08
Tips for upgrading React Native (especially >0.45)

Here are a few tips if you have trouble upgrading versions of React Native.

Upgrading dependencies for React 16 ([email protected] and above)

[email protected] uses React 16, while previous versions use React 15. Be aware that React 16 is still in Alpha, so unless you need features in React Native 0.45 or above, consider sticking to v0.44 for now.

If you upgrade, several dependencies need to be updated manually:

  • react should be on 16.0.0-alpha.12
@benjaminreid
benjaminreid / remove-no-js.js
Created January 24, 2017 13:22
Removes the "no-js" class and replaces with "js" without altering other classes
(function(H){H.className=H.className.replace(/\bno-js\b/,'js')})(document.documentElement)
@benvium
benvium / react-native-ios-splash.m
Created February 23, 2016 10:00
React Native iOS Smooth Splash Screen (when using LaunchScreen.xib)
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
...
...
...
RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation
moduleName:@"MyAwesomeApp"
initialProperties:@{}
launchOptions:launchOptions];
@daviddarnes
daviddarnes / command-line.md
Last active May 28, 2017 19:35
Command line setup for new machine
  1. Install oh my zsh

  2. Install brew

  3. Install with brew install rbenv

  4. Setup rbenv

  • touch ~/.zshrc
  • open ~/.zshrc
@photonstorm
photonstorm / gist:5300530
Created April 3, 2013 11:49
array shuffle
function shuffleArray(array) {
for (var i = array.length - 1; i > 0; i--) {
var j = Math.floor(Math.random() * (i + 1));
var temp = array[i];
array[i] = array[j];
array[j] = temp;
}
return array;
@erikreagan
erikreagan / mac-apps.md
Created August 4, 2012 19:18
Mac developer must-haves

Mac web developer apps

This gist's comment stream is a collection of webdev apps for OS X. Feel free to add links to apps you like, just make sure you add some context to what it does — either from the creator's website or your own thoughts.

— Erik

@twosixcode
twosixcode / gist:1988097
Created March 6, 2012 18:40
Make "Paste and Indent" the default paste in Sublime Text 2
// swap the keybindings for paste and paste_and_indent
{ "keys": ["super+v"], "command": "paste_and_indent" },
{ "keys": ["super+shift+v"], "command": "paste" }
@dalethedeveloper
dalethedeveloper / gist:1846552
Created February 16, 2012 17:18
Techniques for Anti-Aliasing @font-face on Windows

#Techniques for Anti-Aliasing @font-face on Windows

It all started with an email from a client: Do these fonts look funky to you? The title is prickly.

The font in question was Port Lligat Sans from Google Web Fonts.

The "prickly" is aliasing caused by lack of hinting

@chrismytton
chrismytton / 01_basic.js
Created January 14, 2012 14:51
Bookmarklet templates for #rusichackday
/**
* Basic bookmarklet template.
*
* Change the `iframeSrc` variable to point to your space's new idea
* page. You can adjust the iframe styles and position using the
* `iframeStyle` variable.
*
* For turning this script into a bookmarklet, you should probably take
* a look at https://gist.github.com/1856012.
*/