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
OPENAI_API_KEY=your key |
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
id | name | ||
---|---|---|---|
77975 | [email protected] | Arnaud Ferreri |
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
SELECT | |
drivers.id, | |
drivers.first_name, | |
(SELECT COUNT(*) FROM order_deliveries INNER JOIN picking_sets ON order_deliveries.batch_id = picking_sets.id WHERE order_deliveries.pay_shopper_if_canceled = 'f' AND picking_sets.driver_id = drivers.id) as deliveries_count, | |
(SELECT COUNT(*) FROM order_deliveries INNER JOIN picking_sets ON order_deliveries.batch_id = picking_sets.id WHERE order_deliveries.pay_shopper_if_canceled = 'f' AND order_deliveries.id IN (SELECT order_delivery_id FROM order_issues) AND picking_sets.driver_id = drivers.id) as deliveries_with_issues_count | |
FROM drivers; |
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
StyleStats! | |
┌──────────────────────────┬────────────────────────┐ | |
│ Size │ 132.4KB │ | |
├──────────────────────────┼────────────────────────┤ | |
│ Rules │ 1040 │ | |
├──────────────────────────┼────────────────────────┤ | |
│ Selectors │ 1446 │ | |
├──────────────────────────┼────────────────────────┤ | |
│ Simplicity │ 71.92% │ | |
├──────────────────────────┼────────────────────────┤ |
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
$(".search.themes li input").change(function() { | |
var classes = [] | |
$(".search.themes li input:checked").each(function(){ | |
console.log($(this).siblings(".box")) | |
var classList = $(this).siblings(".box").attr('class').split(/\s+/); | |
$.each( classList, function(index, item){ | |
if (item != 'box') { | |
classes.push(item) | |
} |
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
+ (UIColor*) gradientFromColor:(UIColor*)c1 toColor:(UIColor*)c2 withHeight:(int)height | |
{ | |
CGSize size = CGSizeMake(1, height); | |
UIGraphicsBeginImageContextWithOptions(size, NO, 0); | |
CGContextRef context = UIGraphicsGetCurrentContext(); | |
CGColorSpaceRef colorspace = CGColorSpaceCreateDeviceRGB(); | |
NSArray* colors = [NSArray arrayWithObjects:(id)c1.CGColor, (id)c2.CGColor, nil]; | |
CGGradientRef gradient = CGGradientCreateWithColors(colorspace, (CFArrayRef)colors, NULL); | |
CGContextDrawLinearGradient(context, gradient, CGPointMake(0, 0), CGPointMake(0, size.height), 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
#import "GPUImageBlendTone.h" | |
#import "GPUImage.h" | |
@implementation GPUImageBlendTone | |
- (id)init; | |
{ | |
if (!(self = [super init])) | |
{ |
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
// | |
// ChallengeViewController.m | |
// ikarma | |
// | |
// Created by Arnaud Ferreri on 4/23/12. | |
// Copyright (c) 2012 Onefeat. All rights reserved. | |
// | |
#import "ChallengeViewController.h" | |
#import <extThree20JSON/extThree20JSON.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
module AttributeSerializer | |
module ActiveRecordExtensions | |
module ClassMethods | |
def serializeable(serialized, serialized_accessors={}) | |
serialize serialized, serialized_accessors.class | |
serialized_attr_accessor serialized, serialized_accessors | |
default_serialized_attr serialized, serialized_accessors | |
end |
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
date = $('meta[name=next_sale]').attr("content"); | |
end_date = Date.parse(date); | |
remaining_time = end_date - now; | |
if (remaining_time > 0) { | |
$("#box5").html('<div id="box_timer">Ivan est un gros anuf</div>'); | |
} else { | |
setInterval("updateTimer()", 1000); | |
} |
NewerOlder