// jQuery
$(document).ready(function() {
// 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
[ | |
{name: 'Afghanistan', code: 'AF'}, | |
{name: 'Åland Islands', code: 'AX'}, | |
{name: 'Albania', code: 'AL'}, | |
{name: 'Algeria', code: 'DZ'}, | |
{name: 'American Samoa', code: 'AS'}, | |
{name: 'AndorrA', code: 'AD'}, | |
{name: 'Angola', code: 'AO'}, | |
{name: 'Anguilla', code: 'AI'}, | |
{name: 'Antarctica', code: 'AQ'}, |
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
body { | |
font-family: Helvetica, arial, sans-serif; | |
font-size: 14px; | |
line-height: 1.6; | |
padding-top: 10px; | |
padding-bottom: 10px; | |
background-color: white; | |
padding: 30px; } | |
body > *:first-child { |
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
var AngularJSApp = angular.module("AngularJSApp", ["ngResource", "ngSanitize"]) | |
.config(function ($routeProvider, $httpProvider) { | |
$routeProvider. | |
when('/', { controller: NavigationCtrl, templateUrl: 'navigation.html' }). | |
when('/feedback', { controller: FeedbackCtrl, templateUrl: 'feedback.html' }). | |
otherwise({ redirectTo: '/' }); | |
$httpProvider.defaults.withCredentials = true; | |
delete $httpProvider.defaults.headers.common["X-Requested-With"]; |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<resources> | |
<!-- Totally "960 Colors" | |
Author : VenomVendor | |
Refer : http://stackoverflow.com/q/3769762/1008278 | |
Reference : http://www.computerhope.com/htmcolor.htm , http://www.color-hex.com/color-names.html | |
--> | |
<!-- Colors arranged from A -Z --> | |
<color name="air_force_blue">#5D8AA8</color> |
This has been incorporated in a small library.
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
irb(main):001:0> I_AM_A_CONSTANT = "I never change" | |
=> "I never change" | |
irb(main):002:0> i_am_a_variable = I_AM_A_CONSTANT | |
=> "I never change" | |
irb(main):003:0> i_am_a_variable = "I can change" | |
=> "I can change" | |
irb(main):004:0> I_AM_A_CONSTANT | |
=> "I never change" | |
irb(main):005:0> I_AM_A_CONSTANT_HASH = {contents: "I never change"} | |
=> {:contents=>"I never change"} |
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> | |
<title></title> | |
<meta charset="utf-8" /> | |
<script src="templating.js" type="text/javascript" charset="utf-8"></script> | |
</head> | |
<body> | |
<template id=t> |
To remove a submodule you need to:
- Delete the relevant section from the .gitmodules file.
- Stage the .gitmodules changes git add .gitmodules
- Delete the relevant section from .git/config.
- Run git rm --cached path_to_submodule (no trailing slash).
- Run rm -rf .git/modules/path_to_submodule (no trailing slash).
- Commit git commit -m "Removed submodule "
- Delete the now untracked submodule files rm -rf path_to_submodule
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 ng-app="Demo"> | |
<head> | |
<meta charset="utf-8" /> | |
<title> | |
Creating A Simple Modal System In AngularJS | |
</title> | |
<link rel="stylesheet" type="text/css" href="./demo.css"></link> |
OlderNewer