Skip to content

Instantly share code, notes, and snippets.

Avatar
🎧
Writing code

Tom Busby tombusby

🎧
Writing code
View GitHub Profile
@tombusby
tombusby / elm-study-notes.md
Last active Dec 11, 2019
Elm Study Notes
View elm-study-notes.md

Elm Study Notes

Decoding Recursive Data Structures:

From Elm Slack

For example:

type ExtractFields
@vasa-develop
vasa-develop / EtherStore.sol
Created Jul 21, 2018
DO NOT USE THIS CODE. THIS CODE IS USED TO DEMONSTRATE A VULNERABILITY IN A SOLIDITY CODE.
View EtherStore.sol
contract EtherStore {
uint256 public withdrawalLimit = 1 ether;
mapping(address => uint256) public lastWithdrawTime;
mapping(address => uint256) public balances;
function depositFunds() public payable {
balances[msg.sender] += msg.value;
}
function withdrawFunds (uint256 _weiToWithdraw) public {
@SanderTheDragon
SanderTheDragon / postman-deb.sh
Last active Sep 20, 2021
A shellscript to create a Postman .deb file, for simple installation on Debian-based Linux distro's. Also creates a .desktop file.
View postman-deb.sh
#!/bin/sh
ls Postman*.tar.gz > /dev/null 2>&1
if [ $? -eq 0 ]; then
echo "Removing old Postman tarballs"
rm -f $(ls Postman*.tar.gz)
fi
curlExists=$(command -v curl)
@paragonie-scott
paragonie-scott / crypto-wrong-answers.md
Last active Aug 19, 2021
An Open Letter to Developers Everywhere (About Cryptography)
View crypto-wrong-answers.md
@joepie91
joepie91 / getting-started.md
Last active Aug 3, 2021
Getting started with Node.js
View getting-started.md

"How do I get started with Node?" is a commonly heard question in #Node.js. This gist is an attempt to compile some of the answers to that question. It's a perpetual work-in-progress.

And if this list didn't quite answer your questions, I'm available for tutoring and code review! A donation is also welcome :)

Setting expectations

Before you get started learning about JavaScript and Node.js, there's one very important article you need to read: Teach Yourself Programming in Ten Years.

Understand that it's going to take time to learn Node.js, just like it would take time to learn any other specialized topic - and that you're not going to learn effectively just by reading things, or following tutorials or courses. _Get out there and build things!

@TSiege
TSiege / The Technical Interview Cheat Sheet.md
Last active Sep 22, 2021
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.
View The Technical Interview Cheat Sheet.md

ANNOUNCEMENT

I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!






\

@disnet
disnet / gist:4973724
Created Feb 17, 2013
sed - convert literate haskell to plain haskell
View gist:4973724
sed '
s/^>//
t
s/^ *$//
t
s/^/-- /
' in.lhs > out.hs
@ndarville
ndarville / business-models.md
Last active Sep 13, 2021
Business models based on the compiled list at http://news.ycombinator.com/item?id=4924647. I find the link very hard to browse, so I made a simple version in Markdown instead.
View business-models.md

Business Models

Advertising

Models Examples
Display ads Yahoo!
Search ads Google
@henrik
henrik / personnummer.rb
Created Jan 29, 2009
Generate valid Swedish personnummer.
View personnummer.rb
# Generator for valid Swedish personnummer: http://en.wikipedia.org/wiki/Personal_identity_number_(Sweden)
# By Henrik Nyh <http://henrik.nyh.se> 2009-01-29 under the MIT license.
require 'date'
module Personnummer
def self.generate(date=nil, serial=nil)
date ||= Date.new(1900+rand(100), 1+rand(12), 1+rand(28))
serial = serial ? serial.to_s : format("%03d", 1+rand(999)) # 001-999