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 | |
# This file was automatically generated by the MediaWiki 1.38.0-alpha | |
# installer. If you make manual changes, please keep track in case you | |
# need to recreate them later. | |
# | |
# See includes/DefaultSettings.php for all configurable settings | |
# and their default values, but don't forget to make changes in _this_ | |
# file, not there. | |
# | |
# Further documentation for configuration settings may be found at: |
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
{ | |
"wgAPICacheHelpTimeout": 3600, | |
"wgAPIFormatModules": [], | |
"wgAPIListModules": { | |
"growthtasks": { | |
"class": "GrowthExperiments\\Api\\ApiQueryGrowthTasks", | |
"services": [ | |
"GrowthExperimentsTaskSuggesterFactory", | |
"GrowthExperimentsNewcomerTasksConfigurationLoader", | |
"GrowthExperimentsLinkRecommendationFilter", |
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 FibonacciSeqRec(n) { | |
const fib = (seq) => { | |
if (seq.length === n) return seq | |
if (seq.length < 2) seq.push(1) | |
else seq.push(seq[seq.length - 2] + seq[seq.length - 1]) | |
return fib(seq) | |
} | |
return fib([]) | |
} |
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
const flatten = (arr) => { | |
const res = [] | |
const flattenRec = (elem) => { | |
if (Array.isArray(elem) && elem.length > 0) { | |
elem.forEach(e => flattenRec(e)) | |
} else { | |
res.push(elem) | |
} | |
} |
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
const readline = require('readline'); | |
const rl = readline.createInterface({ | |
input: process.stdin, | |
output: process.stdout | |
}); | |
rl.question('Enter the problem input: ', (input) => { | |
console.log(`Input: ${input}`); |
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
//You will need the following cordov plugins | |
// + https://github.com/apache/cordova-plugin-file-transfer | |
// + https://github.com/apache/cordova-plugin-file | |
angular.module('someModule', []) | |
.service('cordovaService', function($window, $document, $q, $timeout) { | |
// Source https://github.com/mgcrea/angular-cordova/blob/master/src/angular-cordova.js | |
var self = this; | |
this.cordova = $window.cordova || {}; |
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 wsock = require('websocket-stream'); | |
var ws = wsock('ws://' + location.host); | |
var split = require('split2'); | |
var through = require('through2'); | |
var h = require('virtual-dom/h'); | |
var state = { images: [] }; | |
var createImage = require('./image.js'); | |
var main = require('main-loop'); |
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 (req, res){ | |
var ejs = require('ejs'); | |
var fs = require('fs'); | |
var async = require('async'); | |
async.map([__dirname + '/template.ejs'], fs.readFile, function(err, files) { | |
if(err) { | |
throw err; | |
} |
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
_.merge = wrapFunct(_.merge); | |
_.union = wrapFunct(_.union); | |
_.merge(AJAX.get('foo'), [ 'en' ], AJAX.get('bar')); |
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
#!bash | |
# | |
# bash/zsh completion support for core Git. | |
# | |
# Copyright (C) 2006,2007 Shawn O. Pearce <[email protected]> | |
# Conceptually based on gitcompletion (http://gitweb.hawaga.org.uk/). | |
# Distributed under the GNU General Public License, version 2.0. | |
# | |
# The contained completion routines provide support for completing: | |
# |
NewerOlder