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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset=utf-8 /> | |
| <title>Holy Grail</title> | |
| <style> | |
| /* some basic styles. nothing to do with flexbox */ | |
| header, footer, | |
| nav, article, aside { | |
| border: 1px solid black; |
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 worker() { | |
| setInterval(function() { | |
| postMessage({foo: "bar"}); | |
| }, 1000); | |
| } | |
| var code = worker.toString(); | |
| code = code.substring(code.indexOf("{")+1, code.lastIndexOf("}")); | |
| var blob = new Blob([code], {type: "application/javascript"}); |
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
| <!DOCTYPE HTML> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <title>Bootstrap Masonry Template</title> | |
| <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css"> | |
| <link rel="stylesheet" href="style.css"> | |
| <link rel="stylesheet" href="http://fonts.googleapis.com/css?family=PT+Sans+Caption:400,700"> |
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
| package main | |
| import ( | |
| "bytes" | |
| "fmt" | |
| "github.com/gorilla/mux" | |
| grpc "github.com/gorilla/rpc" | |
| "github.com/gorilla/rpc/json" | |
| "log" | |
| "net/http" |
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
| public class Account | |
| { | |
| Guid Id {get;set;} | |
| string Name {get;set;} | |
| } |
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
| enum Color { | |
| RED, | |
| BLACK | |
| } | |
| class Node { | |
| public parent: Node; | |
| public left: Node; | |
| public right: Node; |
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
| // NOTE: This is now rolled up in a package and supports more scenarios: https://github.com/dsherret/using-statement | |
| interface IDisposable { | |
| dispose(); | |
| } | |
| function using<T extends IDisposable>(resource: T, func: (resource: T) => void) { | |
| try { | |
| func(resource); | |
| } finally { |
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
| <template> | |
| <section class="au-animate"> | |
| <div class="well"> | |
| <content select="#navigation"></content> | |
| </div> | |
| <div> | |
| <content select="#content"></content> | |
| </div> | |
| </section> | |
| </template> |
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 gulp = require('gulp'); | |
| var linter = require('gulp-aurelia-template-lint'); | |
| var config = new (require('aurelia-template-lint').Config); | |
| var fail = require('gulp-fail'); | |
| var gulpIf = require('gulp-if'); | |
| var gutil = require('gulp-util'); | |
| var notify = require("gulp-notify"); | |
| var paths = require('../paths'); |
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 * as path from 'path'; | |
| import 'aurelia-polyfills'; | |
| import {Options, NodeJsLoader} from 'aurelia-loader-nodejs'; | |
| import {PLATFORM, DOM} from 'aurelia-pal'; | |
| import {globalize} from 'aurelia-pal-nodejs'; | |
| import {Aurelia} from 'aurelia-framework'; | |
| // ignore importing '.css' files, useful only for Webpack codebases that do stuff like require('./file.css'): | |
| require.extensions['.css'] = function (m, filename) { | |
| return; |
OlderNewer