echo "Enter m3u8 link:";read link;echo "Enter output filename:";read filename;ffmpeg -i "$link" -bsf:a aac_adtstoasc -vcodec copy -c copy -crf 50 $filename.mp4
China has now eclipsed US in AI / deep-learning research, robotics and VC funding (government-backed $338 billion)
Sources
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
To export SVG from Google Slides. | |
1. Open Slide deck. | |
2. View -> 100% | |
3. Click on every thumbnail from first to last, this puts the SVG into the DOM. | |
4. Paste the export.js in the console. | |
5. Make sure to allow multiple downloads. | |
6. All SVG should be in Downloads folder. | |
Cheers, |
"Fakes" an element capture by cropping a full screen image to the boundaries of a DOM element
var canvas = null;
function capture(tabId, dimensions) {
chrome.tabs.get(tabId, function(tab) {
chrome.tabs.captureVisibleTab(tab.windowId, { format: "png" }, function(dataUrl) {
if (!canvas) {
canvas = document.createElement("canvas");
document.body.appendChild(canvas);
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
p { | |
font-size:18px; | |
line-height:24px; | |
text-align: justify; | |
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAbCAYAAAC5rTVJAAAA3ElEQVQY0wXBwU3CABQA0Oe3IVgarFpDwYNH41GvLuMYzuQ4boBKiqGBptbCoQHf8+b19C4/vb44RWElmTdWEyJXaUuqMZFaO1zykxCJ2nDBJoghoxnjeCv6lHqEYSaaKdsc+4WoMz5nN/QLsZ7wcXjkrxSrCdvjE10hqjG+zmlz8ZOgSehTsQkcS7pEON6yD4VBGGa0Y6Ve2C/YPptrhH7h+vvgTi38lR7USmuhK9zrZZZCm7uy1VkKfSrVoRa6xJmdQisKA1qjlCj1Er/SjJhrDCrNlLhTK+3UGf/2IVZs3eANJQAAAABJRU5ErkJggg==); | |
background-size:100% 72px; | |
-webkit-background-clip:text; | |
-webkit-text-fill-color:transparent | |
} |
A nice list of icon sets that can be used as web fonts. Handy for building Electron apps too.
Name | URL | Version | License | Created By | Icon Cnt | Source | Url1 | Url2 |
---|---|---|---|---|---|---|---|---|
Brandico | https://github.com/fontello/brandico.font | 2014.04.07 | SIL | Crowdsourced, for Fontello project | 45 | http://fontello.com/ |
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
src = '# Magic Deck\n\n## A markdown editor for creating magical slide shows\n\n---\n\n# How to Use\n\nJust use `---` for each slide and markdown syntax to make it look pretty.\n\nWhen you\'re ready, just use `⌘+R` to render.\n\n---\n\n# Your Turn\n\n'; | |
var index = src.match(new RegExp('---\n\n', "gi")).length; | |
console.log('Found: ' + index); | |
var pos = src.indexOf('---\n\n', 75); | |
console.log('Pos: ' + pos); |
This is a work in progress. Check back frequently.