Skip to content

Instantly share code, notes, and snippets.

View RobAWilkinson's full-sized avatar

Rob Wilkinson RobAWilkinson

  • @oddballio
  • Austin, TX
View GitHub Profile

What i have so far

{
  $or: [
    { ax: 300 },
    { ax: 301 },
  ]
}
module.exports = function(){
var date = Date.now();
while(Date.now() - date < 5000);
return 'ok';
}
StDev: 1.95509590557599
Average:  5.76

'Critical Path Analysis': 0.3784980562280852,
'Presenting the whole picture': 0.3784980562280852,
'Focus on Project stages': 1.4014657757634503,
'Sequential Process, e.g. progressing one stage at a time (no overlap)': -0.38872773342343864,
'Emphasis on documentation': -0.64446966330728,
'Detailed requirements specification': -0.64446966330728,

StDev: 1.95509590557599 Average: 5.76 { 'Critical Path Analysis': 0.3784980562280852, 'Presenting the whole picture': 0.3784980562280852, 'Focus on Project stages': 1.4014657757634503, 'Sequential Process, e.g. progressing one stage at a time (no overlap)': -0.38872773342343864, 'Emphasis on documentation': -0.64446966330728, 'Detailed requirements specification': -0.64446966330728, 'Progress control by earned value management': -1.667437382842645, 'Hierarchical organizational structure': -1.1559535230749625,

@RobAWilkinson
RobAWilkinson / movie-tickets.clj
Last active September 14, 2016 18:08
Code wars recursion
; Description:
; My friend John likes to go to the cinema. He can choose between system A and system B.
; System A : buy a ticket (15 dollars) every time
; System B : buy a card (500 dollars) and every time
; buy a ticket the price of which is 0.90 times the price he paid for the previous one.
; Example:
; If John goes to the cinema 3 times:
@RobAWilkinson
RobAWilkinson / signupFields.swift
Last active May 14, 2016 02:31
This only draws one rectangle
@IBOutlet var signupFields: [UITextField]!
for field in signupFields {
let rect = CGRectMake(0, 0, 100, 100)
let rectUI = UIView(frame: rect)
rectUI.backgroundColor = UIColor.redColor()
field.leftView = rectUI
field.leftViewMode = UITextFieldViewMode.UnlessEditing
}
mongoose.models.Users.collection.findOne({_id: ObjectId(req.user.middleName)}, function(err, loggedin) {
mongoose.models.Users.find({
location: { $near: { $geometry: loggedin.location } },
}, function(err, users) => {
return res.json(users);
});
});
})
if(req.body.email) {
user.email = req.body.email;
}
if(req.body.email) {
user.username = req.body.email;
}
if(req.body.phone) {
user.phone = req.body.phone;
}
import GridSelector from './grid-selector'
class Form extends React.Component
render() {
return (
<GridSelector
options={this.state.ageGroupOptions}
title='Age Groups?'
childClass='child'
wrapperClass='wrapper'
toggleClass='toggle'

###Why: Codesmith was positioning themselves as the leading javascript focused bootcamp in LA, there was only one problem, The old site was running on ruby on rails and was a hobbled together collection of legacy code. They needed a marketing site that was going to load fast and also needed to be written in javascript.

###What I did: I happened to have a rails backgroudn so I took their old ruby site and brought it completely over to HapiJS. There was two reasons for this, first, its an amazing framework that wal mart uses that is highly structed and favors convention over configuration, second, it allows the use of slim templates so I could port over most of the html without too many hassles. ###Technologies Used

  • Node JS
  • Hapi JS
  • Sass
  • HTML