To use this with any API, just clone the Gist and run the following:
NGINX_API_URL=https://api.example.com API_PATH=/v0/openAPI docker-compose up
Finally browse to : http://docs.localhost:16640.
To use this with any API, just clone the Gist and run the following:
NGINX_API_URL=https://api.example.com API_PATH=/v0/openAPI docker-compose up
Finally browse to : http://docs.localhost:16640.
// Programme qui compte jusque l'infini | |
// Par Thomas et Nicolas Froidure Stiernon | |
const depart = Date.now(); | |
let compteur = 0; | |
while(true) { | |
if(Math.floor(Math.log10(compteur + 1)) > Math.floor(Math.log10(compteur))) { | |
console.log(compteur + 1, Math.round((Date.now() - depart) / 60000)); | |
} |
docker run \ | |
-v $(pwd)/pgsql/docs:/home/schcrwlr/share \ | |
--name schemacrawler \ | |
--rm -i -t \ | |
--entrypoint=/bin/bash schemacrawler/schemacrawler \ | |
-c "/opt/schemacrawler/schemacrawler.sh --command=schema --output-format=png --output-file=/home/schcrwlr/share/graph.png --server=postgresql --host=\$(/sbin/ip route|awk '/default/ { print \$3 }') --port=15432 --database=diagrams --schemas=public --user=postgres --password=mysecretpassword --info-level=maximum --log-level=ALL" |
var CSV = require('oh-csv'); | |
process.stdout.write( | |
'<?xml version="1.0" encoding="UTF-8"?>' + '\r\n' + | |
'<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/"' + '\r\n' + | |
' xmlns:dsq="http://www.disqus.com/" xmlns:dc="http://purl.org/dc/elements/1.1/"' + '\r\n' + | |
' xmlns:wp="http://wordpress.org/export/1.0/">' + '\r\n' + | |
' <channel>' + '\r\n' | |
); |
import fs from 'fs'; | |
import nock from 'nock'; | |
nock.recorder.rec({ | |
logging: content => fs.appendFileSync('./nock-records.log', content), | |
}); |
<json:object> | |
<json:string name="text">Hello world!</json:string> | |
</json:object> |
var Promise=(function() { | |
var AWAIT=0, SUCCESS=1, FAIL=-1; | |
function Promise(logic) { | |
var promise=this; | |
promise.solved=AWAIT; | |
var success=function (value) { | |
if(AWAIT!==promise.solved) | |
return; | |
promise.solved=SUCCESS; | |
promise.value=value; |
import { Knifecycle, constant, autoService, service } from 'knifecycle'; | |
// Initialize the injector | |
const $ = new Knifecycle(); | |
// Declare constants | |
$.register(constant('FTP_CONFIG', { user: 'test', password: 'test' })); | |
$.register(constant('FTP_CONFIG2', { user: 'test2', password: 'test2' })); | |
// Declare services |
import { Knifecycle, constant, autoService, autoProvider } from 'knifecycle'; | |
// Initialize the injector | |
const $ = new Knifecycle(); | |
// Declare constants | |
$.register(constant('FTP_CONFIG', { user: 'test', password: 'test' })); | |
$.register(constant('DB_CONFIG', { user: 'test', password: 'test' })); |
tar tvf $(npm pack) |