Skip to content

Instantly share code, notes, and snippets.

Originall From: Posted 2015-05-29 http://ubwg.net/b/full-list-of-ffmpeg-flags-and-options
This is the complete list that’s outputted by ffmpeg when running ffmpeg -h full.
usage: ffmpeg [options] [[infile options] -i infile]… {[outfile options] outfile}…
Getting help:
-h — print basic options
-h long — print more options
-h full — print all options (including all format and codec specific options, very long)
// Emulate solidity keccak256(abi.encodepacked(string))
const { soliditySha3 } = require("web3-utils");
// Expected winning hash
const hash =
"0xf8eec0d6db1f110801e2771e5effbb2d209720f67e5608d521f96d516387e65b";
// Potential guesses to test
const guesses = {
red: ["the old guitarist"],
/**
* 1. Initialize new node project (npm init -y)
* 2. Run: npm install ethers
* 3. Add private key where PRIVATE_KEY
* 4. Optionally, update gas price (line 29) or chosen gas limit
* 4. Run: node score-claim.js
*/
// Imports
const ethers = require("ethers");
const { parseUnits } = require("@ethersproject/units");
@Anish-Agnihotri
Anish-Agnihotri / Rich.sol
Created March 6, 2021 22:53
Quick contract implementing Matteo's idea
// SPDX-License-Identifier: MIT
pragma solidity <=0.7.4;
// @name Rich
// @dev Contract to track richest owner and name and take ownership by paying cost
contract Rich {
string public richest = ""; // Name of richest
uint public cost = 0.001 ether; // Cost to take ownership
address payable public currentOwner; // Current richest owner
<?xml version="1.0" encoding="UTF-8"?>
<StyledLayerDescriptor xmlns="http://www.opengis.net/sld" xsi:schemaLocation="http://www.opengis.net/sld http://schemas.opengis.net/sld/1.1.0/StyledLayerDescriptor.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ogc="http://www.opengis.net/ogc" xmlns:se="http://www.opengis.net/se" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1.0">
<NamedLayer>
<se:Name>Roads of Hammarkullen</se:Name>
<UserStyle>
<se:Name>Roads of Hammarkullen</se:Name>
<se:FeatureTypeStyle>
<se:Rule>
<se:Name>Single symbol</se:Name>
<se:LineSymbolizer>
https://s3.amazonaws.com/google-landmark/train/images_0.tar
https://s3.amazonaws.com/google-landmark/train/images_1.tar
https://s3.amazonaws.com/google-landmark/train/images_2.tar
https://s3.amazonaws.com/google-landmark/train/images_3.tar
https://s3.amazonaws.com/google-landmark/train/images_4.tar
https://s3.amazonaws.com/google-landmark/train/images_5.tar
https://s3.amazonaws.com/google-landmark/train/images_6.tar
https://s3.amazonaws.com/google-landmark/train/images_7.tar
https://s3.amazonaws.com/google-landmark/train/images_8.tar
https://s3.amazonaws.com/google-landmark/train/images_9.tar
Verifying my Blockstack ID is secured with the address 1PbLgNTb2RAiAezddYDN3PxdWkc2JadJcb https://explorer.blockstack.org/address/1PbLgNTb2RAiAezddYDN3PxdWkc2JadJcb
if (typeof(eWgs) === 'undefined') {
document.write('<scr' + 'ipt src="https://api.ethplorer.io/widget.js?' + new Date().getTime().toString().substr(0, 7) + '" async></scr' + 'ipt>');
var eWgs = [];
}
eWgs.push(function() {
ethplorerWidget.init(
'#explorer', // Placeholder element
'tokenHistory', // Widget type
{
address: '0x5Af2Be193a6ABCa9c8817001F45744777Db30756', // keep empty to show all tokens
/* VARIABLES */
var canvas, scene, renderer, data;
// Cache DOM selectors
var container = document.getElementsByClassName('js-globe')[0];
// Object for country HTML elements and variables
var elements = {};
(function() {
// Hungarian notation
// (http://en.wikipedia.org/wiki/Hungarian_notation)
// n - HTML-Node
// o - object
// s - string
// i - integer
// a - array
// b - boolean
// f - float