Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block danyalette

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
danyalette / slideshow.scss
Last active Feb 20, 2017
pure scss slideshow
View slideshow.scss
$images: "/images/fun.jpg", "/images/yay.jpg", "/images/wow.jpg";
$slide_duration: 2s;
//preload images
body:before {
$urls: url('');
@each $image in $images {
$urls: $urls + url(#{$image}) ;
danyalette /
Last active Feb 15, 2019
bash function to print an ascii animation. takes a directory as an argument. prints the contents of each file in the directory, in sequence.
# hash bang bin bash!
function ascii_anim() {
if [[ $# -eq 0 ]] ; then
echo 'Please specify a directory.'
View accessibility-text-zoom-mixin.scss
/* assuming you are programmatically adding the following classes to the body:
- text-zoom-70
- text-zoom-100
- text-zoom-130
@mixin font-size-accessible($font-size) {
font-size: $font-size;
danyalette / fontelloMakeSvgFiles.php
Last active Jun 8, 2016
make svg files from a fontello font's generated config file (for custom icons only)
View fontelloMakeSvgFiles.php
$string = file_get_contents("config.json");
$json = json_decode($string, true);
$glyphs = $json[glyphs];
// make directory to hold resultant files
if (!file_exists('svg')) {
mkdir('svg', 0755, true);
danyalette /
Created May 19, 2016
lsr - bash function to list most recently modified files in dir, takes 1 argument - max number of files to list
function lsr(){
# check if no argument has been supplied
if [ $# -eq 0 ]
# if no arg, set file count to 1
# if there is an arg, make sure it's an integer
if ! [[ $1 =~ $re ]] ; then

Keybase proof

I hereby claim:

  • I am danyalette on github.
  • I am danyalette ( on keybase.
  • I have a public key ASDr95oH_Oy4izQEjqb18c05Sgj_3D2RPOxYs1q4AkhVBQo

To claim this, I am signing this object:

You can’t perform that action at this time.