This file contains hidden or 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
| /* SMARTPHONES */ | |
| @media only screen and (min-device-width : 320px) and (max-device-width : 480px) { | |
| } | |
| /* PORTRAIT TABLETS & LANDSCAPE PHONES */ | |
| @media screen and (min-width: 481px) and (max-width: 640px) { | |
| } | |
| /* TABLETS */ |
This file contains hidden or 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
| /* | |
| * | |
| * FONTS | |
| * by @dic7 (github: ivanmendoza) | |
| * | |
| */ | |
| #fonts{ | |
| .base(@size: 1em){ | |
| font:normal @size verdana, helvetica, arial, sans-serif; | |
| } |
This file contains hidden or 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
| /* | |
| * | |
| * Icon index | |
| * by @dic7 (github: ivanmendoza) | |
| * | |
| */ | |
| /* | |
| * SPRITE | |
| * url: ../images/icons.png |
This file contains hidden or 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
| # -- Editores ----------------------------------------- | |
| # vim | |
| .*.sw[a-z] | |
| *.un~ | |
| Session.vim | |
| .netrwhist | |
| # eclipse | |
| *.pydevproject | |
| .project |
This file contains hidden or 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
| @outerWidth: 960px; | |
| @borderWidth: 10px; | |
| @padding: 10px; | |
| #container { | |
| width: @outerWidth - ( @borderWidth + @padding ) * 2; | |
| border: @borderWidth solid #999; | |
| padding: @padding; | |
| } |
This file contains hidden or 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
| font: @weight @size e('/') @height "Helvetica Neue", Arial, "Liberation Sans", FreeSans, sans-serif; |
This file contains hidden or 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 RestServiceJs(newurl) { | |
| this.myurl = newurl; | |
| this.post = function(model, callback) { | |
| $.ajax({ | |
| type: 'POST', | |
| url: this.myurl, | |
| data: JSON.stringify(model), // '{"name":"' + model.name + '"}', | |
| dataType: 'text', | |
| processData: false, |
This file contains hidden or 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
| angular.service('todoStore', function(jsonp, waitDialog) { | |
| var readUrl = 'https://secure.openkeyval.org/'; | |
| var writeUrl = 'https://secure.openkeyval.org/store/?'; | |
| function read(key, success) { | |
| waitDialog.show('Please wait'); | |
| jsonp('JSON', readUrl + key + '?callback=JSON_CALLBACK', function(status, data) { | |
| success(data); | |
| waitDialog.hide(); | |
| }, function(status) { |
This file contains hidden or 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
| $.fn.serializeObject = function() | |
| { | |
| var o = {}; | |
| var a = this.serializeArray(); | |
| $.each(a, function() { | |
| if (o[this.name] !== undefined) { | |
| if (!o[this.name].push) { | |
| o[this.name] = [o[this.name]]; | |
| } | |
| o[this.name].push(this.value || ''); |
This file contains hidden or 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
| <html> | |
| <head> | |
| <script src="http://code.jquery.com/jquery-latest.min.js"></script> | |
| </head> | |
| <body> | |
| <h2>Create some JSON object that is nested/structured from a form</h2> | |
| <form id="form"> | |
| <input id="id" type="text" name="id" placeholder="id..." /> |