Skip to content

Instantly share code, notes, and snippets.

{
"config" : {
"results_text" : "Your Superhero Wifi Name is:",
"next_button_text" : "Next",
"prev_button_text" : "Previous",
"reset_button_text" : "Generate Another WiFi Name",
"new_name_button_text" : "New Question",
"thumbnail_size" : 150
},
"catchphrases" : [
@luisangelma
luisangelma / index.html
Created November 20, 2015 01:10
Angular to-do + $http
<!DOCTYPE html>
<html ng-app="mainApp">
<head>
<title>Todo Angular</title>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.3/angular.min.js"></script>
</head>
<body ng-controller="mainController" ng-init="getTodos()">
<div class="grid">
@luisangelma
luisangelma / main.js
Last active September 25, 2022 06:48
CLI RPG Game
// Requirement
// Readline Sync Node package
var readlineSync = require('readline-sync');
var name = readlineSync.question('Hey stranger, what is your name?: ');
var enemies = ['White Walker', 'White Orc', 'Wild Dragon'];
var wildAdventure = function() {
var self = this;
@luisangelma
luisangelma / index.html
Created August 4, 2015 00:46
Player Kills
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body ng-app="myApp" ng-controller="mainController">
<h2>Player Handle</h2>
<div ng-repeat="item in players">
@luisangelma
luisangelma / main.js
Created August 4, 2015 00:45
Anti caps
var isCaps = function(letter) {
return letter === letter.toUpperCase();
};
var antiCaps = function(str) {
if (!str && str.length <= 0) {
console.log('Please use a string');
}
@luisangelma
luisangelma / index.html
Created August 4, 2015 00:42
Angular todo list
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body ng-app="myApp" ng-controller="mainController">
<p>Add an item</p>
@luisangelma
luisangelma / main.js
Created August 4, 2015 00:38
RPG Game
var readlineSync = require('readline-sync');
var name = readlineSync.question('Hey stranger, what is your name?: ');
var wildAdventure = function() {
var self = this;
var enemies = ['White Walker', 'White Orc', 'Wild Dragon'];
var enemy;
var randomEnemy = function() {
return Math.floor(Math.random() * ((enemies.length - 1) - 0 + 1)) + 0;
@luisangelma
luisangelma / index.html
Created August 4, 2015 00:37
Angular Project Refreshner
<!DOCTYPE html>
<html ng-app="mainApp">
<head>
<title>Angular Site</title>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.3/angular.min.js"></script>
</head>
<body>
<section ng-controller="sumController">
<h2> {{ sumValue }} (Added Value) </h2>
@luisangelma
luisangelma / main.js
Created August 4, 2015 00:35
Dictionary
var Dictionary = function() {
var self = this;
var words = []
this.acceptWord = true;
this.addWord = function(word, def) {
words.push({
reference: word.toLowerCase(),
@luisangelma
luisangelma / main.js
Last active November 19, 2015 23:05
Call Me Maybe
var namesArray = ['angela', 'troy', 'ana', 'mark', 'amit', 'peter', 'john', 'gary', 'melissa', 'jacob'];
var dontCall = function(name) {
console.log('Not calling ' + name);
};
var call = function(name) {
console.log('Calling ' + name);
};