Skip to content

Instantly share code, notes, and snippets.

View snowsky's full-sized avatar
💭
I may be slow to respond.

Hao snowsky

💭
I may be slow to respond.
  • Canada
View GitHub Profile
@snowsky
snowsky / solana-rent-share-example-client.ts
Created December 6, 2021 00:21 — forked from BryanMorgan/solana-rent-share-example-client.ts
Solana Rent Share Client Example - basic agreement setup, initialization, and rental payment
import {
Connection,
Cluster,
Keypair,
clusterApiUrl,
PublicKey,
sendAndConfirmTransaction,
SystemProgram,
Transaction,
SYSVAR_RENT_PUBKEY,
@snowsky
snowsky / dst.py
Created February 4, 2020 02:14 — forked from dpapathanasiou/dst.py
How to tell if Daylight Savings Time is in effect using Python
from datetime import datetime
import pytz
def is_dst ():
"""Determine whether or not Daylight Savings Time (DST)
is currently in effect"""
x = datetime(datetime.now().year, 1, 1, 0, 0, 0, tzinfo=pytz.timezone('US/Eastern')) # Jan 1 of this year
y = datetime.now(pytz.timezone('US/Eastern'))
@snowsky
snowsky / golang_on_rpi.md
Last active December 31, 2019 19:21 — forked from simoncos/golang_on_rpi.md
Install Golang 1.9 on Raspberry Pi

Install Golang 1.9:

wget https://storage.googleapis.com/golang/go1.13.5.linux-armv6l.tar.gz
sudo tar -C /usr/local -xzf go1.13.5.linux-armv6l.tar.gz
export PATH=$PATH:/usr/local/go/bin # put into ~/.profile

If already installed old golang with apt-get:

---
- hosts: localhost
connection: local
gather_facts: no
vars:
projects:
- project: project01
- project: project02
- project: project03
@snowsky
snowsky / keybase.md
Created February 9, 2017 21:19
keybase.md

Keybase proof

I hereby claim:

To claim this, I am signing this object:

@snowsky
snowsky / teachers-needed.md
Last active August 29, 2015 14:25 — forked from 1Marc/workshops-planning.md
Workshop Teachers Needed

Looking for workshop teachers to teach on the following topics!

For introductions please tweet @frontendmasters, @1marc or email: marc at FrontendMasters.com. Thanks!

You can propose other topics too.

Published blog post detailing topics and allowed people to vote on priority: 2015 Frontend Masters topic poll

JavaScript

@snowsky
snowsky / d3lib.md
Last active August 29, 2015 14:24 — forked from widged/d3lib.md

chartFactory

/affini-tech/ChartFactory

Based on D3.JS and Dimple, ChartFactory provide the ability to build quickly D3.JS charts without coding any lines of javascript. Just define your dashboard in a JSON and voila !

charts: [
        {id:'chart1',
         width:800,height:250,

xAxis:{type:'Category',field: "Month",orderRule:'Date'},

@snowsky
snowsky / LICENSE.txt
Last active August 29, 2015 14:13 — forked from 140bytes/LICENSE.txt
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE