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
<template> | |
<div> | |
Deluge Song Merger | |
<div v-if="state.error"> | |
{{state.error}} | |
</div> | |
<div> |
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(global){ | |
var $ = global.$ || global.jQuery; | |
var history = global.history; | |
var VAR_NAME = 'ac-jload'; | |
var loadSpinnerURL = '/loading.gif'; | |
var overlayHtml = '<div style="position:absolute;text-align:center;z-index:99999">'; |
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
nunjucksEnv.addFilter('debug', function(obj){ | |
return '<pre>'+jsonStringifySafe(obj, ' ')+'</pre>'; | |
}); |
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
<?php | |
use \stdClass; | |
/* | |
```php | |
<?php | |
use VoidNotNullWorkaroundTrait; |
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
/* | |
An example for NodeJs beginners. | |
If you wonder how nodejs-code looks like when it | |
asynchronously fetches and displays rows from a | |
database, then this is for you. | |
*/ | |
var fs = require('fs'), | |
http = require('http'), |
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
angular.module('demo', []) | |
.provider('googleMaps', require('./google-maps-service-provider')) | |
.config(['googleMapsProvider', function(googleMapsProvider) { | |
googleMapsProvider.configure({ | |
key: 'your api key', | |
language: 'de', | |
libraries: 'places' | |
}); | |
}]) | |
.controller('MapController', ['googleMaps', function(googleMaps) { |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
</head> | |
<body> | |
<link rel="stylesheet" href="http://netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css"> | |
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.9/angular.min.js"></script> | |
<script src="http://metawidget.sourceforge.net/js/3.7/metawidget-core.min.js"></script> | |
<script src="http://metawidget.sourceforge.net/js/3.7/metawidget-angular.min.js"></script> |
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
{ | |
"type": "object", | |
"properties": { | |
"name": { | |
"type": "string" | |
}, | |
"description": { | |
"type": "string", | |
"optional": true | |
}, |
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
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
</head> | |
<body> | |
<!-- Simulate a dynamically changing page --> | |
<div id="main"></div> | |
<script> | |
var el = document.getElementById('main'); |
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
var foo = require('./foo') | |
, barOfFoo = moduleOfModule('./bar', './foo') | |
function moduleOfModule(module, ofModule) { | |
var c = require.cache[require.resolve(ofModule)] | |
, f = require.resolve(module, c) | |
, r | |
c.children.some(function(c) { | |
if(c.filename === f) { | |
r = c.exports |
NewerOlder