Skip to content

Instantly share code, notes, and snippets.

@gmittica
gmittica / gist:3439278
Created August 23, 2012 17:40
upcloo popuover styles
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://ogp.me/ns/fb#">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="description" content="" />
<meta name="keyword" content="" />
<meta name="Copyright" content="" />
<meta name="Language" content="" />
var hash64 = CryptoJS.enc.Base64.stringify(CryptoJS.enc.Utf8.parse(user.username + ":" + user.password));
$http.defaults.headers.common.Authorization = 'Basic ' + hash64;
angular.module('myApp', [
'ngCookies',
...
angular.module('myApp.services', []).factory('User', ['$http', '$cookieStore', function($http, $cookieStore) {
@gmittica
gmittica / gist:23545801154b2784ac42
Created June 9, 2014 13:17
animation for ngAnimate
.animate.ng-enter,
.animate.ng-leave
{
-webkit-transition: 200ms cubic-bezier(0.250, 0.250, 0.750, 0.750) all;
-moz-transition: 200ms cubic-bezier(0.250, 0.250, 0.750, 0.750) all;
-ms-transition: 200ms cubic-bezier(0.250, 0.250, 0.750, 0.750) all;
-o-transition: 200ms cubic-bezier(0.250, 0.250, 0.750, 0.750) all;
transition: 200ms cubic-bezier(0.250, 0.250, 0.750, 0.750) all;
position: relative;
@gmittica
gmittica / index.html
Created October 3, 2017 11:26
Angular Lesson // source http://jsbin.com/pumojig
<!DOCTYPE html>
<html>
<head>
<script src="https://code.jquery.com/jquery.min.js"></script>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
<script src="https://rawgit.com/angular/bower-angular/master/angular.min.js"></script>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Angular Lesson</title>
@gmittica
gmittica / index.html
Created October 3, 2017 13:14
Angular Lesson // source http://jsbin.com/pumojig
<!DOCTYPE html>
<html>
<head>
<script src="https://code.jquery.com/jquery.min.js"></script>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
<script src="https://rawgit.com/angular/bower-angular/master/angular.min.js"></script>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Angular Lesson</title>
@gmittica
gmittica / index.html
Created October 3, 2017 13:51
Angular Lesson // source http://jsbin.com/pumojig
<!DOCTYPE html>
<html>
<head>
<script src="https://code.jquery.com/jquery.min.js"></script>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
<script src="https://rawgit.com/angular/bower-angular/master/angular.min.js"></script>
<script src="http://unpkg.com/@uirouter/angularjs/release/angular-ui-router.min.js"></script>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
@gmittica
gmittica / index.html
Created October 4, 2017 11:19
Angular Lesson // source http://jsbin.com/pumojig
<!DOCTYPE html>
<html>
<head>
<script src="https://code.jquery.com/jquery.min.js"></script>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
<script src="https://rawgit.com/angular/bower-angular/master/angular.min.js"></script>
<script src="http://unpkg.com/@uirouter/angularjs/release/angular-ui-router.min.js"></script>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
@gmittica
gmittica / index.html
Created October 4, 2017 11:30
Angular Lesson // source http://jsbin.com/pumojig
<!DOCTYPE html>
<html>
<head>
<script src="https://code.jquery.com/jquery.min.js"></script>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
<script src="https://rawgit.com/angular/bower-angular/master/angular.min.js"></script>
<script src="http://unpkg.com/@uirouter/angularjs/release/angular-ui-router.min.js"></script>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
@gmittica
gmittica / index.html
Created October 4, 2017 11:37
Angular Lesson // source http://jsbin.com/pumojig
<!DOCTYPE html>
<html>
<head>
<script src="https://code.jquery.com/jquery.min.js"></script>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
<script src="https://rawgit.com/angular/bower-angular/master/angular.min.js"></script>
<script src="http://unpkg.com/@uirouter/angularjs/release/angular-ui-router.min.js"></script>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
@gmittica
gmittica / index.html
Created October 4, 2017 12:40
Angular Lesson // source http://jsbin.com/pumojig
<!DOCTYPE html>
<html>
<head>
<script src="https://code.jquery.com/jquery.min.js"></script>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
<script src="https://rawgit.com/angular/bower-angular/master/angular.min.js"></script>
<script src="http://unpkg.com/@uirouter/angularjs/release/angular-ui-router.min.js"></script>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">