Skip to content

Instantly share code, notes, and snippets.

danyalette

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
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
danyalette / bash_ascii_animation.sh
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.
View bash_ascii_animation.sh
#!/bin/bash
# hash bang bin bash!
function ascii_anim() {
if [[ $# -eq 0 ]] ; then
echo 'Please specify a directory.'
return
fi
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
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
<?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
danyalette / ls-recent.sh
Created May 19, 2016
lsr - bash function to list most recently modified files in dir, takes 1 argument - max number of files to list
View ls-recent.sh
function lsr(){
# check if no argument has been supplied
if [ $# -eq 0 ]
then
# if no arg, set file count to 1
count=1
else
# if there is an arg, make sure it's an integer
re='^[0-9]+$'
if ! [[ $1 =~ $re ]] ; then
View keybase.md

Keybase proof

I hereby claim:

  • I am danyalette on github.
  • I am danyalette (https://keybase.io/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.