Skip to content

Instantly share code, notes, and snippets.

View loisaidasam's full-sized avatar
🙌
🙌

Loisaida Sam loisaidasam

🙌
🙌
View GitHub Profile
@loisaidasam
loisaidasam / README.md
Last active October 7, 2016 18:17
[Monthly Challenge #11 - October, 2016] - Procedural Ghosts and Jack-o-Lanterns!

https://www.reddit.com/r/proceduralgeneration/comments/55xkud/monthly_challenge_11_october_2016_procedural/

The winner of last month's competition wasn't around to give a suggestion on topic, so this is what I came up with! It's October again! With all this spooky stuff abound I thought we could have some festivities of our own. Jack-o-lanterns and ghosts are just begging to be procedurally generated, but if you want to do bats or skeletons or something that's OK too as long as it's halloween themed!

===

My solution is an ASCII ghost that travels back and forth across your terminal randomishly. Happy Halloween!

ASCII ghost design via http://www.ascii-code.com/ascii-art/mythology/ghosts.php

@loisaidasam
loisaidasam / condom_slogans.sh
Last active March 6, 2025 03:42
Condom Slogans!
# Kudos to @jdp for the help!
curl -Ss http://www.condomslogans.com/ | pup --plain 'font[size=2] text{}' | ruby -e 'STDIN.read.scan(/(\d+)\)\s+(.*)\n/).each{|m|puts "#{m[0]}) #{m[1]}"}'
@loisaidasam
loisaidasam / lunch.coffee
Last active May 25, 2016 15:45
Hubot script to help you figure out what to eat for lunch (based on a foursquare list)
# Description:
# Figure out what to eat for lunch!
#
# Dependencies:
# None
#
# Configuration:
# FOURSQUARE_CLIENT_ID - a foursquare app's client id
# FOURSQUARE_CLIENT_SECRET - a foursquare app's client secret
# FOURSQUARE_LIST_ID - a foursquare list id
@loisaidasam
loisaidasam / README.md
Last active April 5, 2016 17:48
Delicious Tag Slugger
{
"exclamations": [
"Holy Agility",
"Holy Almost",
"Holy Alphabet",
"Holy Alps",
"Holy Alter Ego",
"Holy Anagram",
"Holy Apparition",
"Holy Armadillo",
@loisaidasam
loisaidasam / bellababy.sh
Created February 3, 2016 06:25
Download your bellababy photos
#!/bin/bash
# To download your BellaBaby photos
# (people who come to the hospital and take photos of you and your newborn)
# Note: They are watermarked - you have to pay (big bucks) for the originals!
# This seemed to be the convention for my photos:
TAG="<photographer_name><date><your_last_name>"
# Files 1-9 have slightly different structure...
files:
"/opt/elasticbeanstalk/hooks/appdeploy/post/997_setup_ps1.sh":
mode: "000755"
owner: ec2-user
group: ec2-user
content: |
#!/usr/bin/env bash
# Custom bash prompt via kirsle.net/wizards/ps1.html ("Pink and Blue" theme)
echo "Setting up PS1 ..."
@loisaidasam
loisaidasam / epoch.sh
Last active November 9, 2015 23:01
Figuring out how to pronounce the word "epoch", trying OSX's `say` voices randomly
#!/bin/bash
# Figuring out how to pronounce the word "epoch", trying OSX's `say` voices randomly
# Note: requires `rl` (randomize lines) http://arthurdejong.org/rl/
while true ; do voice=`say -v '?' | awk -F ' ' '{print $1}' | rl -c 1` ; echo $voice; say -v $voice epoch ; done
@loisaidasam
loisaidasam / mktmpenv.txt
Last active December 7, 2021 07:26
TIL how to make a temporary virtualenv - thanks @hery!
$ mktmpenv
New python executable in tmp-f4732394b48189f9/bin/python
Installing setuptools............done.
Installing pip...............done.
This is a temporary environment. It will be deleted when you run 'deactivate'.
(tmp-f4732394b48189f9) sallah:~/.virtualenvs/tmp-f4732394b48189f9$ deactivate
Removing temporary environment: tmp-f4732394b48189f9
Removing tmp-f4732394b48189f9...
var client = require('socket.io-client');
function HorseBot() {
var self = this;
var socket;
var response;
this.init = function() {
socket = client('http://chatroom.horse');