Skip to content

Instantly share code, notes, and snippets.

View henryhamon's full-sized avatar
🏠
Working from home

Henry Hamon henryhamon

🏠
Working from home
View GitHub Profile
Class codeGolf.Pyramid
{
ClassMethod Build(f As %Integer)
{
; Your code here
}
}
@henryhamon
henryhamon / codeGolf.OrderOfWords.cls
Last active August 13, 2022 15:57
CodeGolf.OrderOfWords
Class codeGolf.OrderOfWords
{
ClassMethod Order(a As %String) As %String
{
; your code here
Q ""
}
}
Class CodeGolf.Leet
{
ClassMethod Convert(a As %String) As %String
{
; your code here
Q ""
}
}
@henryhamon
henryhamon / beautiful.css
Last active May 18, 2022 12:56
Iriszord poc
:root {
--border-color: #cacaca;
--background-color: #ffffff;
--background-box-title: #f7f7f7;
}
html, body {
margin: 0px;
padding: 0px;
@henryhamon
henryhamon / codeGolf.Anagram.cls
Last active April 17, 2022 00:35
codeGolf.Anagram
Class codeGolf.Anagram
{
ClassMethod Detector(a As %String, b As %String) As %Boolean
{
; your code here
Q 0
}
}
@henryhamon
henryhamon / codeGolf.LabelCode.cls
Last active March 4, 2022 19:36
codeGolf.LabelCode
Class codeGolf.LabelCode
{
ClassMethod Validate(s As %String) As %Boolean
{
Quit 0
}
}
@henryhamon
henryhamon / CodeGolf.PairedOpposites.cls
Created January 24, 2022 23:35
Code Golf: Only Paired Opposites
Class CodeGolf.PairedOpposites
{
ClassMethod Solve(opposites As %String) As %Integer
{
Quit ""
}
}
@henryhamon
henryhamon / CodeGolf.Encoder.cls
Last active November 17, 2021 12:10
CodeGolf Encoder
Class dc.golf.Encoder
{
ClassMethod Compress(coordinates As %String) As %String
{
Quit ""
}
}
@henryhamon
henryhamon / herokutelegrambot.py
Created October 4, 2021 10:57 — forked from liuhh02/herokutelegrambot.py
Starter python code for deploying telegram bot with heroku using the library python-telegram-bot
"""
Simple Bot to reply to Telegram messages taken from the python-telegram-bot examples.
Deployed using heroku.
Author: liuhh02 https://medium.com/@liuhh02
"""
import logging
from telegram.ext import Updater, CommandHandler, MessageHandler, Filters
import os
@henryhamon
henryhamon / Docker
Created September 14, 2021 16:15
Golang Docker file
FROM golang:1.16.7-alpine AS builder
# git is needed to download those packages
# use this if u called to any https service
RUN apk --update add --no-cache ca-certificates openssl git && update-ca-certificates
# without ssl
RUN apk --update add --no-cache git
WORKDIR /app
copy go.mod ./
copy go.sum ./
RUN go mod download