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
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 requests | |
| import xml.etree.ElementTree as ET | |
| import json | |
| import multiprocessing | |
| answer_urls = [] | |
| def do_work(url): | |
| print(url) | |
| urls = [] |
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
| # -*- coding: utf-8 -*- | |
| """ | |
| /*************************************************************************** | |
| WMS Catasto Agenzia delle Entrate CC BY 4.0 | |
| ------------------- | |
| copyright : (C) 2020 by Giulio Fattori | |
| email : xxxxx.xxxxxxx@xxxxx.it | |
| ***************************************************************************/ | |
| """ |
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> | |
| let password = '' | |
| const hash = s => | |
| s.split('').reduce((a, b) => { | |
| a = (a << 5) - a + b.charCodeAt(0) | |
| return a & a | |
| }, 0) | |
| $: console.log(password, hash(password)) |
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 React, { useRef, useEffect } from 'react'; | |
| import * as d3 from 'd3'; | |
| interface IProps { | |
| data?: number[]; | |
| } | |
| /* Component */ | |
| export const MyD3Component = (props: IProps) => { | |
| /* The useRef Hook creates a variable that "holds on" to a value across rendering |
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
| license: mit | |
| height: 620 | |
| border: no |
Early/simplifed version of You Draw It: What Got Better or Worse During Obama’s Presidency
d3.drag is pretty great!
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 * as d3 from 'd3'; | |
| import React from 'react'; | |
| const top = 1; | |
| const right = 2; | |
| const bottom = 3; | |
| const left = 4; | |
| const epsilon = 1e-6; | |
| function translateX(scale0, scale1, d) { |
A version of this strip map with some labeled features.
Labels are a bit trickier than background features because you don't want to clip them to the zones, but you can't just create one copy per zone of each, or you'll get a bunch of identical labels approximately on top of each other and it will look weird. This uses a point-in-polygon test to assign each labeled point to its proper zone at the start. Once that assignment is done, you could put the labels in their own top layer if you had to worry about other features overlapping (not really an issue in this case).
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> | |
| <!-- See also: http://kempe.net/blog/2014/06/14/leaflet-pan-zoom-image.html --> | |
| <head> | |
| <link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.css"></script> | |
| <style> | |
| #image-map { | |
| width: 100%; | |
| height: 300px; | |
| border: 1px solid #ccc; | |
| margin-bottom: 10px; |
NewerOlder
