Skip to content

Instantly share code, notes, and snippets.

View JosephShering's full-sized avatar
🏠
Working from home

Boons JosephShering

🏠
Working from home
  • Pathwaay
  • Denver, CO
View GitHub Profile
<style>
.month
{
width:140px;
margin:0px;
padding:0px;
margin-left:15px;
line-height:25px;
class SuggestionController < ApplicationController
def vote
end
def get
end
end
<!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" />
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);
<div ng-controller="TicketController">
<my-directive ng-model="ticketType"></my-directive>
</div>
@JosephShering
JosephShering / admin_index.js
Last active August 29, 2015 14:05
This is the tab panel that gets created to hold settings.
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']
},{
@JosephShering
JosephShering / scrape.py
Created September 8, 2014 21:21
Esquire Scraper
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
.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');
}
});
});
@JosephShering
JosephShering / gist:43bc73c36ef274500018
Created October 28, 2014 17:33
json for panda male
# 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
// 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) {