This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@mixin columns($numberOfColumns, $margin){ | |
$size: ($margin * ($numberOfColumns - 1) ) / $numberOfColumns; | |
float: left; | |
margin-left: $margin; | |
width: calc(#{100 / $numberOfColumns}% - #{$size}); | |
&:nth-child(#{$numberOfColumns}n+1){ | |
clear: left; | |
margin-left: 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -o myfile.mp3 www.foo.com/bar.mp3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git branch --merged | grep -v "\*" | xargs -n 1 git branch -d |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const stopAllYouTubeVideos = () => { | |
const iframes = document.querySelectorAll("iframe") | |
Array.prototype.forEach.call(iframes, iframe => { | |
iframe.contentWindow.postMessage( | |
JSON.stringify({ | |
event: "command", | |
func: "stopVideo", | |
}), | |
"*" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function sync() { | |
var id="XXXXXXXXXX"; // CHANGE - id of the secondary calendar to pull events from | |
var today=new Date(); | |
var enddate=new Date(); | |
enddate.setDate(today.getDate()+7); // how many days in advance to monitor and block off time | |
var secondaryCal=CalendarApp.getCalendarById(id); | |
var secondaryEvents=secondaryCal.getEvents(today,enddate); |