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/Modules/Events/views/indexAction.html.php | |
?> | |
<div class="section recent-tags"> | |
<h3> | |
Recent Tags | |
<span class="f-right"><a href="<?php echo $this->kernel->url('module', array('module' => 'Tags')); ?>" title="view more tags">View All</span> | |
</h3> | |
<?php | |
// Get tag cloud from Tags module |
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 getPrice(str) { | |
if(str.indexOf('$') !== -1) { | |
// Dollar sign present - it always trumps other number values | |
var reg = /\$([\d,.]+)/g; | |
} else if(/(\d[\d.,]+)/.test(str)) { | |
// Digits with decimals found - more likely to be price than other number values | |
var reg = /(\d[\d.,]+)/g; | |
} else { | |
// Any numbers at all that are surrounded by spaces (fallback; worst accuracy) | |
var reg = /\s+([\d]+)\s+/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
# x386 Architecture | |
export CFLAGS="-arch i386 $CFLAGS" | |
export CCFLAGS="-arch i386 $CCFLAGS" | |
export CXXFLAGS="-arch i386 $CXXFLAGS" | |
export LDFLAGS="-arch i386 $LDFLAGS" | |
# x64 Architecture | |
export CFLAGS="-arch x86_64 $CFLAGS" | |
export CCFLAGS="-arch x86_64 $CCFLAGS" | |
export CXXFLAGS="-arch x86_64 $CXXFLAGS" |
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
#!/usr/bin/env sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
# |
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
get('http://api.joind.in/v2.1/events/907') | |
expectJSONTypes({ | |
name: String | |
start_date: String | |
end_date: String | |
description: String | |
href: String | |
attendee_count: Number | |
icon: String | |
tags: Array |
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
frisby.create('Ensure each tweet has base attributes') | |
.get('https://api.twitter.com/1/statuses/user_timeline.json?screen_name=brightbit') | |
.expectStatus(200) | |
.expectHeaderContains('content-type', 'application/json') | |
.expectJSONTypes('*', { | |
id_str: String, | |
retweeted: Boolean, | |
in_reply_to_screen_name: function(val) { expect(val).toBeTypeOrNull(String); }, // Custom matcher callback | |
user: { | |
verified: Boolean, |
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
{ | |
"page":1, | |
"actions":{ | |
"add":{ | |
"url":"http://localhost:3000/events.json", | |
"method":"post", | |
"fields":{ | |
"category_id":{ | |
"type":"integer", | |
"length":null, |
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
{ | |
"_links":{ | |
"add":{ | |
"title":"Add Budget", | |
"href":"http:\/\/localhost\/brightb.it\/budgetapp\/budgets", | |
"method":"post", | |
"parameters":{ | |
"name":{ | |
"type":"string", | |
"required":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
#!/usr/bin/env bash | |
### | |
# Run this script as root | |
### | |
# Setup variables for this script | |
USER_NAME=vlucas | |
USER_EMAIL=vance@vancelucas.com | |
SSH_PUBLIC_KEY="ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAxoQkUlUr+GcEpY1Its3mXFq/xi6yUgknxcSfGx0Yl25zo9nLl5UpeA+r0SmTfnu5oj674i+Ccx7NgwIkhGONXyKZaWyQf7jQZRa6sAMyETQ8QFbkprLCcF6LXJ9B1Khj16ZgXgcuSjMQKmbi8FA3iCcP5jGeT/02x5QhC5hXNPZafODwR5Xty559mLqsZ3LwzQZ4YaQDi4fnEDz7z4iA5+2Xo44de4ypmAmRBsOJZ0mgiRyClDEa0TVCctIXLeOt5OU76DE/IXuKHmtpwWiAI+c6ZNLmXeidrMQzhS6XfDwtTS0YMNnXn4aSSSJNhuvRAhCj9qjAXT1lV1QPb2P84Q== vance@vancelucas.com" |
OlderNewer