Skip to content

Instantly share code, notes, and snippets.

View 37celsius's full-sized avatar

Beta Ngadiman 37celsius

View GitHub Profile
Verifying my Blockstack ID is secured with the address 146Tpo2d36h8jPyMnTzBDeWPrdK2ndEHNW https://explorer.blockstack.org/address/146Tpo2d36h8jPyMnTzBDeWPrdK2ndEHNW
@37celsius
37celsius / CS_BJS_101.md
Last active May 18, 2017 14:07
Learning Backbone JS

Anatomy of Backbone JS 1

/* Welcome to the Anatomy of Backbone.js challenges! We're going to be building a simple Appointment app for our friend, Dr. Goodparts.

So, let's get started and create an Appointment model class.
*/

// Create a model class
var Appointment = Backbone.Model.extend({});
@37celsius
37celsius / GA-WDI070201_MVC.md
Last active August 29, 2015 14:19
GA WDI 0702 Class note

Rails

Quick Demo

# FIRST STEP, Create the new app with all the folders
rails new twitter_app --database=postgresql

# SECOND STEP, Create database
rake db:create
@37celsius
37celsius / TeamTreehoue_InteractivePage_withJS.md
Last active August 29, 2015 14:19
TeamTreehouse course - Interactive Webpage with JavaScript

Creating interactive using JavaScript from the provided HTML and CSS

<!DOCTYPE html>
<html>
  <head>
    <title>Todo App</title>
    <link href='http://fonts.googleapis.com/css?family=Lato:300,400,700' rel='stylesheet' type='text/css'>
    <link rel="stylesheet" href="css/style.css" type="text/css" media="screen" charset="utf-8">    
  </head>
@37celsius
37celsius / TeamTreehouse_JS.md
Last active August 29, 2015 14:18
Treehouse Courses

JavaScript Loops, Arrays and Objects


The ReFactor Challenge

/* Improve an already existing JavaScript program by using loops and applying "DRY" programming principles.

var html = '';
//red = Math.floor(Math.random() * 256 ); Original Code
//green = Math.floor(Math.random() * 256 ); Original Code
@37celsius
37celsius / CS_JS_305.md
Last active February 14, 2019 19:50
Learning fundamentals of JavaScript 3 Starting with sublevel 5

Forest of function expression (2 REVIEW)

/* Developers for the Forest of Function Expressions Theme Park have created a function declaration named forestFright, but theyve decided not to keep the function in memory.

Convert the function from a named function declaration to an anonymous function expression and assign it to a variable called runAway.

function forestFright() {
  var toAlert = "";
  for (var i = 0; i < 5; i++) {
@37celsius
37celsius / CS_JS_201.md
Last active February 19, 2018 01:34
Learning fundamental of JavaScript 2

Labyrinth of Loops

/* In countdown.js, write a basic while loop that prints to the console all the numbers from 10 to 1 in descending order. We’ve given you a starting variable to get the wheels turning. */

// Create the variable num to 10
var num = 10;

// Create a while loop that said while num bigger than 0 do this
while(num > 0) {