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
await AiSuggestion.aggregate([ | |
{ | |
$group: { | |
_id: "$user", | |
models: { | |
$push: { | |
model: "$request.model", | |
totalTokens: { $sum: "$response.usage.total_tokens" }, | |
}, | |
}, |
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
var canvas = document.getElementById("acanvas"); | |
var w = canvas.width = 200; | |
var h = canvas.height = 200; | |
var context = canvas.getContext("2d"); | |
for(i=0;i<w;i++) { | |
for(j=0;j<h;j++) { | |
var num = Math.floor(Math.random()*255); |
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
@mixin user-select($select) { | |
$select: unquote($select); | |
@include experimental(user-select, $select, | |
-moz, -webkit, not -o, not -ms, -khtml, official | |
); | |
} |
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
// Use @include colorize('image.png', red, 0.5) | |
@mixin colorize($image, $color, $opacity) { | |
background: $color; | |
$color: transparentize($color, 1 - $opacity); | |
background: -webkit-linear-gradient(left, $color, $color), url($image); | |
background: -moz-linear-gradient(left, $color, $color), url($image); | |
background: -ms-linear-gradient(left, $color, $color), url($image); | |
background: -o-linear-gradient(left, $color, $color), url($image); | |
} |
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
&.bg-blueprint-grid { | |
@include background-blueprint-grid( | |
$width: 50px, $width-alt: 5px | |
); | |
} | |
&.bg-noise { | |
@include background-noise( | |
$opacity: 1 | |
); |
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 '../global'; | |
$global_row_height: 2.5em; | |
$toolbar_spacing: .2em; | |
$default_toolbar_gradient: 'matte'; | |
@mixin sencha-toolbar { | |
.x-toolbar { | |
height: $global_row_height; |