Skip to content

Instantly share code, notes, and snippets.

View samuelhorn's full-sized avatar
👨‍💻
jam stackin'

Samuel Horn af Rantzien samuelhorn

👨‍💻
jam stackin'
View GitHub Profile
@samuelhorn
samuelhorn / gruntfile.js
Created December 5, 2013 22:33
My gruntfile for new projects
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
// chech our JS
jshint: {
options: {
"bitwise": true,
@samuelhorn
samuelhorn / .htaccess
Created December 3, 2013 09:03
Mixed htaccess fixes
<FilesMatch ".(ttf|otf|eot|woff|font.css)$">
<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin "*"
</IfModule>
</FilesMatch>
@samuelhorn
samuelhorn / loop.php
Created December 3, 2013 08:59
Custom post type query
<?php
// Makes an array with own query wich not affects the ain loop
$events = new WP_Query(array("post_type" => "event"));
if ($events->have_posts()): while($events->have_posts()): $events->the_post();
get_template_part("loop");
the_content();
endwhile; endif;
@samuelhorn
samuelhorn / gruntfile.js
Created October 30, 2013 06:31
My personal gruntfile
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
sass: {
dev: {
options: {
style: 'expanded'
@samuelhorn
samuelhorn / animations.sublime-snippet
Last active December 24, 2015 13:59
SCSS/Bourbon snippets
<snippet>
<content><![CDATA[
@include animation(${1:fadeIn} ${2:.25s} ${3:ease-in-out});
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>animation</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.python</scope> -->
</snippet>
@samuelhorn
samuelhorn / preferences.sublime-settings
Last active December 24, 2015 13:58
Sublime Text 2 - User settings
{
// Make folders in sidebar bold
"bold_folder_labels": false,
// Nicer caret animation
"caret_style": "phase",
// Set colorscheme
"color_scheme": "Packages/Theme - Spacegray/base16-ocean.dark.tmTheme",