Skip to content

Instantly share code, notes, and snippets.

View andremedeiros's full-sized avatar
:shipit:

André Medeiros andremedeiros

:shipit:
View GitHub Profile
test 123
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>
}
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQENBF6xjdoBCADJ9wCEMMvDLk8NrzYHA1aS51uJJJvs4dArSEDhlx79aKCkmrX/
2SKuo8V7gbRmJNn1EyKVmGr4jKqBQaLNmLrn13T6p1t5NikErjIH1Ph87NHxO10H
/JWy3O1PpVYjrgVYq7odm9wX02o46JQ5hqJ0ycZQXqJLreRDUg9sJ3QPKDymVhS/
82/D2ZXtMpBVK7LfRWY+Od0UAYEafYcT2+xlTAgz+bUtdWM+YimAiWMRVLNrpqeI
pv9Ri0fEBFyVTKRnjcixKIZ1c1InNivXxZmLgD+UrAMxPKQKH3qalxuIASG92qrB
WVFrdXxefdJ7k9L4oTvwd1C5IQuO/1vNQcrHABEBAAG0IEFuZHJlIE1lZGVpcm9z
IDxhbmRyZUBzdGF0dXMuaW0+iQFOBBMBCAA4FiEEf2r+XxTfAMOMgvYjzTYcN1bw
qHAFAl6xjdoCGwMFCwkIBwIGFQoJCAsCBBYCAwECHgECF4AACgkQzTYcN1bwqHAv
<html>
<head>
<script src="https://cdn.jsdelivr.net/gh/ethereum/web3.js@1.0.0-beta.34/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')
# typed: true
# frozen_string_literal: true
require('dev')
require('fileutils')
module Dev
module Helpers
class APFSVolume
extend(T::Sig)
package main
import (
"fmt"
"encoding/json"
)
type Thing1 struct {}
func (Thing1) DoThing() {}
// 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);
@andremedeiros
andremedeiros / ansible-bootstrap-ubuntu-16.04.yml
Created November 30, 2017 07:25 — forked from gwillem/ansible-bootstrap-ubuntu-16.04.yml
Get Ansible to work on bare Ubuntu 16.04 without python 2.7
# Add this snippet to the top of your playbook.
# It will install python2 if missing (but checks first so no expensive repeated apt updates)
# gwillem@gmail.com
- hosts: all
gather_facts: False
tasks:
- name: install python 2
raw: test -e /usr/bin/python || (apt -y update && apt install -y python-minimal)
@andremedeiros
andremedeiros / xterm-256color-italic.terminfo
Created November 24, 2017 06:15 — forked from sos4nt/xterm-256color-italic.terminfo
A xterm-256color based TERMINFO that adds the escape sequences for italic
# A xterm-256color based TERMINFO that adds the escape sequences for italic.
#
# Install:
#
# tic xterm-256color-italic.terminfo
#
# Usage:
#
# export TERM=xterm-256color-italic
#
@andremedeiros
andremedeiros / options.rb
Created December 16, 2014 17:16
Style poll
# 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 })"