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
# Python | |
class Widget(object): | |
"""This is a widget class.""" | |
def __init__(self): | |
"This is the constructor method." | |
print "constructed" | |
widget = Widget() |
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
package { | |
class Widget{ | |
function Widget():void{ | |
// note that the constructor in Actionscript has the | |
// same name as the Class | |
// this gets called when instantiated | |
} | |
} | |
} |
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
function Widget() { | |
// you may find people calling this the 'constructor' function | |
this.name = 'widget'; | |
} | |
var widget = new Widget; | |
// typeof(widget) -> 'object' |
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
/* | |
knockback.js 0.16.1 | |
(c) 2011, 2012 Kevin Malakoff. | |
Knockback.js is freely distributable under the MIT license. | |
See the following for full license details: | |
https://github.com/kmalakoff/knockback/blob/master/LICENSE | |
Dependencies: Knockout.js, Backbone.js, and Underscore.js. | |
*/ | |
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
(function(window,document,navigator,undefined){ | |
var DEBUG=true; | |
!function(factory) { | |
// Support three module loading scenarios | |
if (typeof define === 'function' && define['amd']) { | |
// [2] AMD anonymous module | |
define(['underscore', 'backbone'], factory); | |
} else { | |
// [3] No module loader (plain <script> tag) - put directly in global namespace | |
factory.call(window); |
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
/* | |
json2.js | |
2011-10-19 | |
Public Domain. | |
NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. | |
See http://www.JSON.org/js.html |
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
<snippet> | |
<content><![CDATA[ | |
${1:self}.${2:method} = ko.computed(function () { | |
${3:// content} | |
}, ${1:self}); | |
]]></content> | |
<!-- Optional: Set a tabTrigger to define how to trigger the snippet --> | |
<tabTrigger>comp</tabTrigger> | |
<!-- Optional: Set a scope to limit where the snippet will trigger --> | |
<scope>source.js</scope> |
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
{ | |
"mappings": { | |
"logs": { | |
"properties": { | |
"eventVersion": { | |
"type": "string" | |
}, | |
"userIdentity": { | |
"properties": { | |
"type": { |
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
version: 2 | |
jobs: | |
build: | |
docker: | |
- image: ghostinspector/test-runner-node | |
steps: | |
- checkout | |
- run: /bin/runghostinspectorsuite server.js |
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
/* PrismJS 1.14.0 | |
http://prismjs.com/download.html#themes=prism-okaidia&languages=markup+css+clike+javascript+bash+docker+json+yaml */ | |
var _self = (typeof window !== 'undefined') | |
? window // if in browser | |
: ( | |
(typeof WorkerGlobalScope !== 'undefined' && self instanceof WorkerGlobalScope) | |
? self // if in worker | |
: {} // if in node js | |
); |
OlderNewer