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
body { | |
background: #222; | |
font-family: 'lucida grande',tahoma,verdana,arial,sans-serif; | |
} | |
.comment-box { | |
border: transparent 1px solid; | |
height: 90px; | |
position: relative; | |
} |
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
body { | |
padding: 0; | |
margin: 0; | |
} | |
.body { | |
opacity: .3; | |
position: absolute; | |
left: 0; | |
right: 0; | |
top: 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
// | |
// GameViewController.swift | |
// | |
import UIKit | |
import SpriteKit | |
class GameViewController: UIViewController { | |
override func viewDidLoad() { |
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
CCTableViewCell *CCTableView::dequeueCellWithTag(int nTag) | |
{ | |
CCTableViewCell *cell = NULL; | |
for (int i = 0, len = m_pCellsFreed->count(); i < len; i++) { | |
CCTableViewCell *tempCell = (CCTableViewCell*)m_pCellsFreed->objectAtIndex(i); | |
if (tempCell->getTag() == nTag) { | |
cell = tempCell; | |
cell->retain(); | |
m_pCellsFreed->removeObjectAtIndex(i); |
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
const char * niceTime(time_t targetTime, time_t now = time(0)) { | |
const char *periods[8] = {"second", "minute", "hour", "day", "week", "month", "year", "decade"}; | |
float lengths[7] = {60.0, 60.0, 24.0, 7.0, 4.35, 12.0, 10}; | |
int difference = now > targetTime ? now - targetTime : targetTime - now; | |
int i = 0; | |
for (; difference >= lengths[i] && i < 7; i++) { | |
difference /= lengths[i]; | |
} |
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
<!-- react code --> | |
<script type="text/jsx"> | |
/** | |
* @jsx React.DOM | |
*/ | |
var Example = React.createClass({ | |
style: ` | |
view { | |
width: 100px; | |
height: 100px; |
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
// | |
// GameControls.h | |
// Hiss | |
// | |
// Created by Chad Scira on 6/21/14. | |
// Copyright (c) 2014 Chad Scira. All rights reserved. | |
// | |
#import <SpriteKit/SpriteKit.h> |
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 RCSPropertiesInit (Properties) { | |
Properties.setBaseUrl('/'); | |
// defaulting number values to px values | |
Properties.registerProperty(/.*/, function (name, value) { | |
var stringValue = String(value), | |
numberPropertyKeys = /^(?:column-count|fill-opacity|flex|flex-grow|flex-shrink|font-weight|line-clamp|opacity|order|orphans|widows|z-index|zoom)$/, | |
numberValues = /^([a-z0-9.]+) ?(?:([a-z0-9.]+) ?)?(?:([a-z0-9.]+) ?)?(?:([a-z0-9.]+) ?)?$/; | |
if (name.match(numberPropertyKeys) || !numberValues.test(stringValue)) { |
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
// routes/products.js | |
module.exports = [ | |
{ | |
method: 'GET', | |
path: '/products', | |
config: { | |
validate: { | |
query: { | |
name: Joi.string().required(), |
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(modules) { // webpackBootstrap | |
/******/ // The module cache | |
/******/ var installedModules = {}; | |
/******/ | |
/******/ // The require function | |
/******/ function __webpack_require__(moduleId) { | |
/******/ | |
/******/ // Check if module is in cache | |
/******/ if(installedModules[moduleId]) | |
/******/ return installedModules[moduleId].exports; |
OlderNewer