Skip to content

Instantly share code, notes, and snippets.

View mcyenikoylu's full-sized avatar
🏝️
is undergoing change..

Cenk Yenikoylu mcyenikoylu

🏝️
is undergoing change..
View GitHub Profile
pragma solidity ^0.4.18;
contract SharedAccount {
// Owner takes all the money.
// Owner can close account and share the balance with all accounts.
// Owner can change owner.
struct AccountBalance {
address addr;
uint balance;
@DanielSWolf
DanielSWolf / Program.cs
Last active June 13, 2024 17:26
Console progress bar. Code is under the MIT License: http://opensource.org/licenses/MIT
using System;
using System.Threading;
static class Program {
static void Main() {
Console.Write("Performing some task... ");
using (var progress = new ProgressBar()) {
for (int i = 0; i <= 100; i++) {
progress.Report((double) i / 100);
@wh1tney
wh1tney / deploy-static-site-heroku.md
Last active June 24, 2024 20:17
How to deploy a static website to Heroku

Gist

This is a quick tutorial explaining how to get a static website hosted on Heroku.

Why do this?

Heroku hosts apps on the internet, not static websites. To get it to run your static portfolio, personal blog, etc., you need to trick Heroku into thinking your website is a PHP app. This 6-step tutorial will teach you how.

Basic Assumptions