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
| from flask import Flask | |
| app = Flask(__name__) |
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
| Namespace = function(scope, definition) { | |
| var root = typeof GLOBAL !== 'undefined' ? GLOBAL : window; | |
| scope = scope.split('.'); | |
| for(var i = 0; i < scope.length; ++i) { | |
| if(typeof root[scope[i]] === 'undefined') | |
| root[scope[i]] = {}; | |
| root = root[scope[i]]; | |
| } |
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
| #pragma once | |
| #include<iostream> | |
| #include<cstdlib> | |
| template<typename T> | |
| class Singleton | |
| { | |
| public: | |
| inline static T& getInstance() |
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
| // Builds out a request function with a default payload | |
| function requestBuilder(api, settings) { | |
| return function request(endpoint, payload) { | |
| payload = $.extend(true, settings, payload || {}); | |
| return $.ajax(api + endpoint, payload); | |
| } | |
| } | |
| // -- Imgur Module ---------------------------------------- |
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 registerSuite from 'intern!object'; | |
| registerSuite({ | |
| setup() {}, | |
| beforeEach() {}, | |
| afterEach() {}, | |
| teardown() {}, | |
| testA() {}, | |
| testB() {}, | |
| testC() {} |
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
| Box.Application.add${ _.capitalize(type) }('${name}', (${type === 'service' ? 'application' : 'context'}) => { | |
| /** | |
| * __ __ ___ ___ | |
| * |__) |__) | \ / /\ | |__ | |
| * | | \ | \/ /--\ | |___ | |
| * | |
| */ | |
| <% if (type !== 'service') { %> |
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 class="EditorialPromo media"> | |
| <header class="EditorialPromo media-headline"> | |
| Editorial Promo | |
| </header> | |
| </div> |
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 class="EditorialPromo media"> | |
| <header class="EditorialPromo media-headline"> | |
| Editorial Promo | |
| </header> | |
| </div> |
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 class="EditorialPromo"> | |
| <header class="EditorialPromo-headline"> | |
| Editorial Promo | |
| </header> | |
| </div> |
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 class="EditorialPromo EditorialPromo--3up"> | |
| <header class="Header"> | |
| <h1 class="Header-headline">What We're Loving Now</h1> | |
| <a class="Header-cta" href="#">See More!</a> | |
| <p class="Header-description">A few of the things we like</p> | |
| </header> | |
| <ul class="MediaList"> | |
OlderNewer