Skip to content

Instantly share code, notes, and snippets.

View kallehauge's full-sized avatar
🎉
Having a party on GitHub ❤️

André Kallehauge kallehauge

🎉
Having a party on GitHub ❤️
View GitHub Profile
#!/bin/bash
# Set filemod for all existing .git sub-directories to false and echo the name of the iterated folder.
for d in */ ; do
echo $d && (cd $d && exec git config core.filemode false)
done
@kallehauge
kallehauge / Gutter.scss
Last active January 23, 2016 22:21
Overly engineered way to set gutter-size for elements.
$gutter-size: 15px;
$gutter-breakpoint-sizes: (
large: $gutter-size,
medium: $gutter-size / 2,
small: $gutter-size / 3,
);
$breakpoints: (
small: 540px,
medium: 780px,
@kallehauge
kallehauge / sum-sheets-cell.js
Last active May 24, 2018 13:36
A Google Custom Function to sum up the values of a specific cell across multiple sheets.
/**
* Variables.
*
* You should not have to alter anything in the function,
* only these variables.
*/
// The name of the sheet the dynamic date exists on.
var dateSheet = 'Sheet1';
// The cell of the sheet defined above in the "dateSheet" variable,
// that the script should update the date in.
<?php
interface Shape {
public function getArea();
}
class Square implements Shape {
private $width;
private $height;
public function __construct($width, $height) {