Skip to content

Instantly share code, notes, and snippets.

@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-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-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-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-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 / 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 / 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 / jsbin.fizuxa.css
Last active August 29, 2015 14:04
Optical Illusion CSS3
body{
background-color:black;
}
#title{
color:#fff;
font-size:18px;
margin-bottom:20px
}
.container {
width: 200px;
height: 200px;
position: relative;
perspective: 1000px;
}
#cube {