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
<script> | |
var suite = new Benchmark.Suite(); | |
const obj = { | |
stuff: { | |
things: { | |
stuff: 'things', | |
things: 'stuff', | |
other: { | |
stuff: 'things' | |
} |
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> | |
</head> | |
<body> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.4/lodash.min.js" type="text/javascript"></script> | |
<script src="https://cdn.rawgit.com/mariocasciaro/object-path/master/index.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/benchmark/2.1.4/benchmark.min.js"></script> | |
<h1>Hello</h1> | |
<script> |
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> | |
</head> | |
<body> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.4/lodash.min.js" type="text/javascript"></script> | |
<script src="https://cdn.rawgit.com/mariocasciaro/object-path/master/index.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/platform/1.3.4/platform.min.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/benchmark/2.1.4/benchmark.min.js"></script> | |
<h1>Hello</h1> |
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 urllib.request | |
import json | |
mapApiUrl = "https://maps.googleapis.com/maps/api/distancematrix/json" | |
class Tour: | |
def __init__(self,city, *cities): | |
self.cities = cities | |
self.destinations = ';'.join(cities) | |
self.originCity = city |
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
/* eslint strict: 0 */ | |
'use strict'; | |
const electron = require('electron'); | |
const app = electron.app; | |
const BrowserWindow = electron.BrowserWindow; | |
let mainWindow = null; | |
app.on('window-all-closed', () => { | |
if (process.platform !== 'darwin') app.quit(); |
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
/* eslint strict: 0 */ | |
'use strict'; | |
const path = require('path'); | |
const webpack = require('webpack'); | |
const webpackTargetElectronRenderer = require('webpack-target-electron-renderer'); | |
let options ={ | |
module: { | |
loaders: [{ |
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
/* eslint strict: 0 */ | |
'use strict'; | |
const path = require('path'); | |
const webpack = require('webpack'); | |
const webpackTargetElectronRenderer = require('webpack-target-electron-renderer'); | |
var argv = require('minimist')(process.argv.slice(2)); | |
const isWeb = (argv && argv.target === 'web'); | |
const output = (isWeb ? 'build/web' : 'build/electron'); |
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
<pre style="display:inline-block;text-align:center;font-family:monospace;letter-spacing:6.5px;line-height:13px;font-size:13px;font-weight:bold;"> | |
<span style="color:rgb(127, 127, 127);">C</span><span style="color:rgb(236, 236, 236);">a</span><span style="color:rgb(254, 254, 254);">n</span><span style="color:rgb(254, 254, 254);">'</span><span style="color:rgb(254, 254, 254);">t</span><span style="color:rgb(255, 255, 255);"> </span><span style="color:rgb(254, 254, 254);">f</span><span style="color:rgb(254, 254, 254);">u</span><span style="color:rgb(254, 254, 254);">c</span><span style="color:rgb(254, 254, 254);">k</span><span style="color:rgb(254, 254, 254);"> </span><span style="color:rgb(254, 254, 254);">w</span><span style="color:rgb(254, 254, 254);">i</span><span style="color:rgb(254, 254, 254);">t</span><span style="color:rgb(254, 254, 254);">h</span><span style="color:rgb(255, 255, 255);"> </span><span style="color:rgb(254, 254, 254);">t</span><span style="color:rgb(254, 254, 254);">h</span |
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
<?php | |
/** | |
* Implements hook_drush_command() | |
* goes in modulename.drush.inc | |
*/ | |
function yogatrail_schedules_drush_command() { | |
$items = array(); | |
$items['yt-schedules-update-classes'] = array(); |
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
<?php | |
function example_update_N(){ | |
// This manually enables the module using the same function features will use in the other example | |
features_module_enable('backup_migrate'); | |
// Now you don't need to revert dependencies component because you've already enabled the module that you added. | |
$features['site_config'] = array('variable'); | |
$features_rebuild($features); | |
$features_revert($features); |