Skip to content

Instantly share code, notes, and snippets.

View Kharouk's full-sized avatar
🛹
Pop-shoving knowledge.

Alex Kharouk

🛹
Pop-shoving knowledge.
View GitHub Profile
@Kharouk
Kharouk / rockPaperScissors.js
Last active June 18, 2018 09:41
My Rock Paper Scissors Variation
function getComputerChoice() {
randomNumber = Math.floor(Math.random() * 3);
switch (randomNumber) {
case 0:
return 'rock';
case 1:
return 'paper';
case 2:
return 'scissors';
break;

Section 2: Introduction to Front End Dev

  • Restaurant Analogy: The backend is everything that happens in the kitchen; the front end is what is is plated and sent to the table

Section 7: Bootstrap

  • Mobile first, grid-based system
  • Can write nested grids
  • Sizes: xs s m lg xl
  • Works well with FontAwesome icons

Section 13: DOM Manipulation

@jonlabelle
jonlabelle / windows_to_unix_command_cheat_sheet.md
Last active August 16, 2024 02:11
Windows to UNIX Command Cheat Sheet

Windows to UNIX Command Cheat Sheet

Windows PowerShell has several transition aliases that allow UNIX and CMD users to use familiar command names in Windows PowerShell. The most common aliases are shown in the table below, along with the Windows PowerShell command behind the alias and the standard Windows PowerShell alias if one exists.

CMD Command UNIX Command PowerShell Command PowerShell Alias
dir ls Get-ChildItem gci
@joncardasis
joncardasis / Storing-Images-On-Github.md
Last active August 20, 2024 03:04
Storing Images and Demos in your Repo

Storing Images and Demos in your Repo

In this quick walkthough you'll learn how to create a separate branch in your repo to house your screenshots and demo gifs for use in your master's readme.

How to

1. Clone a fresh copy of your repo

In order to prevent any loss of work it is best to clone the repo in a separate location to complete this task.

2. Create a new branch

Create a new branch in your repo by using git checkout --orphan assets

@PurpleBooth
PurpleBooth / README-Template.md
Last active September 18, 2024 04:31
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@jmeridth
jmeridth / postgresql_command_line_cheat_sheet.md
Last active July 2, 2020 17:14
PostgreSQL Command Line Cheat Sheet

change to postgres user and open psql prompt

sudo -u postgres psql postgres

list databases

postgres=# \l

list roles

@tomas-stefano
tomas-stefano / Capybara.md
Last active August 22, 2024 15:04
Capybara cheatsheet

Capybara Actions

# Anchor
click_link 'Save'

# Button
click_button 'awesome'

# Both above
@dergachev
dergachev / GIF-Screencast-OSX.md
Last active September 15, 2024 10:33
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

Git is an open source, distributed version control system implemented
as a directed acyclic graph of commit objects pointing to snapshots
of content, with all data saved in it's own custom content addressable
filesystem by the SHA-1 checksum hash of each objects data. branches
are simply pointers into this directed graph of commits, identifying
entry points that designate the latest work on that branch, allowing
Git to traverse the pointers, determining a coherent history.
this makes branching cheap and easy, and merging simple, encouraging
non-linear development styles and frictionless context switching while
facilitating distributed development, cryptographic integrity and late