Skip to content

Instantly share code, notes, and snippets.

View AimeeKnight's full-sized avatar
👩‍💻
MLOpsing

Aimee Knight AimeeKnight

👩‍💻
MLOpsing
View GitHub Profile
@thegitfather
thegitfather / vanilla-js-cheatsheet.md
Last active April 7, 2025 02:00
Vanilla JavaScript Quick Reference / Cheatsheet
@ericelliott
ericelliott / essential-javascript-links.md
Last active March 22, 2025 17:28
Essential JavaScript Links
@prakhar1989
prakhar1989 / richhickey.md
Last active January 30, 2025 06:39 — forked from stijlist/gist:bb932fb93e22fe6260b2
richhickey.md

Rich Hickey on becoming a better developer

Rich Hickey • 3 years ago

Sorry, I have to disagree with the entire premise here.

A wide variety of experiences might lead to well-roundedness, but not to greatness, nor even goodness. By constantly switching from one thing to another you are always reaching above your comfort zone, yes, but doing so by resetting your skill and knowledge level to zero.

Mastery comes from a combination of at least several of the following:

@staltz
staltz / introrx.md
Last active April 21, 2025 04:15
The introduction to Reactive Programming you've been missing
@tsiege
tsiege / The Technical Interview Cheat Sheet.md
Last active April 11, 2025 17:09
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

ANNOUNCEMENT

I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!






\

exports.db = function(fn){
MongoClient.connect(mongoUrl, function(err, db) {
if(err){throw err;}
global.nss = {};
global.nss.db = db;
global.nss.db.collection('listings').ensureIndex({'coordinates':'2dsphere'}, function(err, indexName){
console.log('Connected to MongoDB');
fn();
});
});
function initMap(lat, lng, zoom){
var mapOptions = {center: new google.maps.LatLng(lat, lng), zoom: zoom, mapTypeId: google.maps.MapTypeId.ROADMAP};
map = new google.maps.Map(document.getElementById('map'), mapOptions);
}
function addMarker(location){
var position = new google.maps.LatLng(location.lat, location.lng);
var marker = new google.maps.Marker({map:map, position:position, title:location.address});
markers.push(marker);
}
9 var fs = require('fs');
10 var request = require('request');
11 var url = 'https://api:[email protected]/v2/YOURDOMAIN/messages';
12 var post = request.post(url, function(err, response, body){
13 res.send({});
14 });
15 var form = post.form();
16 form.append('from', '[email protected]');
17 form.append('to', '[email protected]');
18 form.append('subject', 'hey from node.js');
app.use(express.cookieParser());
app.use(express.session({
store : new RedisStore({host: 'localhost', port: 6379}),
secret: 'change-this-to-a-super-secret-message',
cookie: { maxAge: 60 * 60 * 1000 }
}));