Skip to content

Instantly share code, notes, and snippets.

View joancaron's full-sized avatar
:octocat:
¯\_(ツ)_/¯

Joan Caron joancaron

:octocat:
¯\_(ツ)_/¯
View GitHub Profile
@joancaron
joancaron / README.md
Created September 30, 2017 15:19 — forked from brennanMKE/README.md
React Native on macOS Sierra

React Native Trouble

Updating to macOS Sierra is causing trouble with React Native due to some of the Node.js and system utilities it uses. Specifically the watch utility fails due to a limit on the number of files which can be opened at a time.

The following command shows the current limit.

launchctl limit maxfiles
@joancaron
joancaron / gist:8436664
Created January 15, 2014 13:55
How to generate clean url slug in C#
public static string ToUrlSlug(string value){
//First to lower case
value = value.ToLowerInvariant();
//Remove all accents
var bytes = Encoding.GetEncoding("Cyrillic").GetBytes(value);
value = Encoding.ASCII.GetString(bytes);