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
| service = angular.element('*[ng-app]').injector().get('serviceName') |
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
| window.onload = function () | |
| { | |
| var canvas = document.getElementById("overlay_canvas"); | |
| var ctx = canvas.getContext("2d"); | |
| var image = new Image(); | |
| image.src = "http://placekitten.com/4536/3024"; | |
| image.onload = function () { | |
| ctx.drawImage(image, 0, 0); | |
| image_ctx = image.getContext("2d"); | |
| debugger; |
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
| import sys | |
| import time | |
| for i in range(10): | |
| print '\r', # print is Ok, and comma is needed. | |
| time.sleep(0.3) | |
| print i, | |
| sys.stdout.flush() # flush is needed. |
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
| var AnimalView = Backbone.View.extend({ | |
| .. | |
| save: function() { | |
| var that = this; | |
| if(!this.isSaved) { | |
| that.model.save() | |
| } else { | |
| that.alreadySaved(); | |
| } | |
| }, |
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
| div#main { | |
| width: 750px; | |
| margin-left: auto; | |
| margin-right: auto | |
| } |
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
| /* parent div and hover properties */ | |
| .imgteaser { | |
| margin: 0; | |
| overflow: hidden; | |
| float: left; | |
| position: relative; | |
| } | |
| .imgteaser a { | |
| text-decoration: none; | |
| float: left; |
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
| .transparent | |
| {zoom: 1; | |
| filter: alpha(opacity=70); | |
| opacity: 0.7; | |
| } | |
| .transparent:hover | |
| { | |
| opacity:1; | |
| -moz-opacity:1; |
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
| a.a-thumb { | |
| border: 1px solid black; | |
| position: relative; | |
| } | |
| a.a-thumb img { | |
| width: 60px; | |
| height: 60px; | |
| border: 0; | |
| } |
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
| .inner { | |
| width: 50%; | |
| margin: auto; | |
| } |
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
| set :application, "appname" | |
| set :domain, "domain.tld" | |
| role :web, domain # Your HTTP server, Apache/etc | |
| role :app, domain # This may be the same as your `Web` server | |
| role :db, domain, :primary => true # This is where Rails migrations will run | |
| set :repository, "." # Deploy from the local repository | |
| set :scm, "git" | |
| set :branch, "master" |
OlderNewer