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
{ | |
"openapi": "3.0.0", | |
"info": { | |
"title": "playit.gg's api", | |
"version": "unstable" | |
}, | |
"servers": [ | |
{ | |
"url": "https://api.playit.gg" | |
} |
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
apt-get install -y \ | |
ca-certificates \ | |
curl \ | |
gnupg \ | |
lsb-release | |
mkdir -p /etc/apt/keyrings | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg | |
echo \ | |
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \ |
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
set -sg escape-time 0 | |
# Use C-a as prefix | |
unbind C-b | |
set-option -g prefix C-a | |
bind-key C-a send-prefix | |
# split panes using | and - | |
bind | split-window -h | |
bind - split-window -v |
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
ffmpeg -ss 61.0 -t 2.5 -i $1 -filter_complex "[0:v] split [a][b];[a] palettegen [p];[b][p] paletteuse" $2 |
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
auto end = std::chrono::high_resolution_clock::now(); | |
std::cout << (((float) std::chrono::duration_cast<std::chrono::nanoseconds>(end - start).count()) / 1000000.0f) << " milliseconds" << std::endl; |
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
package com.patricklorio.promise; | |
import java.util.ArrayList; | |
import java.util.function.Consumer; | |
/** | |
* @author plorio | |
*/ | |
public class Promise<T> { | |
public Promise(Async<T> async) { |
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
set -sg escape-time 0 | |
# Use C-a as prefix | |
unbind C-b | |
set-option -g prefix C-a | |
bind-key C-a send-prefix | |
# split panes using | and - | |
bind | split-window -h | |
bind - split-window -v |
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
Transaction submitted. TX ID | |
0xb4529008a87b728d059748e66e57d45d0b84468856f9cdf3d8152c30203d7df9 | |
View your transaction & Contract Address 0x9d95f787df552e038150de5f02c3066ce2bd4e53 |
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
pragma solidity 0.4.10; | |
contract SimpleEtherCardGame { | |
address[] players; | |
uint256 buy_in; | |
uint256 close_block; | |
uint8 closers; | |
bool started; | |
struct Player { |
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 a = "[\"test\", \"hello\", [\"world\", \"speak\", 3, [\"apple\"], 18], [\"foo\", \"bar\", [2, 3, 4], [2, 1], \"53\"]]"; | |
var b = "{ \"item\": [2, 3, { \"foo\": \"bar\", \"test\": { \"run\": [5, 4, 8] } }, { \"test\": \"yes\" } ] }"; | |
// extract(a, "0") returns "test" | |
// extract(a, "3.2.0") returns 2 | |
// extract(b, "item.2.foo") returns "bar" |
NewerOlder