mkdir newProject && cd $_
Install brew [http://brew.sh/], this makes it much easier to install more cool aid packages on your machine
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
/*Sliding doors */ | |
a.appstore { | |
background: transparent url("../images/spritesheet.png") top left; | |
background-position: -11px -11px; | |
display: block; | |
height: 74px; | |
width: 175px; | |
text-indent: -9999em; |
var Medias = Parse.Object.extend("Medias"); | |
var aMedia = new Medias(); | |
var MediaScores = Parse.Object.extend("MediaScores"); | |
var aMediaScores = new MediaScores(); | |
var MediaViews = Parse.Object.extend("MediaViews"); | |
var aMediaViews = new MediaViews(); | |
aMediaScores.set("media", Medias); |
shell: { | |
restorePlugins :{ | |
command: function () | |
{ | |
var toReturn = []; | |
var allPlugins = ["camera", "console", "device", "keyboard", "splashscreen", "statusbar", "file", "dialogs", "vibration"]; | |
var preCommand = "org.apache.cordova."; | |
toReturn.push('echo "[calvium] Restoring plugins"'); |
mkdir newProject && cd $_
Install brew [http://brew.sh/], this makes it much easier to install more cool aid packages on your machine
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
// _addNewFunc is just a function that adds this to the main DalekJS test at run-time | |
_addNewFunc("hasClass", function (__selector, __needle) | |
{ | |
// generate a random name for this element | |
var name = "hasClass-" + new Date().getTime(), | |
nameElem = "span#"+name; | |
return this.dse_self | |
.execute(function(__selector, __needle, __name) |
// checks if the object has that value | |
_.mixin({ | |
objHasValue: function (__obj, __key) | |
{ | |
if(!_.isNull(__obj) && !_.isNull(__key) && !_.isNull(__obj[__key]) && !_.isUndefined(__obj[__key])) | |
{ | |
return true; | |
} | |
return false; | |
} |
<span> | |
<div class="profile-picture-wrapper"> | |
<% if (profile.image && profile.image.file_resizable) { %> | |
<img src="<%= profile.image.file_resizable.replace('{resize_spec)', 'w_200,h_200,c_fill,g_face') %>" class="profile-panel__image img-responsive" /> | |
<% } %> | |
</div> | |
<button class="btn btn-info js__follow-user pre-icon icon-user-plus btn-short"><span>Follow</span></button> | |
<h5 class="item-view__title js__clickThrough"><div class="username-wrapper"><%= username %></div></h5> |
/** | |
* Check the user id is the Auth'd user id | |
* | |
* @param string $attribute | |
* @param mixed $value | |
* @return bool | |
*/ | |
protected function validateUserIdIsAuthUserId( $attribute, $value ) | |
{ | |
if($value===Auth::user()->id) |
// Not quite the solution, but it works so I can move on! | |
// CHANGEME: a date to test against, change it to something you want | |
var dateToTest = moment('2015-02-04 08:00:00').valueOf(); | |
// now | |
var now = moment().valueOf(); | |
// use a "greater than" eval, rather than isAfter | |
var x = dateToTest > now; |
# inside your homestead machine, ie. $homestead ssh | |
date | |
# Should give something like this, Wed Feb 4 16:21:30 UTC 2015 | |
# That will tell you the time. If it's off by | |
# if it's bad, to fix it. | |
exit | |
# wait | |
homestead halt |