https://tutorials.ubuntu.com/tutorial/tutorial-create-a-usb-stick-on-ubuntu#0
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
| <html> | |
| <head> | |
| <title>Unpinned Merchants</title> | |
| <script type='text/javascript' src='https://www.google.com/jsapi'></script> | |
| <script type='text/javascript' src='zingchart/resources/jquery.min.js'></script> | |
| <script type='text/javascript'> | |
| google.load('visualization', '1', {packages:['table']}); | |
| google.setOnLoadCallback(reload_executions); | |
| // set up the fixed locations and paths for this metric visualization. | |
| // we need to be able to pick the server (prod, uat, dev). |
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 BatchStream = require('batch-stream2') | |
| var gulp = require('gulp') | |
| var coffee = require('gulp-coffee') | |
| var uglify = require('gulp-uglify') | |
| var cssmin = require('gulp-minify-css') | |
| var bower = require('gulp-bower-files') | |
| var stylus = require('gulp-stylus') | |
| var livereload = require('gulp-livereload') | |
| var include = require('gulp-include') | |
| var concat = require('gulp-concat') |
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 list = document.getElementsByClassName('pl-video-time'); | |
| var time = 0; | |
| function toS(hms) { | |
| var a = hms.split(':'); | |
| while (a.length < 3) { | |
| a.unshift(0); | |
| } | |
| var seconds = (+a[0]) * 60 * 60 + (+a[1]) * 60 + (+a[2]); | |
| return seconds; |
- Modify & run
dump-sequelize-schema.js.- It currently uses a few
lodashmethods, so be sure to temporarily install them—or if you feel up to it you can rewrite the script so they're not needed. npm i lodash.sortby lodash.pick lodash.omit lodash.mapvalues
- It currently uses a few
- Inspect
sequelize-schema.jsonand make sure it appears represent all of your tables, attributes, indexes, constraints, references, etc... - When you are satisfied, copy and rename
sequelize-schema.jsonfile into amigration-extras/directory that is next to yourmigrations/. Name itinitial-sequelize-schema.json.migration-extras/- ->
initial-sequelize-schema.json
- ->
migrations/- (this folder should probably be empty)
- Run
sequelize migration:createand then copy the contents of2018XXXXXXXXXX-initial-migration.jsinto the newly generated migration script. No additional modifications are required if y
Note: YouTube is serving thumbnails from 2 servers:
//img.youtube.com//i.ytimg.com
Examples are with //i.ytimg.com server just because it’s shorter, no other particular reason. You can use both.
-
Player Background Thumbnail (480x360):
The package that linked you here is now pure ESM. It cannot be require()'d from CommonJS.
This means you have the following choices:
- Use ESM yourself. (preferred)
Useimport foo from 'foo'instead ofconst foo = require('foo')to import the package. You also need to put"type": "module"in your package.json and more. Follow the below guide. - If the package is used in an async context, you could use
await import(…)from CommonJS instead ofrequire(…). - Stay on the existing version of the package until you can move to ESM.