Skip to content

Instantly share code, notes, and snippets.

View JoseGonzalez321's full-sized avatar
💭
GraphQL is interesting

Jose Gonzalez JoseGonzalez321

💭
GraphQL is interesting
View GitHub Profile
@jherax
jherax / configure.md
Last active November 6, 2024 03:59
VS Code: Debugging with Jest

VS Code: Debugging Jest

Sometimes, debugging with console.log is not enough to find out what is happening in the code, as console.log prints only plain objects but neither functions nor objects with circular references. Besides, it's possible you may need to know the context and flow of the code.

Read more about debugging with VS Code in VS Code: Debugging.

@jamessdixon
jamessdixon / Age and Sex Analysis Of Microsoft USA MVPs
Created December 6, 2016 03:03
Age and Sex Analysis Of Microsoft USA MVPs
#r "WindowsBase.dll"
#r "System.Net.Http.dll"
#r "PresentationCore.dll"
#r "../packages/FSharp.Data.2.3.2/lib/net40/FSharp.Data.dll"
open System
open System.IO
open System.Web
open System.Net
public interface IMaybe<T>
{
IMaybe<U> Map<U>(Func<T, U> func);
IMaybe<U> Bind<U>(Func<T, IMaybe<U>> func);
IMaybe<T> Filter(Func<T, bool> predicate);
IMaybe<T> Do(Action<T> just, Action nothing);
IMaybe<U> Do(Func<T, U> just, Action<U> nothing);
}
class Just<T> : IMaybe<T>
@nickytonline
nickytonline / cobalt2_agnoster_theme.jpg
Last active November 7, 2020 09:29
My VS Code Setup
cobalt2_agnoster_theme.jpg
@mpj
mpj / example1.js
Last active January 14, 2019 16:03
Examples for video "Closures - Part 5 of Functional Programming in JavaScript" (http://youtu.be/CQqwU2Ixu-U)
var me = 'Bruce Wayne'
function greetMe() {
console.log('Hello, ' + me + '!')
}
greetMe() // Hello, Bruce Wayne!