Skip to content

Instantly share code, notes, and snippets.

This post links my 3Box profile to my Github account! Web3 social profiles by 3Box.
✅ did:muport:QmX6JtGBpFiyZ6B1gL85ao4xmoV9zmhkxYXF2eAqxKS167 ✅
Create your profile today to start building social connection and trust online at https://3Box.io/
#!/usr/bin/env bash
# Instructions:
# 1. Create a webhook here https://getmakerlog.com/apps/webhooks
# 2. Add generated key into this file
# 3. Write contents to .git/hooks/post-commit in the repos you want to track
WEBHOOK_URL="https://api.getmakerlog.com/apps/webhook/<your web hook key>"
MESSAGE=`git log -1 --pretty=%B`
curl --silent --output /dev/null -d "{\"done\":\"true\", \"content\":\"Commited: $MESSAGE\"}" -H "Content-Type: application/json" -X POST $WEBHOOK_URL
import React from "react"
import styled from "styled-components"
const AdWrapper = styled.div`
text-align: center;
margin: 1em;
`
const AdFrame = styled.iframe`
border: 0;
width: 320px;
// From https://docs.unity3d.com/2018.1/Documentation/ScriptReference/Camera.RenderToCubemap.html
using UnityEngine;
using UnityEditor;
using UnityEngine.Rendering;
using System.Collections;
public class RenderEquirectWizard : ScriptableWizard
{
public Transform renderFromPosition;
RenderTexture cubemap;
@vertis
vertis / .babelrc
Last active December 30, 2018 09:10
{
presets: [
[
"@babel/env",
{
targets: {
node: "current",
},
},
],
Type `GoogleARCore.AugmentedImageDatabase' does not contain a definition for `Add' and no extension method `Add' of type `GoogleARCore.AugmentedImageDatabase' could be found. Are you missing an assembly reference?

Keybase proof

I hereby claim:

  • I am vertis on github.
  • I am vertis (https://keybase.io/vertis) on keybase.
  • I have a public key ASAvJLZOXKabTOSHyLq9B4LAz5WJcAJ8rBdRUwkaeTrc4go

To claim this, I am signing this object:

@vertis
vertis / guessing_game.rb
Created June 26, 2014 12:45
This is a very basic example of a genetic algorithm for guessing the the correct word(s). Run with: ruby guessing_game.rb "My Word"
require 'pry'
class GuessOrganism
attr_accessor :guess
def initialize(word)
@guess = word
end
def fitness(target_word)
target = target_word
#!/bin/bash
# node.js using PPA (for statsd)
sudo apt-get --yes install python-software-properties
sudo apt-add-repository --yes ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get --yes install nodejs npm
# Install git to get statsd
sudo apt-get --yes install git
# AWS Sydney
traceroute bb-m.rubygems.org
traceroute to bb-m.rubygems.org (199.91.171.93), 30 hops max, 60 byte packets
1 ec2-54-252-0-8.ap-southeast-2.compute.amazonaws.com (54.252.0.8) 15.612 ms 15.604 ms 15.582 ms
2 54.240.192.106 (54.240.192.106) 1.588 ms 1.603 ms 1.585 ms
3 54.240.192.76 (54.240.192.76) 1.552 ms 1.542 ms 1.537 ms
4 202.68.70.5 (202.68.70.5) 1.861 ms 1.892 ms 1.844 ms
5 xe-5-1-0.r05.sydnau01.au.bb.gin.ntt.net (202.68.64.162) 1.929 ms 1.941 ms 1.643 ms
6 as-0.r02.lsanca03.us.bb.gin.ntt.net (129.250.3.18) 139.494 ms p16-1-2-0.r02.lsanca03.us.bb.gin.ntt.net (129.250.3.192) 138.444 ms 138.632 ms
7 xe-2-1-9.r20.lsanca03.us.bb.gin.ntt.net (129.250.2.141) 138.544 ms xe-0-1-3.r21.lsanca03.us.bb.gin.ntt.net (129.250.2.189) 139.774 ms xe-2-1-9.r20.lsanca03.us.bb.gin.ntt.net (129.250.2.141) 138.746 ms