Skip to content

Instantly share code, notes, and snippets.

@sweeneyrobb
sweeneyrobb / jekyll-boilerplate.ps1
Created July 1, 2015 20:02
Creating a boilerplate Jekyll directory.
$folders = @("_drafts", "_includes", "_layouts", "_posts", "_data")
$folders | %{ New-Item -Name $_ -ItemType Directory }
$files = @("_config.yml")
$files | %{ New-Item -Name $_ -ItemType File }
@sweeneyrobb
sweeneyrobb / configure-machine.ps1
Last active June 10, 2019 07:04
This script is used to configure my developer desktop
Set-ExecutionPolicy -ExecutionPolicy Bypass -Force
Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
cinst googlechrome -y
cinst slack -y
cinst vscode -y
cinst sql-server-management-studio -y
cinst firacode -y
@mjangda
mjangda / dynamic-facebook-comments.js
Last active January 6, 2019 10:40
Dynamically load Facebook comments on your site (if you already have the FB API running)
jQuery( function( $ ) {
if ( 'undefined' === typeof FB )
return;
if ( $( 'body' ).hasClass( 'single-post' ) || $( 'body' ).hasClass( 'page' ) ) {
var $comments_div = $( '<div/>' );
$comments_div.addClass( 'fb-comments' );
$comments_div.attr( 'data-href', document.location );
$comments_div.appendTo( $( '.primary-content' ) );