Skip to content

Instantly share code, notes, and snippets.

Miguel Garrido teledirigido

Block or report user

Report or block teledirigido

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@teledirigido
teledirigido / gruntfile.js
Last active Mar 23, 2016
Grunt file configuration example
View gruntfile.js
/*
GRUNTFILE JS WORKING EXAMPLE
----------------------------
- Babel
- Uglify
- Browser Sync
- Sass
- Watch
View fontloader.js
/*
Webfontloader
-------------
Based on: https://github.com/typekit/webfontloader#typekit
DESCRIPTION
-----------
@teledirigido
teledirigido / animate_svg.js
Last active Aug 29, 2015
Animate SVG with javascript
View animate_svg.js
/*
USAGE:
var svg = new animate_svg({
id: '#svg-logo',
frames: 100
});
svg.init();
View cs_select.scss
/*
*
* NOTE: There're some css3 features using @include and I'm not including (dumb I know).
* You can find all the css3 properties in here:
* https://gist.github.com/teledirigido/e7d346cc05b4d95b8c97
*
* This file has been created to work with the following script:
* https://gist.github.com/teledirigido/fec00d9e9ae3ac46b79c (cs_select.js)
*
*
@teledirigido
teledirigido / import_files.php
Created Jul 6, 2015
Create post, add attachment and update field via ACF
View import_files.php
<?php
/*
*
* This small scripts creates a post and attaches a file using Advanced custom field.
*
* Created by Miguel Garrido
* miguel.co.nz | miguel@blacksheepdesign.co.nz
*
* Notes:
View post_type_register.php
<?php
/**
* PARAMETERS
* ----------
*
*
* Required (Array)
*
@teledirigido
teledirigido / animation.js
Created May 25, 2015
Animate element with jQuery
View animation.js
/*
# Usage for your Javascript
$(document).ready(function(){
var animate_squared = new animation({
obj: '#your-tag .item',
});
@teledirigido
teledirigido / commands.sh
Last active Aug 29, 2015
Useful commands on shell
View commands.sh
# Find .htaccess and do chmod
sudo find / -type f -name '.htaccess' -exec chmod 604 {} \;
# Find wp-config.php and do chmod
sudo find / -type f -name 'wp-config.php' -exec chmod 644 {} \;
@teledirigido
teledirigido / .bash_profile
Last active Aug 29, 2015
Useful alias for your bash_profile
View .bash_profile
# Open your bashprofile
alias openbash="subl ~/.bash_profile";
# Thanks to jamie@blacksheepdesign.co.nz
alias showFiles="defaults write com.apple.finder AppleShowAllFiles YES; killall Finder /System/Library/CoreServices/Finder.app";
alias hideFiles="defaults write com.apple.finder AppleShowAllFiles NO; killall Finder /System/Library/CoreServices/Finder.app";
@teledirigido
teledirigido / og.php
Last active Nov 15, 2017
Set OG on wordpress
View og.php
<?php
/*
* Add this in your functions.php:
add_action('wp_head', function(){
open_graph::general();
open_graph::facebook();
open_graph::twitter();
});
You can’t perform that action at this time.