This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
puts "Hello my little pumpkin, tell grandma everything..." | |
count = 0 | |
while true | |
reply = gets.chomp | |
if reply == "BYE" | |
count += 1 | |
if count == 3 | |
puts "Goodbye!" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function flattenIt(arr){ | |
var str = arr.toString(); | |
str.replace('[','').replace(']',''); | |
var flatArr = str.split(','); | |
var numArr = flatArr.map(Number); | |
return numArr; | |
} | |
flattenIt([[1,2,[3]],4]); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<div class="jumbotron" ng-init="fetchRecentBlogURLs()"> | |
<div class="container section-content"> | |
<h1 style="text-align:center;font-size:50px"> | |
<a href="http://blog.itnamerica.org/">ITN<em>America</em> Blog</a> | |
</h1> | |
<div class="row"> | |
<div class="col-md-4 mt-25" ng-repeat="entry in blogEntries"> | |
<div class="blog-thumbnail"> | |
<a ng-href="{{entry.blogURL}}"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var myApp = angular.module('myApp'); | |
myApp.controller('CalendarCtrl', ['$scope', '$transitions', '$http', '$anchorScroll', '$location', '$stateParams', '$timeout', '$state', '$rootScope', '$window', 'FormService', '$sce', 'DataService', 'ParseVariablesService', '$q', 'CalendarService', function($scope, $transitions, $http, $anchorScroll, $location, $stateParams, $timeout, $state, $rootScope, $window, FormService, $sce, DataService, ParseVariablesService, $q, CalendarService) { | |
console.log('inside calendar controller'); | |
$scope.eventObj = {} | |
$scope.adjustTimeForCalendar = function(theTime) { | |
var time = theTime.replace(" ", ""); | |
time = time.toUpperCase(); | |
var adjustedTime = { | |
hour: 0, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var express = require('express'); | |
var nodemailer = require('nodemailer'); | |
var smtpTransport = require('nodemailer-smtp-transport'); | |
var app = express(); | |
const MongoClient = require('mongodb').MongoClient; | |
var mongo = require('mongodb'); | |
var session = require('express-session'); | |
var cookieParser = require('cookie-parser'); | |
var bodyParser = require('body-parser'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var myApp = angular.module('myApp'); | |
myApp.service('CalendarService', ['$http','$q', function($http, $q){ | |
this.adjustTimeForCalendar = function(theTime) { | |
var time = theTime.replace(" ", ""); | |
time = time.toUpperCase(); | |
var adjustedTime = { | |
hour: 0, | |
min: 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var express = require('express'); | |
var nodemailer = require('nodemailer'); | |
var smtpTransport = require('nodemailer-smtp-transport'); | |
var app = express(); | |
const MongoClient = require('mongodb').MongoClient; | |
var mongo = require('mongodb'); | |
var session = require('express-session'); | |
var cookieParser = require('cookie-parser'); | |
var bodyParser = require('body-parser'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var express = require('express'); | |
var nodemailer = require('nodemailer'); | |
var smtpTransport = require('nodemailer-smtp-transport'); | |
var app = express(); | |
const MongoClient = require('mongodb').MongoClient; | |
var mongo = require('mongodb'); | |
var session = require('express-session'); | |
var cookieParser = require('cookie-parser'); | |
var bodyParser = require('body-parser'); |