Skip to content

Instantly share code, notes, and snippets.

View vibhanshuc's full-sized avatar

Vibhanshu Chaturvedi vibhanshuc

View GitHub Profile
@Slauta
Slauta / .gitlab-ci
Last active March 18, 2024 16:53
electron-updater from private repo gitlab.com
variables:
VERSION_ID: '1.0.$CI_PIPELINE_ID'
stages:
- build
build:
image: slauta93/electron-builder-win
stage: build
artifacts:
@iffy
iffy / .gitignore
Last active July 1, 2024 07:00
Example using electron-updater with `generic` provider.
node_modules
dist/
yarn.lock
wwwroot
@kodekracker
kodekracker / tour-go-lang.go
Created November 19, 2016 20:34
Learn Go lang (https://golang.org/) in one file
// every go program is package
package main
// factored import modules
import (
"fmt"
"time"
"runtime"
"math"
// last name become package name mostly
@jeroenransijn
jeroenransijn / responsive-rem.css
Last active February 20, 2020 19:01
Hacking CSS rem into a responsive unit
/**
* Responsive rem hack
* ---
* Makes the `rem` unit behave like a dynamic value based on the viewport, with a max width.
* This makes it easy to apply dynamic values to margin and paddings.
* warning, `rem` becomes useless for font-sizes.
*
* Usage:
*
* .vertical-spacing {
@mpj
mpj / classless.md
Last active November 13, 2023 16:34

The future is here: Classless object-oriented programming in JavaScript.

Douglas Crockford, author of JavaScript: The Good parts, recently gave a talk called The Better Parts, where he demonstrates how he creates objects in JavaScript nowadays. He doesn't call his approach anything, but I will refer to it as Crockford Classless.

Crockford Classless is completely free of class, new, this, prototype and even Crockfords own invention Object.create.

I think it's really, really sleek, and this is what it looks like:

function dog(spec) {