Skip to content

Instantly share code, notes, and snippets.

View synthmeat's full-sized avatar
👊
git push or git out

Ante Perić synthmeat

👊
git push or git out
View GitHub Profile
function run() {
var response = UrlFetchApp.fetch('https://api.livecoinwatch.com/coins/single', {
'method': 'post',
'headers': {
'Content-type': 'application/json; charset=UTF-8',
'x-api-key': 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx',
},
'payload': JSON.stringify({
"currency": 'USD',
"code": 'ETH',
@alabamenhu
alabamenhu / Grammar proposal.md
Last active November 21, 2021 15:32
Grammar proposal

This is designed to be a working proposal. Comments/corrections/suggestions are welcome, as the first draft was written fairly hastily. I'm working on doing a rough implementation to play around with, beginning with the Binex proposal, which can be found here. It is not currently a full implementation of this proposal, but progressing rapidly.

Background

Grammars in Raku are awesome, and allow for some truly amazing text parsing.
Unfortunately, they are less than ideal for binary files, and there is no way to have them support matching objects, both of which would be very useful (image being able to pattern match on an AST!) This requires writing complex and/or error prone workaround code.

Goal

@Swader
Swader / odgovor.md
Last active December 11, 2018 17:57
What it's like to live in Croatia

Life in Croatia

As with any place, there are a few pros and a number of cons. Most of my experiences are derived from living and working in the country. A bird’s eye view if you like.

At a high level, to continue with the bird theme, Croatia has an attractive climate with four distinct seasons. There is a proper coast line with plenty to choose from in terms of places to go and hang out during the summer. It’s countryside quite beautiful. The country’s infrastructure generally works due almost entirely to EU largesse. Commercially there is a reasonably educated work force that is sadly bereft of opportunity. Relationships with Croats is generally transactional and individual success is punished.

Economics and Business

Taxation rate is a whopping 61% with employers having to add an additional 17%. The effective impact of this means, with the best part of 80% going to income based taxation, there is a thriving cash or black market system and it functions as a massive disincentive for local companies to

@fnky
fnky / ANSI.md
Last active May 3, 2024 00:12
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
@bradp
bradp / setup.sh
Last active May 1, 2024 21:34
New Mac Setup Script
echo "Creating an SSH key for you..."
ssh-keygen -t rsa
echo "Please add this public key to Github \n"
echo "https://github.com/account/ssh \n"
read -p "Press [Enter] key after this..."
echo "Installing xcode-stuff"
xcode-select --install