Skip to content

Instantly share code, notes, and snippets.

View rivadeveira's full-sized avatar

Carlos Rivadeneira rivadeveira

View GitHub Profile
@jberndsen
jberndsen / _body.scss
Created February 10, 2017 15:38
Quick ITCSS startup structure for Angular 2 / Material Design
@import '../settings/_colours.scss';
@import '../settings/_typography.scss';
body {
width: 100%;
height: 100%;
min-height: 100vh;
background-color: md-color($vir-app-ui, 50);
font-family: $font-stack;
@hunminkoh
hunminkoh / index.html
Last active October 21, 2023 01:00
Drawing a triangle with d3.svg.symbol().type("triangle-up")
<!DOCTYPE html>
<html>
<head>
<script src="http://d3js.org/d3.v2.min.js"></script>
</head>
<body></body>
</html>
<script type="text/javascript">
var svg = d3.select("body").append("svg")
@1Marc
1Marc / workshops-planning.md
Last active January 20, 2023 02:34
Workshop Planning

This gist is no longer in use.

@ryansechrest
ryansechrest / php-style-guide.md
Last active April 21, 2024 18:50
PHP style guide with coding standards and best practices.

PHP Style Guide

All rules and guidelines in this document apply to PHP files unless otherwise noted. References to PHP/HTML files can be interpreted as files that primarily contain HTML, but use PHP for templating purposes.

The keywords "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in RFC 2119.

Most sections are broken up into two parts:

  1. Overview of all rules with a quick example
  2. Each rule called out with examples of do's and don'ts
@liamcurry
liamcurry / gist:2597326
Created May 4, 2012 19:56
Vanilla JS vs jQuery

Moving from jQuery

Events

// jQuery
$(document).ready(function() {
  // code
})