Skip to content

Instantly share code, notes, and snippets.

@TerryMooreII
TerryMooreII / index.html
Created May 7, 2014 17:09
Another loading css spinner
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
<div class="loading">
<div class="circle one"></div>
<div class="clearfix"></div>
@TerryMooreII
TerryMooreII / loading.css
Created May 5, 2014 13:52
Loading CSS animate
body{
padding:50px;
}
.loading .text{
font-size:1em;
color:red;
margin-bottom:10px;
font-family:helvetica;
}
@TerryMooreII
TerryMooreII / azure-angular-service-7.js
Last active August 29, 2015 14:00
azure-angular-service-7.js - Cardinal Solutions blog post: Azure Angular Service
angular.module('myApp')
.controller('myCtrl', function ($scope, Azureservice) {
var data = {
name:'Terry Moore',
company: 'Cardinal Solutions',
};
$scope.save = function(){
Azureservice
.insert('myAzureTable', data)
@TerryMooreII
TerryMooreII / azure-angular-service-6.js
Created May 2, 2014 12:47
azure-angular-service-6.js - Cardinal Solutions blog post: Azure Angular Service
angular.module('myApp')
.controller('myCtrl', function ($scope, Azureservice) {
});
@TerryMooreII
TerryMooreII / azure-angular-service-5.js
Created May 2, 2014 12:46
azure-angular-service-5.js - Cardinal Solutions blog post: Azure Angular Service
angular.module('myApp', ['azure-mobile-service.module']);
@TerryMooreII
TerryMooreII / azure-angular-service-4.js
Last active August 29, 2015 14:00
azure-angular-service-4.js - Cardinal Solutions blog post: Azure Angular Service
return {
insert: function(tableName, obj){
if (isNullOrUndefined(tableName)){
console.error('Azureservice.insert: You must specify a table name');
return null;
}
if (isUndefinedOrNotAnObject(obj)){
console.error('Azureservice.insert: You must specify the insert object');
@TerryMooreII
TerryMooreII / azure-angular-service-3.js
Created May 2, 2014 12:45
azure-angular-service-3.js - Cardinal Solutions blog post: Azure Angular Service
angular.module('azure-mobile-service.module', [])
.service('Azureservice', function Azureservice($q) {
var API_URL = 'https://<AZURE_APP_NAME>.azure-mobile.net/';
var API_KEY = '<AZURE_APP_API_KEY>';
var MobileServiceClient = WindowsAzure.MobileServiceClient;
var client = new MobileServiceClient(API_URL, API_KEY);
var getTable = function(tableName){
return client.getTable(tableName);
};
@TerryMooreII
TerryMooreII / azure-angular-service-2.html
Created May 2, 2014 12:44
azure-angular-service-2.js - Cardinal Solutions blog post: Azure Angular Service
<script src="http://ajax.aspnetcdn.com/ajax/mobileservices/MobileServices.Web-1.1.3.min.js"></script>
@TerryMooreII
TerryMooreII / azure-angular-service-1.js
Last active August 29, 2015 14:00
azure-angular-service-1.js - Cardinal Solutions blog post: Azure Angular Service
angular.module('azure-mobile-service.module', [])
.service('Azureservice', function Azureservice() {
return {
};
})
@TerryMooreII
TerryMooreII / write-to-log.js
Created May 2, 2014 12:12
Code to write the log files - Cardinal Solutions ALF blog post
var writeToLog = function(project, service, data){
var date = new Date();
var directory = properties.baseDir + '/logs';
fs.exists(directory, function (exists) {
if (!exists){
fs.mkdirSync(directory);
}
for (var key in data) {