Skip to content

Instantly share code, notes, and snippets.

@jlollis
jlollis / python_tuples.py
Created March 22, 2019 04:54 — forked from ShyamaSankar/python_tuples.py
Cheat sheet for Python tuples
#### Tuple creation #####
# Create a tuple, also called tuple packing.
numbers = 1, 2
print(numbers) # Output: (1, 2) <- Note that it is represented with an enclosing paranthesis
# Create tuple with paranthesis.
numbers = (1, 2, 3)
print(numbers) # Output: (1, 2, 3)
# Create an empty tuple.
numbers = ()
print(numbers) # Output: ()
@jlollis
jlollis / fish.sim
Created March 21, 2019 05:12 — forked from sinclairtarget/fish.sim
Simula Demonstration
Simulation Begin
! We will use this as input to Normal() below ;
Integer seed;
! Utility method for logging messages along with the current simulation
time ;
Procedure log(message); Text message; Begin
OutFix(Time, 2, 0);
OutText(": " & message);
OutImage;
@jlollis
jlollis / webstormshortcuts.txt
Last active March 15, 2019 14:58
WebStorm Keyboard Shortcuts
Indent highlighed text:
tab = -->
shift+tab = <--
To indent entire document correctly:
Shift+Ctrl+Alt+L
Create gitignore files for numerous ides, OSes and languages:
https://gitignore.io/
@jlollis
jlollis / README.md
Last active March 4, 2019 21:32
resume

JULIE LOLLIS

[email protected] | (215) 301-3915

EXPERIENCE

University of Pennsylvania Law School – Systems Administrator Philadelphia, PA May 2018 – present

  • Perform a wide variety of duties in a hybrid Windows environment (Server 2016, Azure, Office 365) consisting of a VMSphere cluster with 60 Windows and Linux servers, and a few in AWS.
@jlollis
jlollis / add-animated-gifs.md
Last active March 4, 2019 01:46
add animated gifs to markdown

How to Add Animated Terminal Gifs to Github Repo from Linux Machine:

  1. Find screen capture software. SimpleScreenRecorder works well.
  2. Choose the area that you are going to capture.
  3. Set file type to mp4. Click Record.
  4. Type commands in your terminal. Click Pause.
  5. Click save.
  6. Upload your mp4 to YouTube.
  7. Create an animated gif with Giphy.
  8. Once you have your animated gif, right click, open image in new tab.
@jlollis
jlollis / 01. Gemfile
Created March 1, 2019 11:02 — forked from schleg/01. Gemfile
Setup for Devise + Omniauth
gem 'pg'
group :development do
gem 'ruby-debug'
end
gem 'rake', '~> 0.8.7'
gem 'devise'
gem 'oa-oauth', :require => 'omniauth/oauth'
gem 'omniauth'
gem 'haml'
gem 'dynamic_form'
@jlollis
jlollis / gitkeep.md
Last active April 9, 2025 15:48
.gitkeep - Push your entire folder structure to GitHub, including empty folders

.gitkeep

A .gitkeep file tells github to do the opposite of its default behaviour, which is to ignore empty folders.

If you want to track an empty folder, or a folder with untracked files, create a 0kb file with the .gitkeep file extension in that folder.

touch FOLDER_NAME/.gitkeep

@jlollis
jlollis / keypress.rb
Created February 21, 2019 16:30 — forked from acook/keypress.rb
Read keypresses from user in terminal, including arrow keys using pure Ruby. This has since been folded into a much more robust gem called Remedy. https://rubygems.org/gems/remedy & https://github.com/acook/remedy
require 'io/console'
# Reads keypresses from the user including 2 and 3 escape character sequences.
def read_char
STDIN.echo = false
STDIN.raw!
input = STDIN.getc.chr
if input == "\e" then
input << STDIN.read_nonblock(3) rescue nil
@jlollis
jlollis / gist:d70f3759fccf95dffa1f4b130c5104b4
Created February 19, 2019 20:11 — forked from nicc/gist:667755
Ruby's Enumerable #map and #select methods implemented with #inject
# The idea is just to illustrate that Ruby's #map and #select Enumerable methods
# are simply specific flavours of a fold operation, which Ruby implements as #inject.
# I've implemented #map and #select using #inject, and at the end I implemented #inject
# recursively. Ruby does #inject with Array#each, for very good reason. The recursive
# implementation is really just to illustrate the core Functional Programming concept
# which it derives from.
# We'll start simple. Map without applying a function:
[1,2,3,4,5].inject([]) {|memo, obj| memo << obj }
@jlollis
jlollis / Wolf
Created February 19, 2019 05:28
Play the Orginal Wolfenstein 3D on Linux
#!/bin/bash
sudo apt-get update
sudo apt-get install dosbox wget
mkdir -p wolf3d
cd wolf3d
wget http://image.dosgamesarchive.com/games/1wolf14.zip
unzip *.zip
dosbox INSTALL.EXE
echo "After setup cd into the new wolf3d directory"