Skip to content

Instantly share code, notes, and snippets.

Avatar

Alexandru Dragos lostandfownd

View GitHub Profile
@lostandfownd
lostandfownd / README.md
Created Nov 7, 2018 — forked from joyrexus/README.md
Vanilla JS equivalents of jQuery methods
View README.md

Sans jQuery

Events

// jQuery
$(document).ready(function() {
  // code
})
@lostandfownd
lostandfownd / samplerest.js
Created Jun 28, 2018 — forked from joshbirk/samplerest.js
Sample of using passport w/ mult strategies
View samplerest.js
var fs = require("fs")
var ssl_options = {
key: fs.readFileSync('privatekey.pem'),
cert: fs.readFileSync('certificate.pem')
};
var port = process.env.PORT || 3000;
var express = require('express');
var ejs = require('ejs');
var passport = require('passport')
View _brightness.scss
// Brightness math based on:
// http://www.nbdtech.com/Blog/archive/2008/04/27/Calculating-the-Perceived-Brightness-of-a-Color.aspx
$red-magic-number: 241;
$green-magic-number: 691;
$blue-magic-number: 68;
$brightness-divisor: $red-magic-number + $green-magic-number + $blue-magic-number;
@function brightness($color) {
// Extract color components
View frontendDevlopmentBookmarks.md
View frontendDevlopmentBookmarks.md
You can’t perform that action at this time.