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/bash | |
# Used to notify rollbar of a new deployment | |
# | |
# Usage: ./deploy-notify.sh rollbar_token environment_name | |
set -e | |
( |
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 | |
/** | |
* @wordpress-plugin | |
* Plugin Name: FCG Partials. | |
* Description: Do not depend on globals to pass variables to template parts. | |
* Version: 1.0.0 | |
* Author: Gulbenkian | |
* Author URI: https://github.com/gulbenkian/ | |
* License: GPL-2.0+ | |
*/ |
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
root = true | |
[*] | |
charset = utf-8 | |
end_of_line = lf | |
indent_size = 2 | |
indent_style = space | |
insert_final_newline = true | |
trim_trailing_whitespace = 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
var gulp = require('gulp'); | |
// Include Our Plugins | |
var jshint = require('gulp-jshint'); | |
var sass = require('gulp-sass'); | |
var concat = require('gulp-concat'); | |
var uglify = require('gulp-uglify'); | |
var minifyCSS = require('gulp-minify-css'); | |
var rename = require('gulp-rename'); | |
var yuidoc = require("gulp-yuidoc"); |
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 plgPath = function(){ | |
var path = null, currentScript = null; | |
var scripts = document.getElementsByTagName("script"); | |
for(var i in scripts){ | |
if(scripts[i].src.indexOf("script.js") >= 0){ | |
currentScript = scripts[i]; | |
break; | |
} | |
} | |
path = currentScript.src.substring(0, currentScript.src.lastIndexOf("/") + 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
{ | |
"devDependencies": { | |
"gulp": "~3.6.0", | |
"gulp-rename": "~1.2.0", | |
"gulp-concat": "~2.2.0", | |
"gulp-minify-css": "~0.3.1", | |
"gulp-uglify": "~0.2.1", | |
"gulp-sass": "~0.7.1", | |
"gulp-chmod": "~0.2.0", | |
"gulp-notify": "~1.2.5", |
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 Request = unirest.get('https://api.twitter.com/oauth/request_token'); | |
Request.oauth({ | |
callback: 'http://mysite.com/callback/' | |
, consumer_key: 'CONSUMER_KEY' | |
, consumer_secret: 'CONSUMER_SECRET' | |
}).end(function (response) { | |
var access_token = response.body; | |
Request = unirest.post('https://api.twitter.com/oauth/access_token'); |
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( $ ) { | |
var $main_select = {}; | |
$.fn.tognsort = function( options ) { | |
var options = $.extend({}, $.fn.tognsort.defaults, options ); | |
$main_select = this; |
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 | |
App::uses('Component', 'Controller'); | |
class LanguageComponent extends Component { | |
public function initialize(Controller $controller) { | |
$this->autoSelectLanguage($controller); |
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 | |
/** | |
* Formats form elements for Bootstrap v3 | |
* | |
* Add to AppController.php | |
* | |
* public $helpers = array( | |
* 'Form' => array('className' => 'BootstrapForm') | |
* ); |
NewerOlder