Skip to content

Instantly share code, notes, and snippets.

View Alexintosh's full-sized avatar
🧑‍🍳
Baking

Alessio Delmonti Alexintosh

🧑‍🍳
Baking
View GitHub Profile
@alecchampaign
alecchampaign / vault.sol
Last active December 3, 2017 11:32
Simple contract to store Ether.
pragma solidity ^0.4.18;
/** Simple contract to store Ether */
contract Vault
{
address owner;
uint balance;
// Modifier for authenticating owner
modifier ownerOnly(address _owner) {
@raineorshine
raineorshine / sendRawTransaction.js
Last active December 3, 2022 18:02
Sends a raw transaction with web3 v1.2.2, ethereumjs-tx v2.1.1, and Infura
const Web3 = require('web3')
const Tx = require('ethereumjs-tx').Transaction
// connect to Infura node
const web3 = new Web3(new Web3.providers.HttpProvider('https://mainnet.infura.io/INFURA_KEY'))
// the address that will send the test transaction
const addressFrom = '0x1889EF49cDBaad420EB4D6f04066CA4093088Bbd'
const privateKey = new Buffer('PRIVATE_KEY', 'hex')
@EQuimper
EQuimper / vsc.txt
Created April 20, 2017 19:55
Visual Studio Code shortcuts
Shortcuts
- shift+cmd+d -> create same line below
- shift+cmd+f -> open search in project
- cmd+d -> select full word
- cmd+d + shift-cmd-g -> search word in file
- shift+cmd+enter -> new line before
- cmd+enter -> new line after
- cmd+arrow -> go the end
- ctrl-tab -> go back to the recent file
@Morabaraba
Morabaraba / qici-projects.md
Last active March 10, 2017 09:30
List of QICI Projects with source

Firstly I want to thank the QICI team for their extensive list of demos. If you want to know how to do something you will most probably find a example there.

This list is more of projects I found scattered on github, self promotion, etc. If you want something added please let me know!

note atm most projects is just prototypes, toys or just someone checking the env and sharing their knowledge.

@ascendbruce
ascendbruce / README.md
Last active May 6, 2025 08:07
Use macOS-style shortcuts in Windows

Use macOS-style shortcuts in Windows / keyboard mappings using a Mac keyboard on Windows

ℹ️ There is a newer alternative project that does similar things and more, check it out at https://github.com/stevenilsen123/mac-keyboard-behavior-in-windows

Make Windows PC's shortcut act like macOS (Mac OS X) (using AutoHotkey (ahk) script)

With this AutoHotKey script, you can use most macOS style shortcuts (eg, cmd+c, cmd+v, ...) on Windows with a standard PC keyboard.

How does it work

@nrollr
nrollr / MongoDB_macOS_Sierra.md
Last active February 13, 2025 10:55
Install MongoDB on Sierra using Homebrew

Install MongoDB on macOS Sierra

This procedure explains how to install MongoDB using Homebrew on macOS Sierra 10.12.
Official MongoDB install documentation: here

Install Homebrew

  • Installing Homebrew is effortless, open Terminal and enter :
    $ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
@jagrosh
jagrosh / Github Webhook Tutorial.md
Last active May 7, 2025 23:23
Simple Github -> Discord webhook

Step 1 - Make a Discord Webhook

  1. Find the Discord channel in which you would like to send commits and other updates

  2. In the settings for that channel, find the Webhooks option and create a new webhook. Note: Do NOT give this URL out to the public. Anyone or service can post messages to this channel, without even needing to be in the server. Keep it safe! WebhookDiscord

Step 2 - Set up the webhook on Github

  1. Navigate to your repository on Github, and open the Settings Settings
@negativo
negativo / gist:547e3f8c05d55cfa706e4b8f38173c9d
Created September 30, 2016 14:59
Android Development on the Command Line
ANDROID CLI
1) Create Project
android create project \
--target 1 \
--name MyProjectName \
--path ./ProjectFolderPath \
--activity MyActivityName \
--package com.yourdomain.yourproject
@ethers
ethers / itmap.sol
Last active May 19, 2022 02:29 — forked from Arachnid/itmap.sol
Solidity iterable map
library itmap {
struct entry {
// Equal to the index of the key of this item in keys, plus 1.
uint keyIndex;
uint value;
}
struct itmap {
mapping(uint => entry) data;
uint[] keys;
@btroncone
btroncone / rxjs_operators_by_example.md
Last active March 30, 2025 21:26
RxJS 5 Operators By Example