Skip to content

Instantly share code, notes, and snippets.

@itsvicsoto
itsvicsoto / JSFUN.md
Last active August 29, 2015 14:18 — forked from azat-co/JSFUN.md

JS FUNdamentals

If it's not fun, it's not JavaScript.

Expressiveness

Programming languages like BASIC, Python, C has boring machine-like nature which requires developers to write extra code that's not directly related to the solution itself. Think about line numbers in BASIC or interfaces, classes and patterns in Java.

On the other hand JavaScript inherits the best traits of pure mathematics, LISP, C# which lead to a great deal of expressiveness (and fun!).

$(document).on('scroll', function(e) {
var $documentHeight = $(this).height();
var $currentScrollOffset = $(this).scrollTop() + $(window).height(); // Scroll Top + the current window height
var distanceToBottom = $documentHeight - $currentScrollOffset;
var offsetEventTrigger = 100;
console.log('$documentHeight', $documentHeight);
console.log('$currentScrollOffset', $currentScrollOffset);
console.log('Distance to bottom of document : ', distanceToBottom);
@itsvicsoto
itsvicsoto / review.md
Created January 18, 2016 09:11 — forked from thomastheyoung/review.md
Javascript Templates Comparison: Hogan, dust, doT, underscore

JavaScript Templates Engines

A quick comparison/ benchmark between Hogan, Dust, doT and underscore

Presentation and Readability

Hogan.js

Developed by Twitter (same team as Bootstrap), use exactly the same syntax as Mustache, but more performant and more stuff available server side.

My name is {{ name }}

@itsvicsoto
itsvicsoto / AWS-config.md
Created March 9, 2016 10:34
Fucking Yes! AWS setup for Wordpress Server

Fucking Yes! AWS setup for Awesome Fast Wordpress Server

Ramblings and notes of my experiments with AWS which I will later turn into more coherent instructions.

Sooo... I'm about to be released into the wild as a free roaming web developer. I won't have the company hosting anymore and it's damn well about time I got my own shit sorted. After a little reading I have decided to give Amazon Web Services a try. So far I am loving it.

I have oooooooodles of control. It's super nerdy and more importantly, it's super fast. Seriously - I had fun.

When I first set this up i tried following some third party tutorials to get a wordpress server setup and running on Amazon Web Services. After some trial and error I found the proper documentation and everything when much more smoothly (I know right)! The AWS docs are very detailed and easy to follow.

@itsvicsoto
itsvicsoto / History|-10e9fe1b|entries.json
Last active September 15, 2022 07:40
My Visual Studio Code
{"version":1,"resource":"file:///Users/itsvicsoto/Projects/sleek/sleek-back/logs/camunda-auto-circulate-documents.log","entries":[{"id":"nQ8J.log","timestamp":1655878025873},{"id":"QLkA.log","timestamp":1660705537011},{"id":"kG73.log","timestamp":1660706763630},{"id":"y5qR.log","timestamp":1660707069590},{"id":"munE.log","timestamp":1660707149722},{"id":"OGKf.log","timestamp":1660708032195},{"id":"lTtN.log","timestamp":1660708078385},{"id":"5frO.log","timestamp":1660708317587},{"id":"mqVb.log","timestamp":1660708593025},{"id":"FJbV.log","timestamp":1660708906983},{"id":"a7Ed.log","timestamp":1660729251434},{"id":"pR1s.log","timestamp":1660788319964},{"id":"pnHr.log","timestamp":1660788658427},{"id":"vhsW.log","timestamp":1662699196052},{"id":"7ys6.log","timestamp":1662699606000},{"id":"ljyg.log","timestamp":1662700357344},{"id":"d0ep.log","timestamp":1662700685512},{"id":"gm1i.log","timestamp":1662702753422},{"id":"6I8f.log","timestamp":1662704279777}]}