Skip to content

Instantly share code, notes, and snippets.

@pvhee
pvhee / Faucet.sol
Created September 17, 2021 18:14
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=undefined&optimize=false&runs=200&gist=
// SPDX-License-Identifier: CC-BY-SA-4.0
// Version of Solidity compiler this program was written for
pragma solidity 0.8.7;
// Our first contract is a faucet!
contract Faucet {
// Accept any incoming amount
receive() external payable {}
{
"contentTypes": [
{
"sys": {
"space": {
"sys": {
"type": "Link",
"linkType": "Space",
"id": "zsfivwzfgl3t"
}
#!/usr/bin/env bash
[ -f ~/.bashrc ] && . ~/.bashrc
# Changing path to project master
cd ../repository
# Install NPM packages
echo -e "\e[33m1. Running YARN install"
yarn install --no-progress
---
platform: linux
image_resource:
type: docker-image
source: {repository: cypress/base, tag: "8"}
inputs:
- name: repository
path: repository
@pvhee
pvhee / feature-test.yml
Created January 30, 2019 14:33
feature-test (Concourse CI job)
- name: feature-test
serial: true
plan:
- aggregate:
- get: spa-giftaid
passed: [deploy-staging]
trigger: true
- get: bootstrap
- task: 'Run feature tests'
file: bootstrap/scripts/cypress/cypress.yml
@pvhee
pvhee / christmas.sh
Last active December 18, 2018 11:14
Chrismtas Tree at CR
#!/bin/bash
trap "tput reset; tput cnorm; exit" 2
clear
tput civis
lin=2
col=$(($(tput cols) / 2))
c=$((col-1))
est=$((c-2))
color=0
tput setaf 2; tput bold
<!-- InstaWidget -->
<a href="https://instawidget.net/v/tag/everydaycomicrelief" id="link-537042380972653516fc84968d3b759a14301b996a0cdbe55523a19d3ebb581d">#everydaycomicrelief</a>
<script src="https://instawidget.net/js/instawidget.js?u=537042380972653516fc84968d3b759a14301b996a0cdbe55523a19d3ebb581d&width=300px"></script>
### Keybase proof
I hereby claim:
* I am pvhee on github.
* I am pvhee (https://keybase.io/pvhee) on keybase.
* I have a public key ASDMXzuDDkMgC6s8QPiyq317JDuisJIKUYgu3CXj6wuPIQo
To claim this, I am signing this object:
@pvhee
pvhee / geo.geojson
Last active January 12, 2017 16:26
Sample geo gist
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pvhee
pvhee / google_tag_broken_tests.patch
Created September 4, 2016 14:33
google_tag_broken_tests.patch
diff --git a/google_tag.routing.yml b/google_tag.routing.yml
index b7d1fba..82dd94b 100644
--- a/google_tag.routing.yml
+++ b/google_tag.routing.yml
@@ -2,6 +2,6 @@ google_tag.settings_form:
path: "/admin/config/system/google_tag"
defaults:
_title: "Google Tag Manager"
- _form: "\Drupal\google_tag\Form\GoogleTagSettingsForm"
+ _form: '\Drupal\google_tag\Form\GoogleTagSettingsForm'