Skip to content

Instantly share code, notes, and snippets.

View chucklarge's full-sized avatar

Charles Clark chucklarge

View GitHub Profile
I think we can't quantize to the start/end of the period for week or monthly, since you might want the report on Wednesday to contain previous Wed - Tuesday.
some quick thoughts, assumes the cron is running 2013_04_03
- Daily -
:DATE - 2013_04_03
:DATE_START and :DATE_END - 2013_04_03 >= && < 2012_04_04
- Weekly -
:DATE - 2013_04_03
array of numbers 1- 100
traverse array
div 3 - digits sum to 3
public static void main (String [] args){
divBy3or7(createArray());
}
<script type="text/javascript">
var data = {
query_id: {% if $query.query_id %}{% $query.query_id %}{% else %}null{% /if %},
database: '{% $query.database %}',
team: '{% $query.team %}',
category: '{% $query.category %}',
status: '{% if $query.status %}{% $query.status %}{% else %}draft{% /if %}',
page: 'query'
};
require(['atlas/superbit/base',
[log]> tail -f system.log
Dec 5 13:22:32 NYStock-2373 kernel[0]: CODE SIGNING: cs_invalid_page(0x1000): p=86563[ksadmin] final status 0x0, allow (remove VALID)ing page
Dec 5 13:22:33 NYStock-2373 kernel[0]: CODE SIGNING: cs_invalid_page(0x1000): p=86566[ksadmin] final status 0x0, allow (remove VALID)ing page
Dec 5 13:22:33 NYStock-2373 Google Chrome Helper[86565]: Process unable to create connection because the sandbox denied the right to lookup com.apple.coreservices.launchservicesd and so this process cannot talk to launchservicesd. : LSXPCClient.cp #426 ___ZN26LSClientToServerConnection21setupServerConnectionEiPK14__CFDictionary_block_invoke() q=com.apple.main-thread
Dec 5 13:22:33 NYStock-2373 Google Chrome Helper[86565]: Process unable to create connection because the sandbox denied the right to lookup com.apple.coreservices.launchservicesd and so this process cannot talk to launchservicesd.
Dec 5 13:22:33 NYStock-2373 Google Chrome Helper[86565]: CGSLookupServerRootPort: Failed to look up the port
var object = {};
undefined
object
Object {}
function fn(){
return this;
}
undefined
fn();
Window {top: Window, window: Window, location: Location, external: Object, chrome: Object…}
chuck@atombomb:~$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 142G 47G 88G 35% /
udev 992M 4.0K 992M 1% /dev
tmpfs 401M 868K 400M 1% /run
none 5.0M 0 5.0M 0% /run/lock
none 1002M 4.0K 1002M 1% /run/shm
/dev/sde1 1.8T 1.5T 384G 80% /media/download
/dev/sdd1 2.7T 201M 2.7T 1% /media/movies
/dev/sdb1 2.7T 2.5T 203G 93% /media/media
(parted) print
Model: ATA WDC WD30EFRX-68A (scsi)
Disk /dev/sdd: 3.00TB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Number Start End Size File system Name Flags
1 0.00TB 0.00TB 0.00TB ext4 primary
(parted) mklabel gpt
chuck@atombomb:~$ sudo lshw -C disk
*-disk
description: ATA Disk
product: WDC WD1600BEVE-0
vendor: Western Digital
physical id: 0.0.0
bus info: scsi@0:0.0.0
logical name: /dev/sda
version: 01.0
serial: WD-WXC908809687
<?php
function something() {
$deleted_id = $someobject->id;
$someobject->delete();
$newobject = new ORM();
$data = array(
'blah' => 'addf',
'prev_id' => $deleted_id,
y = d3.scale.linear().domain([-300,300]).range([0, height]);
x = d3.scale.linear().domain([-300,300]).range([0, width]);