index.html:
<html lang="en">
<head>
</head>
<body>
...
<script data-main="/js/config" src="/js/lib/require.min.js"></script>
index.html:
<html lang="en">
<head>
</head>
<body>
...
<script data-main="/js/config" src="/js/lib/require.min.js"></script>
function convertJsonDate( $string ) { | |
if ( preg_match('#^/Date\((-?\d+)([+-]\d+)?\)/$#', $string, $matches) ) { | |
$ds = intval( $matches[1] ) / 1000; | |
$dm = intval( $matches[1] ) % 1000; | |
$tz = '+000'; | |
if ( isset($matches[2]) ) { | |
$tz = $matches[2]; | |
} |
require 'rubygems' | |
require 'octokit' | |
require 'fastercsv' | |
require 'date' | |
# Description: | |
# Exports Github issues from one or more repos into CSV file formatted for import into JIRA | |
# Note: By default, all Github comments will be assigned to the JIRA admin, appended with | |
# a note indicating the Github user who added the comment (since you may not have JIRA users | |
# created for all your Github users, especially if it is a public/open-source project: |
<?php | |
class DateFormat { | |
const DATE_SHORT = 'Y-m-d'; | |
const DATE_LONG = 'F j, Y'; | |
const DATETIME_SHORT = 'Y-m-d H:i'; | |
const DATETIME_LONG = 'F j, Y, g:i a'; |
<?php | |
/** | |
* /application/tasks/db.php | |
*/ | |
class DB_Task { | |
/** | |
* php artisan db:init [connection] [user] |
<?php | |
class Data { | |
public static function factory() | |
{ | |
$args = func_get_args(); | |
if (count($args)==0) { |
<?php | |
// $rules = array( | |
// 'field' => 'required|date:Y-m-d' | |
// ); | |
public function validate_date($attribute, $value, $parameters) | |
{ | |
$format = $parameters[0]; |
<?php | |
class Data extends Aware { | |
public static $timestamps = true; | |
public static $table = 'data'; | |
private static $class = null; |
/* the users */ | |
CREATE TABLE `users` ( | |
`id` int(10) unsigned NOT NULL AUTO_INCREMENT, | |
`username` varchar(128) NOT NULL, | |
`email` varchar(128) NOT NULL, | |
`password` varchar(128) NOT NULL | |
); | |
ScrabbleClub cmv$ git commit -a | |
# On branch master | |
# Your branch is ahead of 'origin/master' by 69 commits. | |
# | |
# Changes not staged for commit: | |
# (use "git add <file>..." to update what will be committed) | |
# (use "git checkout -- <file>..." to discard changes in working directory) | |
# (commit or discard the untracked or modified content in submodules) | |
# | |
# modified: bundles/eloquent (modified content, untracked content) |