Skip to content

Instantly share code, notes, and snippets.

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

Sixia "Leask" Huang Leask

🏠
Working from home
View GitHub Profile
@Leask
Leask / erlang-elixir-on-amazon-linux-2.sh
Last active June 1, 2022 15:42 — forked from techgaun/erlang-elixir-on-amazon-linux.md
Running elixir 1.12.1 on amazon linux 2
#!/bin/bash
# run this script with root privileges
# pre-install
yum install ncurses-devel openssl-devel gcc-c++ automake cmake fop unixODBC-devel libssh2-devel -y
yum groupinstall "Development Tools" -y
# More Dependencies Needed: *openjdk-devel, wxGTK-devel
# https://github.com/asdf-vm/asdf-erlang/issues/83
# https://gist.github.com/tharun-allu/dd7d123a1ee264e03d3656dd0727f362

Mario in pure CSS

Just a Mario done in pure CSS with box-shadow. It is done pixel by pixel, with a declaration of box-shadow for each pixeL; It has to be improved by doing areas of pixels with the spread parameter of box-shadow

A Pen by KingSavate on CodePen.

License.

@Leask
Leask / bin_search.js
Last active December 16, 2015 05:09
Pac Binary Search
var list = [
// [2130706433, 4278190080],
// [167772160, 4278190080],
// [2886729728, 4293918720],
// [3232235520, 4294901760],
[16777216, 4294901760],
[16842752, 4294901760],
[16908288, 4294901760],
[16973824, 4294901760],
[17039360, 4294901760],
@Leask
Leask / lyric
Created November 26, 2012 15:01 — forked from scturtle/gist:3696493
Fetch lyrics from qianqian.com
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Flora Lyric by LeaskH.com
# Originated by scturtle <scturtle@gmail.com>
import urllib, urllib2
import random
import re
import argparse
from xml.dom import minidom