Skip to content

Instantly share code, notes, and snippets.

View vinicius5581's full-sized avatar
:octocat:
Chilling

Vinicius Santana vinicius5581

:octocat:
Chilling
View GitHub Profile
//------------------------------------------
//- Model ----------------------------------
// The model is abstract and has no knowledge of the presentation layer.
var Product = Backbone.Model.extend({
initialize: function(){
this.set({price : 0, pricePlusTax : 0});
this.on("change:price", function(){
this.set({pricePlusTax: this.get('price') * 1.2})
})
@vinicius5581
vinicius5581 / LICENSE
Last active August 29, 2015 14:27 — forked from ourmaninamsterdam/LICENSE
Arrayzing - The JavaScript array cheatsheet
The MIT License (MIT)
Copyright (c) 2015 Justin Perry
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
@vinicius5581
vinicius5581 / JavaScriptStringMethods.html
Last active April 12, 2016 08:42 — forked from anonymous/index.html
String Methods - JS Bin// source https://jsbin.com/coruros
<!DOCTYPE html>
<html>
<head>
<meta name="String Methods" content="JavaScript - String Methods">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Sring Methods - JS Bin</title>
<script src="jsbin.coruros.js">
</head>
<body>
@vinicius5581
vinicius5581 / index.html
Created April 12, 2016 08:41 — forked from anonymous/index.html
Sring Methods - JS Bin // source https://jsbin.com/coruros
<!DOCTYPE html>
<html>
<head>
<meta name="String Methods" content="JavaScript - String Methods">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Sring Methods - JS Bin</title>
</head>
<body>
@vinicius5581
vinicius5581 / JavaScriptArraMethods.html
Last active April 12, 2016 08:44 — forked from anonymous/index.html
JavaScript - Array Methods - JS Bin// source https://jsbin.com/holovu
<!DOCTYPE html>
<html>
<head>
<meta name="Array Methods" content="JavaScript - Array Methods">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JavaScript - Array Methods - JS Bin</title>
<script src="jsbin.holovu.js"/>
</head>
@vinicius5581
vinicius5581 / bash-cheatsheet.sh
Created November 11, 2016 18:23 — forked from LeCoupa/bash-cheatsheet.sh
Bash CheatSheet for UNIX Systems
#!/bin/bash
#####################################################
# Name: Bash CheatSheet for Mac OSX
#
# A little overlook of the Bash basics
#
# Usage:
#
# Author: J. Le Coupanec
# Date: 2014/11/04
# update your local master branch
git checkout master
git pull --rebase
# never do any work on master branch
# create & switch to new branch instead
git checkout -b my_branch
# rebase 'my_branch' onto master
git checkout my_branch
@vinicius5581
vinicius5581 / The Technical Interview Cheat Sheet.md
Created September 28, 2017 17:02 — forked from tsiege/The Technical Interview Cheat Sheet.md
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.

Studying for a Tech Interview Sucks, so Here's a Cheat Sheet to Help

This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.

Data Structure Basics

###Array ####Definition:

  • Stores data elements based on an sequential, most commonly 0 based, index.
  • Based on tuples from set theory.
@vinicius5581
vinicius5581 / vanilla-js-cheatsheet.md
Created October 10, 2017 01:31 — forked from thegitfather/vanilla-js-cheatsheet.md
Vanilla JavaScript Quick Reference / Cheatsheet

#HTML presentation tools

There are many HTML presentation tools and they are all created for slightly different reasons. Here's an overview. Please let me know if I forgot any.

##CSSS

CSS-based SlideShow System