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
<style> | |
.month | |
{ | |
width:140px; | |
margin:0px; | |
padding:0px; | |
margin-left:15px; | |
line-height:25px; |
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
class SuggestionController < ApplicationController | |
def vote | |
end | |
def get | |
end | |
end |
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> | |
<html ng-app="myapp"> | |
<head> | |
<title>This is a test</title> | |
<script src="assets/js/angular.min.js"></script> | |
</head> | |
<body> | |
<div ng-controller="MainController"> | |
<input type="text" ng-model="name" /> |
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 mongoose = require('mongoose'); | |
var app = express(); | |
mongoose.connect('mongodb://localhost/moss'); | |
app.use(express.static( __dirname + '/client' )); | |
app.listen(8000); |
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
<div ng-controller="TicketController"> | |
<my-directive ng-model="ticketType"></my-directive> | |
</div> |
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
Ext.onReady(function(){ | |
Ext.create('Ext.tab.Panel', { | |
width: 950, | |
frame: true, | |
renderTo: 'settingsTabs', | |
items: [{ | |
layout: 'hbox', | |
title: 'Self Sign', | |
items: [kioskRegistration, 'kioskConfirmation', 'kioskTimeOut', 'kioskSurvey'] | |
},{ |
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
import requests, json | |
from bs4 import BeautifulSoup | |
# from pymongo import MongoClient | |
from pprint import PrettyPrinter | |
pprint = PrettyPrinter(indent=3) | |
# client = MongoClient('localhost', 27017) | |
bartender = client.bartender | |
drinks = bartender.drinks |
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
.controller('CMSController', function($scope, $state, $rootScope, AuthToken) { | |
$scope.$on('$stateChangeStart', function(e, toState, toParams, fromState) { | |
var token = AuthToken.get(); | |
if(toState != 'admin.login' && !token) { | |
$state.go('admin.login'); | |
} | |
}); | |
}); |
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
# This file uses centimeters as units for non-parametric coordinates. | |
mtllib Farmhouse OBJ.mtl | |
g default | |
v -2.023838 8.915440 -8.054992 | |
v 1.971210 8.917807 -8.054984 | |
v 1.971237 1.352654 -8.054985 | |
v -1.992085 1.352654 -8.054985 | |
v 1.821583 8.753086 29.128180 | |
v 7.079507 8.753086 29.128180 |
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
// tutorial20.js | |
var CommentBox = React.createClass({ | |
loadCommentsFromServer: function() { | |
$.ajax({ | |
url: this.props.url, | |
dataType: 'json', | |
success: function(data) { | |
this.setState({data: data}); | |
}.bind(this), | |
error: function(xhr, status, err) { |
OlderNewer