This Gist has been move to: https://github.com/lbgists/getmyip.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
while read font; do echo "$font"; figlet -f "$font" "nFlood"; done < <(figlist) > nFlood.txt | |
Default font: standard | |
Font directory: /usr/share/figlet | |
Figlet fonts in this directory: | |
1943____ | |
### # # ### ### #### ### # # ### # # | |
### # # ## ## #### ### # # ### # # | |
### # # ## #### ### # # ### # # | |
### # # ## ## # ### # # ### # # # ## |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Written by Yu-Jie Lin, 325311th | |
# https://gist.github.com/livibetter/7543115 | |
N=$((${1:-1000} - 1)) | |
# Method A | |
SUM3=0 ; ((N >= 3)) && SUM3=$(eval echo {3..$N..3}) | |
SUM5=0 ; ((N >= 5)) && SUM5=$(eval echo {5..$N..5}) |
This is a simple Bash script wrapping around LongURL API.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Copyright (c) 2013 Yu-Jie Lin | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: | |
The above copyright notice and this permission notice shall be included in |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import os | |
from something import a, b, c | |
print('''this will be a freaking long multi-line text string, let\'s see how autopep8 will do with it. | |
What else?''') | |
if True: | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
Folding paper in half 50 times is 3/4 of the distance from earth to sun | |
From: | |
http://www.quora.com/What-are-some-of-the-most-mind-blowing-facts#answer_526501 | |
Thickness of a sheet of paper: 0.1 mm (~0.004 inches) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
yt.dat |