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 | |
# Written by: Keefer Rourke <https://krourke.org> | |
# Based on AUR package <https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=ttf-google-fonts-git> | |
# dependancies: fonts-cantarell, ttf-ubuntu-font-family, git | |
sudo apt-get install fonts-cantarell, ttf-ubuntu-font-family, git | |
srcdir="/tmp/google-fonts" | |
pkgdir="/usr/share/fonts/truetype/google-fonts" | |
giturl="git://github.com/google/fonts.git" |
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
# Drupal git normalization | |
# @see https://www.kernel.org/pub/software/scm/git/docs/gitattributes.html | |
# @see https://www.drupal.org/node/1542048 | |
# Normally these settings would be done with macro attributes for improved | |
# readability and easier maintenance. However macros can only be defined at the | |
# repository root directory. Drupal avoids making any assumptions about where it | |
# is installed. | |
# Define text file attributes. |
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
# Install `dnsmasq` and configure for *.dev domains | |
$ brew install dnsmasq | |
$ vim /usr/local/etc/dnsmasq.conf | |
# Reload configuration and clear cache | |
$ sudo launchctl unload /Library/LaunchDaemons/homebrew.mxcl.dnsmasq.plist | |
$ sudo launchctl load /Library/LaunchDaemons/homebrew.mxcl.dnsmasq.plist | |
$ dscacheutil -flushcache |
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_to_disk = './tmp/large_disk.vdi' | |
Vagrant::Config.run do |config| | |
config.vm.box = 'base' | |
config.vm.customize ['createhd', '--filename', file_to_disk, '--size', 500 * 1024] | |
config.vm.customize ['storageattach', :id, '--storagectl', 'SATA Controller', '--port', 1, '--device', 0, '--type', 'hdd', '--medium', file_to_disk] | |
end |
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
<p><!--[if gte mso 9]><xml> | |
<o:DocumentProperties> | |
<o:Revision>0</o:Revision> | |
<o:TotalTime>0</o:TotalTime> | |
<o:Pages>1</o:Pages> | |
<o:Words>163</o:Words> | |
<o:Characters>933</o:Characters> | |
<o:Company>Duke University</o:Company> | |
<o:Lines>7</o:Lines> | |
<o:Paragraphs>2</o:Paragraphs> |
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
{ | |
"fid":"1", | |
"name":"image.jpg", | |
"mime":"image\/jpeg", | |
"size":"44229", | |
"url":"http:\/\/example.com\/sites\/default\/files\/field\/image\/image.jpg", | |
"timestamp":"1430032286", | |
"owner":{ | |
"uri":"http:\/\/example.com\/user\/1", | |
"id":"1", |
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
{ | |
"body":{ | |
"value":"\u003Cp\u003EThis is a test too\u003C\/p\u003E\n", | |
"summary":"", | |
"format":"plain_text" | |
}, | |
"field_tags":[ | |
], | |
"field_image":{ |
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() { | |
'use strict'; | |
angular.module('nodeListing', ['ngResource', 'ngDialog']) | |
// Factory for the ngResource service. | |
.factory('Node', function($resource) { | |
return $resource(Drupal.settings.basePath + 'api/node/:param', {}, { | |
'search' : {method : 'GET', isArray : true} | |
}); |
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
<div ng-app="nodeListing"> | |
<div ng-controller="ListController"> | |
<h3>Filter</h3> | |
<input type="text" ng-model="nodeFilter"> | |
<ul ng-cloak> | |
<li ng-repeat="node in nodes | filter:nodeFilter | orderBy:'title' | limitTo:150"><button ng-click="open(node.nid)">Open</button> {{ node.title }}</li> | |
</ul> |
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 and initialise PhantomCSS module | |
Paths are relative to CasperJs directory | |
*/ | |
var phantomcss = require('./../phantomcss.js'); | |
var url = 'http://phantomcss.dev'; | |
var viewport = {name : 'tablet-landscape', width: 1024, height: 768} |
NewerOlder