Skip to content

Instantly share code, notes, and snippets.

View AngelMunoz's full-sized avatar
🏠
Working from home

Angel D. Munoz AngelMunoz

🏠
Working from home
View GitHub Profile
@westonplatter
westonplatter / HomeController.js
Created November 20, 2013 07:16
stream MP3 through SailsJS framework
/**
* HomeController
*
* @module :: Controller
* @description :: Contains logic for handling requests.
*/
module.exports = {
index: function (req,res) {
@olohmann
olohmann / navigator.js
Created June 17, 2014 14:17
navigator.js from Visual Studio Windows Store App templates
(function () {
"use strict";
var nav = WinJS.Navigation;
WinJS.Namespace.define("Application", {
PageControlNavigator: WinJS.Class.define(
// Define the constructor function for the PageControlNavigator.
function PageControlNavigator(element, options) {
this._element = element || document.createElement("div");
@morrissinger
morrissinger / application-controller.js
Created June 3, 2015 00:46
Angular 1 with ECMAScript 6, JSPM, and SystemJS
export class ApplicationController {
constructor() {
this.foo = 'bar';
}
}
@mikermcneil
mikermcneil / whats-the-big-deal.md
Last active November 5, 2022 11:03
What's the big deal with Node.js and `await`?

What's the big deal with Node.js and await?

So I really don't like most new things. The only reason I even got involved with Node.js early on was because of its sweeping promise: "One language, spoken by developers across the world." By consolidating parallel efforts, it would accelerate the pace of innovation, and quickly lead to more transformative and disruptive developer tools. It would create tremendous value for software businesses by unlocking efficiencies in the hiring and implementation process. And best of all everyone would waste less time on boring stuff.

Still, there was a problem. While it's true most developers have touched some JavaScript callbacks up there in browserland, in the bowels of the application server, there tends to be a lot more asynchronous things going on. And that causes all sorts of issues. All those callbacks also make for a way steeper

@StefanNieuwenhuis
StefanNieuwenhuis / reactiveconf-framework-independent-components-library-with-StencilJS.md
Last active September 23, 2020 12:55
How to build a framework independent component library with StencilJS

How to build a framework independent component library with StencilJS

This is a proposal for a lightning talk at Reactive Conf. Please 🌟 this gist to push the proposal! If you're on your phone, please request the 🖥 desktop site to star this gist 😇 #ReactiveConf

@dcoles
dcoles / windows-nfs.rs
Created September 7, 2019 07:07
Example of NFC using Windows Proximity APIs in Rust
// Example of NFC using Windows Proximity APIs
// Tested using Sony RC-S380 (make sure you enable NFP in the driver).
use winrt::*; // import various helper types
use winrt::windows::foundation;
use winrt::windows::networking::proximity;
use std::{thread, time};
const URL: &str = "https://dcoles.net";
@bburky
bburky / Python WinRT Image Capture.ipynb
Created May 3, 2020 00:20
Python WinRT Image Capture (and Focus Stacking)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@dend
dend / toast.ps1
Last active June 7, 2024 08:22
Toast Notification in PowerShell
function Show-Notification {
[cmdletbinding()]
Param (
[string]
$ToastTitle,
[string]
[parameter(ValueFromPipeline)]
$ToastText
)
@CallumVass
CallumVass / Result.ts
Created September 17, 2020 14:22
TS/F#
export interface ErrorValue {
ErrorValue: string;
}
export interface ResultValue<T> {
ResultValue: T;
}
export interface ErrorResult {
Case: "Error";
@s0kil
s0kil / Program.fs
Created November 19, 2020 23:49
Avalonia.FuncUI with Elmish and Live.Avalonia
namespace MyGreatApp
open Elmish
open Avalonia
open Live.Avalonia
open Avalonia.Input
open Avalonia.FuncUI
open Avalonia.Controls
open Avalonia.FuncUI.Elmish
open Avalonia.FuncUI.Components.Hosts