Skip to content

Instantly share code, notes, and snippets.

View katherinedragieva's full-sized avatar
🏠
Working from home

Katrin katherinedragieva

🏠
Working from home
View GitHub Profile
@branneman
branneman / primitive-reference-types-javascript.md
Last active April 13, 2024 05:10
Primitive Types & Reference Types in JavaScript

Primitive Types & Reference Types in JavaScript

An explanation of JavaScript's pass-by-value, which is unlike pass-by-reference from other languages.

Facts

  • JavaScript has 2 kinds of variable types: primitive and reference.
  • A fixed amount of memory is reserved after creation of every variable.
  • When a variable is copied, it's in-memory value is copied.
  • Passing a variable to a function via a call also creates a copy of that variable.

Primitive Types

@mattpodwysocki
mattpodwysocki / install.sh
Created April 7, 2016 01:22
Installing global packages causes an error using NPM
# Installing Node/NPM
curl -sL https://deb.nodesource.com/setup_5.x | sudo -E bash -
sudo apt-get install -y nodejs
@PurpleBooth
PurpleBooth / README-Template.md
Last active May 9, 2024 19:52
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

@bhatiaabhinav
bhatiaabhinav / DFA.c
Last active January 31, 2024 16:36
Deterministic Finite Automata Implementation in C
#include "DFA.h"
#include <stdlib.h>
#include <string.h>
void dfa_makeNextTransition(DFA* dfa, char c)
{
int transitionID;
DFAState* pCurrentState = dfa->states[dfa->currentStateID];
for (transitionID = 0; transitionID < pCurrentState->numberOfTransitions; transitionID++)
{
@digitaljhelms
digitaljhelms / gist:4287848
Last active May 9, 2024 10:21
Git/GitHub branching standards & conventions

Branching

Quick Legend

Description, Instructions, Notes
Instance Branch
@timpaul
timpaul / date-of-birth.html
Created August 15, 2012 14:49
HTML markup for a date-of-birth picker
<div class="control-group">
<label for="dob-day" class="control-label">Date of birth</label>
<div class="controls">
<select name="dob-day" id="dob-day">
<option value="">Day</option>
<option value="">---</option>
<option value="01">01</option>
<option value="02">02</option>
<option value="03">03</option>
<option value="04">04</option>