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
test | 123 |
---|
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
extern crate yaml_rust; | |
use yaml_rust::{Yaml,YamlLoader}; | |
use std::collections::HashMap; | |
#[derive(Debug)] | |
struct Project { | |
name: String, | |
url: String, | |
deps: HashMap<String, String> | |
} |
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
-----BEGIN PGP PUBLIC KEY BLOCK----- | |
mQENBF6xjdoBCADJ9wCEMMvDLk8NrzYHA1aS51uJJJvs4dArSEDhlx79aKCkmrX/ | |
2SKuo8V7gbRmJNn1EyKVmGr4jKqBQaLNmLrn13T6p1t5NikErjIH1Ph87NHxO10H | |
/JWy3O1PpVYjrgVYq7odm9wX02o46JQ5hqJ0ycZQXqJLreRDUg9sJ3QPKDymVhS/ | |
82/D2ZXtMpBVK7LfRWY+Od0UAYEafYcT2+xlTAgz+bUtdWM+YimAiWMRVLNrpqeI | |
pv9Ri0fEBFyVTKRnjcixKIZ1c1InNivXxZmLgD+UrAMxPKQKH3qalxuIASG92qrB | |
WVFrdXxefdJ7k9L4oTvwd1C5IQuO/1vNQcrHABEBAAG0IEFuZHJlIE1lZGVpcm9z | |
IDxhbmRyZUBzdGF0dXMuaW0+iQFOBBMBCAA4FiEEf2r+XxTfAMOMgvYjzTYcN1bw | |
qHAFAl6xjdoCGwMFCwkIBwIGFQoJCAsCBBYCAwECHgECF4AACgkQzTYcN1bwqHAv |
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
<html> | |
<head> | |
<script src="https://cdn.jsdelivr.net/gh/ethereum/[email protected]/dist/web3.js"></script> | |
<script src="https://cdn.ethers.io/scripts/ethers-v4.min.js"></script> | |
</head> | |
<body> | |
<script> | |
document.addEventListener("DOMContentLoaded", function () { | |
if (typeof window === 'undefined' || !window.ethereum) { | |
alert('noce dice') |
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
# typed: true | |
# frozen_string_literal: true | |
require('dev') | |
require('fileutils') | |
module Dev | |
module Helpers | |
class APFSVolume | |
extend(T::Sig) |
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
package main | |
import ( | |
"fmt" | |
"encoding/json" | |
) | |
type Thing1 struct {} | |
func (Thing1) DoThing() {} |
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
// gcc -lcmark -o test test.c | |
#include <cmark.h> | |
int main(int argc, char *argv[]) { | |
int options = CMARK_OPT_DEFAULT; | |
cmark_parser *parser = cmark_parser_new(options); | |
cmark_parser_feed(parser, "Hello **world**.\n", 17); | |
cmark_node *document = cmark_parser_finish(parser); |
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
# Add this snippet to the top of your playbook. | |
# It will install python2 if missing (but checks first so no expensive repeated apt updates) | |
# [email protected] | |
- hosts: all | |
gather_facts: False | |
tasks: | |
- name: install python 2 | |
raw: test -e /usr/bin/python || (apt -y update && apt install -y python-minimal) |
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
# A xterm-256color based TERMINFO that adds the escape sequences for italic. | |
# | |
# Install: | |
# | |
# tic xterm-256color-italic.terminfo | |
# | |
# Usage: | |
# | |
# export TERM=xterm-256color-italic | |
# |
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
# Option 1 | |
info = if publication | |
"Title: #{ publication.title } (ID: #{ publication.id })" | |
else | |
'N/A' | |
end | |
# Option 2 | |
info = case publication | |
when Publication then puts "Title: #{ publication.title } (ID: #{ publication.id })" |
NewerOlder