Skip to content

Instantly share code, notes, and snippets.

View MarvinJWendt's full-sized avatar
😀
Vibing

Marvin Wendt MarvinJWendt

😀
Vibing
View GitHub Profile
@MarvinJWendt
MarvinJWendt / javascript_chain_functions.js
Created October 8, 2019 23:23
Chaining JavaScript Functions
const log = console.log
const is = (x) => {
return {
plus: (plus) => {
return is(x + plus)
},
ten: () => {
return (x === 10)
},

Keybase proof

I hereby claim:

  • I am marvinjwendt on github.
  • I am marvinjwendt (https://keybase.io/marvinjwendt) on keybase.
  • I have a public key ASASY1PSBj7Uk9FkLOGmx6OttR4029HTUmwlKyxL6ip_wAo

To claim this, I am signing this object:

function is(x) {
return {
plus: (plus) => {
return is(x + plus)
},
minus: (minus) => {
return is(x - minus)
},
equalToTen: () => {
return (x === 10)
function is(x) {
return {
plus: (plus) => {
return is(x + plus)
},
minus: (minus) => {
return is(x - minus)
},
equalToTen: () => {
return (x === 10)
callback(
[
{ "name": "[Q] More than one question asked", "description": "It is preferred if you can post separate questions instead of combining your questions into one. That way, it helps the people answering your question and also others hunting for at least one of your questions. Thanks!"},
{ "name": "[Q] Website is "broken", no code in question, just link to site", "description": "Please add meaningful code and a problem description here. Don't just link to the site that needs fixing — otherwise, this question will lose any value to future visitors once the problem is solved or if the site you're linking to is inaccessible. Posting a <a href=\"https://$SITEURL$/help/minimal-reproducible-example\">Minimal, Reproducible example (or MCVE)</a> that demonstrates your problem would help you get better answers. For more info, see <a href=\"https://meta.stackexchange.com/questions/125997/\">Something on my web site doesn't work. Can I just paste a link to it?</a> Thanks!"},
{ "name": "[Q] Needs to demonstrate

Contributor License Agreement

The following terms are used throughout this agreement:

  • You - the person or legal entity including its affiliates asked to accept this agreement. An affiliate is any entity that controls or is controlled by the legal entity, or is under common control with it.
  • Project - is an umbrella term that refers to any and all IOMED Medical Solution S.L. open source projects.
  • Contribution - any type of work that is submitted to a Project, including any modifications or additions to existing work.
  • Submitted - conveyed to a Project via a pull request, commit, issue, or any form of electronic, written, or verbal communication with IOMED Medical Solution S.L., contributors or maintainers.

1. Grant of Copyright License.

@MarvinJWendt
MarvinJWendt / Markdium-Diff.diff
Created July 12, 2021 21:22
Markdium-Hello Markdium!
public class Hello1
{
public static void Main()
{
- System.Console.WriteLine("Hello, World!");
+ System.Console.WriteLine("Rock all night long!");
}
}
@MarvinJWendt
MarvinJWendt / Markdium-TypeScript.ts
Created July 12, 2021 21:22
Markdium-Hello Markdium!
let foo = 'bar'
/**
Don't worry about the code block, it will be saved as a gist with right language format, and auto embed to your post.
**/
@MarvinJWendt
MarvinJWendt / Markdium-Go.go
Created July 12, 2021 21:31
Markdium-Hello World
package main
func main() {
os.Exit(1337)
}