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> | |
<head> | |
<meta name="description" content="A simple bootstrap form with 2 bootstrap datepickers"> | |
<script src="https://rawgit.com/lodash/lodash/3.0.1/lodash.min.js"></script> | |
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.2/angular.min.js"></script> | |
<script src="https://code.jquery.com/jquery.min.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.4.0/js/bootstrap-datepicker.min.js"></script> | |
<link href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.4.0/css/bootstrap-datepicker.min.css" rel="stylesheet" type="text/css" /> |
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> | |
<head> | |
<meta name="description" content="A simple bootstrap form with 2 bootstrap datepickers"/> | |
<meta name="gist-url" content="https://gist.github.com/matthewbednarski/a1da75343128c2036b98"/> | |
<meta name="jsbin-url" content="http://jsbin.com/nidewi"/> | |
<link href="http://netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.min.css" rel="stylesheet" type="text/css" /> | |
<script src="https://rawgit.com/lodash/lodash/3.0.1/lodash.min.js"></script> | |
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.2/angular.min.js"></script> |
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
// Enter a client ID for a web application from the Google Developer Console. | |
// The provided clientId will only work if the sample is run directly from | |
// https://google-api-javascript-client.googlecode.com/hg/samples/authSample.html | |
// In your Developer Console project, add a JavaScript origin that corresponds to the domain | |
// where you will be running the script. | |
var clientId = | |
'clientId'; | |
// Enter the API key from the Google Develoepr Console - to handle any unauthenticated | |
// requests in the code. |
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
'use strict'; | |
/** | |
* uses PouchDB | |
* | |
* https://cdnjs.cloudflare.com/ajax/libs/pouchdb/3.6.0/pouchdb.js | |
* https://cdnjs.cloudflare.com/ajax/libs/pouchdb/3.6.0/pouchdb.min.js | |
*/ | |
function Persistence($q) { | |
var persist = this; |
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
import configuration.SecurityConfig; | |
import org.springframework.security.web.context.AbstractSecurityWebApplicationInitializer; | |
/** | |
AppInitializer.java auth cli configuration controller entity eulero model repository scheduler SecurityInitializer.java service utils Created by matthewb on 8/5/15. | |
*/ | |
public class SecurityInitializer extends AbstractSecurityWebApplicationInitializer { | |
protected Class<?>[] getRootConfigClasses(){ |
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
package configuration; | |
import org.springframework.beans.factory.annotation.Autowired; | |
import org.springframework.context.ApplicationContext; | |
import org.springframework.context.annotation.Bean; | |
import org.springframework.context.annotation.Configuration; | |
import org.springframework.core.annotation.Order; | |
import org.springframework.http.HttpMethod; | |
import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder; | |
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity; |
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/sh | |
########################################### | |
# | |
# A script for publishing gists to github | |
# | |
# requires that you create a file ~/.github.token containing an personal access token for publishing gists (https://github.com/settings/tokens) | |
# | |
# usage: | |
# gist example.js all other parameters are concatenated for use as the description, other wise the filename is used as the description |
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/sh | |
########################################### | |
# | |
# A script for publishing gists to github | |
# | |
# requires that you create a file ~/.github.gist.token containing an personal access token for publishing gists (https://github.com/settings/tokens) | |
# | |
# usage: | |
# gist example.js all other parameters are concatenated for use as the description, other wise the filename is used as the description |
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 | |
############## | |
# | |
# | |
# Get applicationContext.xml | |
# depends: 7z, ssh | |
# | |
# |
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
(function() { | |
var app = angular.module('mcbUuid', []) | |
.service('uuid', [Uuid]); | |
// http://stackoverflow.com/questions/105034/create-guid-uuid-in-javascript | |
// | |
function Uuid() { | |
this.newUuid = function() { | |
var d = new Date().getTime(); | |
var uuid = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) { |