Skip to content

Instantly share code, notes, and snippets.

@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: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
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 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">
{
"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" : [