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
#!/bin/sh | |
# This has to be run from develop | |
git checkout develop | |
# Update our list of remotes | |
git fetch | |
git remote prune origin | |
# Remove local fully merged branches |
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
%%%------------------------------------------------------------------- | |
%%% File : quad_tree.erl | |
%%% @author Jamie Burrell | |
%%% @doc Erlang implementation of a quadratic tree. | |
%%% @end | |
%%% @since 2009-02-10 | |
%%% @end | |
%%%------------------------------------------------------------------- | |
-module(quad_tree). |
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
#!/bin/sh | |
# Install this in your Git repo in .git/hooks/prepare-commit-msg. Git doesn't | |
# support global hooks, but you can work around it using templates, see: | |
# | |
# https://github.com/mroth/lolcommits/wiki/Enabling-Lolcommits-for-all-your-Git-Repositories. | |
ORIGINAL_COMMIT_MSG=$(cat "$1") | |
# from http://www.emoji-cheat-sheet.com/ |
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
sudo apt-get install mongodb ◼ version:2.1.6 | |
Reading package lists... Done | |
Building dependency tree | |
Reading state information... Done | |
The following packages were automatically installed and are no longer required: | |
libabw-0.0-0 libatkmm-1.6-1 libboost-filesystem1.55.0 libboost-program-options1.55.0 libboost-regex1.55.0 libcairomm-1.0-1 libdrm-dev libe-book-0.0-0 libegl1-mesa-dev libetonyek-0.0-0 libfreehand-0.0-0 libgl1-mesa-dev libglibmm-2.4-1c2a libgtkmm-2.4-1c2a libmwaw-0.2-2 libpangomm-1.4-1 libwayland-dev libx11-xcb-dev libxcb-dri2-0-dev libxcb-dri3-dev libxcb-glx0-dev libxcb-present-dev libxcb-randr0 libxcb-randr0-dev libxcb-shape0-dev libxcb-sync-dev libxcb-xfixes0-dev libxshmfence-dev libxxf86vm-dev | |
mesa-common-dev x11proto-dri2-dev x11proto-gl-dev x11proto-xf86vidmode-dev | |
Use 'apt-get autoremove' to remove them. | |
The following extra packages will be installed: | |
binutils binutils-dev cpp cpp-5 dbus g++ g++-5 gcc gcc-5 gcc-5-base libabw-0.1-1 libapparmor1 libasan2 libatomic1 libboost-date-time1.58.0 li |
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
# features/support/active_job.rb | |
# Specify the inline adapter so jobs run straight away | |
Rails.application.config.active_job.queue_adapter = :inline |
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
require 'active_support/core_ext' | |
in_out = :out | |
out_days = 0 | |
in_days = 0 | |
transit_days = 0 | |
last = "2013-05-06".to_date |
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
/* | |
* This file is not Copyright (C) QUALCOMM Austria Research Center GmbH. | |
* It is not Copyright (C) Sony Computer Entertainment America LLC ("SCEA"). | |
* It is also not Copyright (C) of Apple Inc. (“Apple”). | |
* Lastly it is not Copyright (C) Epic Games, Inc. | |
*/ | |
#include <stdio.h> | |
int main() { |
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
var tidyHtml = function() { | |
var html = this.getValue(); | |
// remove empty paragraphs | |
html = html.replace(/<p>( |\s+)?<\/p>/g, ""); | |
html = html.replace(/<p><b>( |\s+)?<\/b><\/p>/g, ""); | |
// remove newlines between words | |
html = html.replace(/([^>])\n([^<])/g, "$1 $2"); |
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
--- | |
layout: nil | |
--- | |
<?xml version="1.0" encoding="UTF-8"?> | |
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"> | |
<channel> | |
<atom:link rel="hub" href="http://pubsubhubbub.appspot.com" xmlns:atom="http://www.w3.org/2005/Atom"/> | |
<title>{{ site.title | xml_escape }}</title> | |
<generator>Octopress</generator> | |
<link>{{ site.url }}</link> |
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
<?php | |
/* | |
Plugin Name: Auto Save Remote Image | |
Plugin URI: http://www.devsaab.com/wordpress/ | |
Description: This plugin automatically downloads the first remote image from a post and sets it as the featured image. | |
Version: 1.3 | |
Author: Prebhdev Singh | |
Disclaimer: No warranty or guarantee of any kind! Use this in your own risk. | |
*/ | |
add_action('publish_post', 'fetch_images'); |