This file contains 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
# Failure/Error: click_button 'Search' | |
# Twitter::Error::BadRequest: | |
# Bad Authentication data | |
# searches_controller.rb | |
class SearchesController < ApplicationController | |
def create | |
redirect_to search_path(params[:twitter][:search]) | |
end |
This file contains 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
// an Appointment model class. | |
var Appointment = Backbone.Model.extend({}); | |
// Appointment model class, let's create our first instance and assign it to the appointment variable. | |
//Pass in a title for the appointment when creating it. | |
var appointment = new Appointment(); | |
// set the title of the appointment instance! Set it to any string | |
appointment.set('title', 'My knee hurts'); | |
// we have our very first appointment. But it isn't so useful, sitting there deep down in the bowels of your browser. | |
//To display it lets first create a view class and name it AppointmentView | |
var AppointmentView = Backbone.View.extend({ |
This file contains 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
// Our Appointment model doesn't seem too useful yet. Add two default attributes, | |
// title as the string "Checkup", and date which should default to the current time new Date() | |
var Appointment = Backbone.Model.extend({ | |
defaults: { | |
title: "Checkup", | |
date: new Date() | |
} | |
}); | |
//While messing around in the console, you've discovered a strange bug. Every new Appointment you create has the same exact date, instead of the date and time of when the Appointment instance was created. |
This file contains 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 doctorsFilter = angular.module('findADoc', []); | |
doctorsFilter.controller('doctorsController', ['$scope', '$http', function($scope, $http) { | |
$http.get('../css/findadoc.json').success(function(data) { | |
$scope.doctors = data; | |
}); | |
$scope.options = { | |
stores: [ | |
{id :"Cart", name : 'Ma commande', speciality: 'Ma commande'}, |
This file has been truncated, but you can view the full file.
This file contains 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
{"Provider":[{"ID":"18934","ProviderName":{"FirstName":"Vandana","MiddleName":"Gupta","LastName":"Abramson","Prefix":"Dr.","Suffix":{},"PreferredName":{},"FormerLastName":{}},"Gender":"Female","BirthDate":"0001-01-01T00:00:00","Status":"Active","ImageUrl":"https:\/\/apd.mc.vanderbilt.edu\/ProviderImages\/Abramson Vandana Gupta-18934.jpg","Verified":"true","WhenVerified":"2014-07-21T08:58:32","TakesAppointments":"true","TitlesList":{"ProviderTitle":{"ID":"19","Title":"Assistant Professor of Medicine"}},"EducationList":{"ProviderEducation":{"Degree":"MD","Description":"Doctor of Medicine","Institution":"University of Chicago","GraduationYear":"2000"}},"PostGraduateTrainingList":{"ProviderPostGraduateTraining":[{"PostGraduateTrainingType":"Fellowship","Institution":"University of Pennsylvania","StartYear":{},"EndYear":"2006"},{"PostGraduateTrainingType":"Residency","Institution":"Brigham and Women's Hospital - Harvard Medical School","StartYear":{},"EndYear":"2003"}]},"BoardCertificationsList":{"ProviderBoardCer |
This file contains 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> | |
<html ng-app="MyApp"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<title>My AngularJS App</title> | |
<meta name="description" content=""> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
</head> | |
<body> |
This file contains 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
require 'date' | |
puts Date.today.to_s | |
puts " _ _ " | |
puts " | | | | " | |
puts " _ __ _ __ ___ __| |_ _ ___| |_ ___ " | |
puts "| '_ \\| '__/ _ \\ / _` | | | |/ __| __/ __|" | |
puts "| |_) | | | (_) | (_| | |_| | (__| |_\\__ \\" | |
puts "| .__/|_| \\___/ \\__,_|\\__,_|\\___|\\__|___/" | |
puts "| | " |
This file contains 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
#!/bin/bash | |
export DEBIAN_FRONTEND=noninteractive | |
VAGRANT_CORE_FOLDER=$(cat '/.puphpet-stuff/vagrant-core-folder.txt') | |
OS=$(/bin/bash "${VAGRANT_CORE_FOLDER}/shell/os-detect.sh" ID) | |
RELEASE=$(/bin/bash "${VAGRANT_CORE_FOLDER}/shell/os-detect.sh" RELEASE) | |
CODENAME=$(/bin/bash "${VAGRANT_CORE_FOLDER}/shell/os-detect.sh" CODENAME) |
This file contains 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
class puphpet_php ( | |
$php, | |
$mailhog | |
) { | |
include ::php::params | |
class { 'puphpet::php::settings': | |
version_string => $php['settings']['version'], | |
} |
This file contains 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
vagrantfile: | |
target: local | |
vm: | |
provider: | |
local: | |
box: puphpet/ubuntu1404-x64 | |
box_url: puphpet/ubuntu1404-x64 | |
box_version: '0' | |
chosen_virtualizer: virtualbox | |
virtualizers: |
OlderNewer