Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

William S Rodriguez willbuildapps

🏠
Working from home
View GitHub Profile
@willbuildapps
willbuildapps / gist:824ccad68984862c26cf8b54ca7666c7
Last active Sep 1, 2020
MacOs Sierra nom error "-bash : npm: command not found"
View gist:824ccad68984862c26cf8b54ca7666c7
sudo brew uninstall node
brew update
brew upgrade
brew cleanup
brew install node
sudo chown -R username /usr/local
brew link --overwrite node
sudo brew postinstall node
@willbuildapps
willbuildapps / index.php
Created Feb 10, 2016
Como publicar um Web App construído com PHP no Azure App Service partindo do OSX
View index.php
<!DOCTYPE html>
<html>
<head>
<title>Partiu Azure, PHP</title>
</head>
<body>
<h1>Partiu Azure, PHP</h1>
<?php
@willbuildapps
willbuildapps / package.json
Created Feb 9, 2016
Como publicar um Web App construído com Node.JS no Azure App Service partindo do OSX
View package.json
{
"name": "Partiu Azure",
"version": "0.0.1",
"description": "",
"main": "./server.js",
"engines": { "node": ">= 0.6.0" }
}
@willbuildapps
willbuildapps / simpleExample.cs
Created Jan 25, 2016
Multiple HttpPost method in Web API controller
View simpleExample.cs
public class MyController : ApiController
{
[HttpPost]
[ActionName("myfirstroute")]
public string MyFirstPostMethod(JObject userData)
{
// do your thing
}
[HttpPost]
View gist:04bf9f7803e9da66ee84
Verifying that +williamsrz is my blockchain ID. https://onename.com/williamsrz
@willbuildapps
willbuildapps / MasterDetailPageDemo.xaml
Created Aug 3, 2015
Xamarin Forms MasterDetalPage XAML
View MasterDetailPageDemo.xaml
<MasterDetailPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:view="clr-namespace:DemoApp.Views;assembly=DemoApp"
x:Class="DemoApp.Views.RootPage" Title="MasterDetailPage Demo">
<MasterDetailPage.Master>
<view:MainMenu />
</MasterDetailPage.Master>
<MasterDetailPage.Detail>
<view:HomePage />
</MasterDetailPage.Detail>
@willbuildapps
willbuildapps / EnumerableExtensions.cs
Last active Aug 29, 2015
A fast ToList().ForEach extensions to PCL
View EnumerableExtensions.cs
public static class EnumerableExtensions
{
public static void ForEach<T>(this IEnumerable<T> @this, Action<T> action)
{
foreach (T item in @this)
{
action(item);
}
}
}