Skip to content

Instantly share code, notes, and snippets.

@Giwan
Giwan / macos_webdev_setup.md
Last active March 2, 2020 10:38
MacOS Web Development setup

MacOS Web Developer setup

Initial configurations

Speedup the keyboard (TBD)

Applications

@Giwan
Giwan / index.js
Created February 1, 2018 20:55
NodeJS Express start
const express = require("express");
const app = express();
const port = process.env.PORT || 3000;
// respond with something
app.get("/", (req, res) => {
res.send("hello world");
});
app.listen(port, () => {
@Giwan
Giwan / gist:78e61c5be4441f7402719104069dc9d2
Created November 6, 2016 13:30 — forked from paulallies/gist:0052fab554b14bbfa3ef
Remove node_modules from git repo
#add 'node_modules' to .gitignore file
git rm -r --cached node_modules
git commit -m 'Remove the now ignored directory node_modules'
git push origin master
@Giwan
Giwan / blti-launch.php
Created October 19, 2016 11:36 — forked from matthanger/blti-launch.php
Sample code for Basic LTI Consumer in PHP
<?php
# ------------------------------
# START CONFIGURATION SECTION
#
$launch_url = "http://www.imsglobal.org/developers/BLTI/tool.php";
$key = "12345";
$secret = "secret";
$launch_data = array(
@Giwan
Giwan / readability.js
Created March 15, 2016 10:41 — forked from jakedahn/readability.js
Readability.js
/*jslint undef: true, nomen: true, eqeqeq: true, plusplus: true, newcap: true, immed: true, browser: true, devel: true, passfail: false */
/*global window: false, readConvertLinksToFootnotes: false, readStyle: false, readSize: false, readMargin: false, Typekit: false, ActiveXObject: false */
var dbg = (typeof console !== 'undefined') ? function(s) {
console.log("Readability: " + s);
} : function() {};
/*
* Readability. An Arc90 Lab Experiment.
* Website: http://lab.arc90.com/experiments/readability