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
/* | |
* Task runner | |
* | |
*/ | |
// Load the plugins | |
// | |
var gulp = require('gulp'), | |
sass = require('gulp-ruby-sass'), | |
autoprefixer = require('gulp-autoprefixer'), |
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
/* | |
!.gitignore | |
!wp-content/ | |
wp-content/* | |
!wp-content/plugins/ | |
!wp-content/themes/ | |
wp-content/plugins/* | |
!wp-content/plugins/[plugin name]/ |
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": { | |
"php": ">=5.3.1", | |
"behat/behat": "2.4.*@stable", | |
"behat/mink": "1.4@stable", | |
"behat/mink-extension": "*", | |
"behat/mink-goutte-driver": "*", | |
"behat/mink-sahi-driver": "*", | |
"behat/mink-selenium-driver": "*", | |
"behat/mink-selenium2-driver": "*", |
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
### | |
# | |
# Build Script | |
# Compiles Sass and Coffee files to CSS and JavaScript | |
# | |
### | |
# ------------------------------------------------------ | |
# -- Load dependencies --------------------------------- | |
fs = require "fs" |
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
{ | |
"promos": [ | |
{ | |
"name": "promo1", | |
"url": "/promo1", | |
"image": "/img/promos/promo1.jpg" | |
},{ | |
"name": "promo2", | |
"url": "/promo2", | |
"image": "/img/promos/promo4.jpg" |
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
_.mixin compactObject: (object) -> | |
_.each object, (v, k) -> | |
delete object[k] unless v | |
object |
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
numberCommas = (x) -> | |
return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",") |
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 | |
$arr[date ('j',strtotime($row2['date_start']))] = array(); | |
array_push($arr[date ('j',strtotime($row2['date_start']))], $row2['event']); | |
?> |
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
$class = "link-class"; | |
$evenid = "20"; | |
$html = ' | |
<tr> | |
<td> | |
<a href="#" class="%s" id="%s">Test</a> | |
</td> | |
<td> | |
<p>something</p> |
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
before_filter :authenticate_admin, :except => [:login, :login_verify] | |
before_filter :save_login_state_admin, :only => [:login, :login_verify] | |
def login | |
# login form | |
end | |
def login_verify | |
authorized_admin = Admin.authenticate(params[:admin_username], params[:admin_password]) | |
if authorized_admin |
NewerOlder