Skip to content

Instantly share code, notes, and snippets.

@asanchez75
asanchez75 / scss base template
Created October 19, 2012 05:22 — forked from akikoo/scss base template
SCSS (Sass) template with cross-browser CSS3 mixins
/* Welcome to Compass.
* In this file you should write your main styles. (or centralize your imports)
* Import this file using the following HTML or equivalent:
* <link rel="stylesheet" href="/stylesheets/screen.css" media="screen" type="text/css" /> */
// This comment is not output to CSS
/* This comment is output to CSS */
// The CSS3 module provides cross-browser mixins for CSS properties
@asanchez75
asanchez75 / my.cnf
Created March 14, 2013 22:47 — forked from petemcw/my.cnf
# The MySQL database server configuration file.
#
# DESC: InnoDB mainly, heavy queries, fewer connections, 4GB RAM
#
# Remember to edit /etc/mysql/debian.cnf when changing the socket location.
[client]
port = 3306
socket = /var/run/mysqld/mysqld.sock
# This was formally known as [safe_mysqld]. Both versions are currently parsed.
drush php-eval 'node_access_rebuild();'
<?php
// Author: John Wright
// Website: http://johnwright.me/blog
// This code is live @
// http://johnwright.me/code-examples/sparql-query-in-code-rest-php-and-json-tutorial.php
function getUrlDbpediaAbstract($term)
{
$format = 'json';
/**
* Adds method arg to the Drupal object for grabbing url args
*
* @author Aaron Klump, In the Loft Studios, LLC
* @see http://www.intheloftstudios.com
* @see http://gist.github.com/3078482
*
* For use in a theme or module add the following to your .info file
* @code
* scripts[] = [path to js dir]/drupal.arg.js
rsync -avz /path/to/local/sync/folder -e "ssh -i /path/to/ssh/key" ubuntu@ec2instance:/path/to/remote/sync/folder
#!/usr/bin/env ruby
#
# Locates and removes Homebrew installation
# http://brew.sh/
#
# Author: Stephen Benner
# https://github.com/SteveBenner
#
# Contributors:
# - @AaronKulick
<rdf:RDF xml:base="http://dbpedia.org/ontology/" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:owl="http://www.w3.org/2002/07/owl#">
<owl:Ontology rdf:about="">
<owl:versionInfo xml:lang="en">Version 3.9</owl:versionInfo>
<comment xml:lang="en">DBpedia 3.9 ontology stripped of all domains, and object property ranges</comment>
</owl:Ontology>
<owl:Class rdf:about="http://dbpedia.org/ontology/BasketballLeague">
<rdfs:label xml:lang="el">Ομοσπονδία Καλαθοσφαίρισης</rdfs:label>
@asanchez75
asanchez75 / centos_install_compass.sh
Created October 1, 2016 10:54 — forked from amites/centos_install_compass.sh
bash script to install sass/compass onto centos
#! /bin/bash
# Sass: http://sass-lang.com/
# Sass is a "smart" form of css, supporting nested targeting of html, variables and logic
# scss is a variant of sass using a syntax much closer to css
# Compass: http://compass-style.org/
# Compass is a sass framework containing a range of shortcuts for cross-browser css effects.
# rounded corners, transparency...
@asanchez75
asanchez75 / drupalphpheader.module
Created December 26, 2016 12:01 — forked from samuelsolis/drupalphpheader.module
Add custom php header to a drupal 7 view
function MYMODULE_views_pre_view(&$view, &$display_id, &$args){
if ($view->name == 'VIEWNAME' && $display_id == 'DISPLAYNAME'){
$header = 'MYCODE';
$options = array(
'empty' => 1,
'content' => $header,
'label' => NULL,
);
$view->add_item('DISPLAYNAME', 'header', 'views','area_text_custom', $options);
}