Skip to content

Instantly share code, notes, and snippets.

View PieterxJan's full-sized avatar

Pieter-Jan Claeysens PieterxJan

View GitHub Profile
@PieterxJan
PieterxJan / tailwind.js
Last active March 15, 2018 13:20
New tailwindcss plugins
function({ addComponents }) {
const buttons = {
'.btn': {
padding: '.5rem 1rem',
borderRadius: '.25rem',
fontWeight: '600',
},
'.btn-primary': {
backgroundColor: '#f18341',
color: '#fff',
@PieterxJan
PieterxJan / example.js
Created March 15, 2018 13:10
Should you use var or let?
function() {
for(var i = 0; i < 10; i++) {
console.log(i);
}
console.log(i); // Logs 10
}
for (let i = 0; i < 10; i++) {
console.log(i);
}
body{
background-color: #356AA0;
}
@PieterxJan
PieterxJan / cartdisplay.php
Created October 5, 2011 12:37
Boekenwinkel
<?php
########################################
#### (c) Pieter-Jan Claeysens ####
#### 2NMCT6 ####
#### pj.claeysens'AT'telenet.be ####
########################################
include('functions.php');
$books = getBooks();
@PieterxJan
PieterxJan / test.php
Created October 5, 2011 12:06
Dit is een test
<?php
include('functions.php');
$books = getBooks();
?>
<!DOCTYPE html>
<html>