Skip to content

Instantly share code, notes, and snippets.

View alxv2016's full-sized avatar

ALXV alxv2016

View GitHub Profile
@jakelevi1996
jakelevi1996 / Multiple source files in C.md
Last active September 7, 2025 04:49
Multiple source files in C.

Multiple source files in C

This Gist presents an introduction to a few different ways of working with multiple source files in C, including:

  1. Simple .c source files and .h header files compiled into a .exe
  2. First compiling into .o object files, and then linking together
  3. Makefiles
  4. Statically linked libraries
  5. Dynamically linked libraries

The concepts are demonstrated using gcc (tdm64-1) 5.1.0 on Windows 8.1, using 3 C source files (linkedlist.c, listprimes.c and main.c) and 2 header files (linkedlist.h and listprimes.h), all of which are included at the end. It is assumed that all the source files are saved in a single directory, and any terminal commands are entered in a terminal window open in that same directory.

@automagisch
automagisch / _underline.scss
Last active July 19, 2018 12:56
Better` text-decoration: underline` control
/*
usage:
---
a.link {
@include underline(red, 1px, 5px, true)
}
---
above renders a red 'underline' with a 1px width, offsetted 5px from the bottom of
@tunguskha
tunguskha / Gradient shadow in pure CSS.md
Last active October 12, 2024 17:02
Gradient shadow in pure CSS

Gradient shadow in pure CSS

alt text

HTML
<button>Let's Go !</button>
@rchod
rchod / git-cheat-sheet.md
Created November 22, 2016 11:26 — forked from prograhammer/git-cheat-sheet.md
Git cheat sheet for some useful Git commands and command scenarios.
@btroncone
btroncone / rxjs_operators_by_example.md
Last active September 14, 2025 16:48
RxJS 5 Operators By Example
@stephenway
stephenway / README.md
Last active June 22, 2024 16:04
BEMIT Cheatsheet
background: linear-gradient(38deg, #20bc94, #757eba, #804598);
background-size: 600% 600%;
-webkit-animation: gradient-rotate 29s ease infinite;
-moz-animation: gradient-rotate 29s ease infinite;
-o-animation: gradient-rotate 29s ease infinite;
animation: gradient-rotate 29s ease infinite;
@-webkit-keyframes gradient-rotate {
0%{background-position:0% 51%}
50%{background-position:100% 50%}
100%{background-position:0% 51%}
@p3t3r67x0
p3t3r67x0 / pseudo_elements.md
Last active July 25, 2025 09:29
A CSS pseudo-element is used to style specified parts of an element. In some cases you can style native HTML controls with vendor specific pseudo-elements. Here you will find an list of cross browser specific pseudo-element selectors.

Styling native elements

Native HTML controls are a challenge to style. You can style any element in the web platform that uses Shadow DOM with a pseudo element ::pseudo-element or the /deep/ path selector.

video::webkit-media-controls-timeline {
  background-color: lime;
}

video /deep/ input[type=range] {
@cortesben
cortesben / terminal-cheat-sheat.md
Last active December 25, 2017 18:14
Terminal cheat sheet

#cheat sheet for random BASH Stuff Safe reference for random commands. I will break this up into a better guide in the near future.

#Heroku commands

Commands Description
heroku local web Run the app locally
git push heroku master Deploy to Heroku
heroku open open Browser with app location from command line