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
// Scss Utils | |
// @author EtienneLem | |
// CSS3 misc | |
@mixin rounded ( $radius, $prefix:'' ) { | |
@include prefixes(border-radius, $radius, $prefix); | |
} | |
@mixin box-shadow ( $value ) { | |
@include prefixes(box-shadow, $value); |
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
CSS 2 | |
5.8.1 Matching attributes and attribute values | |
http://www.w3.org/TR/CSS2/selector.html#attribute-selectors | |
Attribute selectors may match in four ways: | |
[att] | |
Match when the element sets the "att" attribute, | |
whatever the value of the attribute. |
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
// Custom Border Radius | |
@mixin _border-radius($radius: 5px, $vertical-radius: false) { | |
@if $vertical-radius { | |
// Webkit doesn't understand the official shorthand syntax for specifying | |
// a vertical radius unless so in case there's several we only take the first. | |
@include experimental(border-radius, first-value-of($radius) first-value-of($vertical-radius), | |
not -moz, | |
-webkit, | |
not -o, |
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
<!doctype html> | |
<head> | |
<meta charset=utf-8> | |
<title>3D spin</title> | |
<style> | |
/* | |
* nb: -webkit only for brevity. tested in chrome 21 | |
*/ | |
body { | |
-webkit-perspective: 800px; |
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 border-radius($radius...) { | |
// defining prefixes so we can use them in mixins below | |
$prefixes: ("-webkit", "-moz", "-ms", "-o", ""); | |
@each $prefix in $prefixes { | |
#{$prefix}-border-radius: $radius; | |
} | |
border-radius: $radius; | |
} |
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 translate3d($x, $y, $z) { | |
-webkit-transform: translate3d($x, $y, $z); | |
-moz-transform: translate3d($x, $y, $z); | |
-o-transform: translate3d($x, $y, $z); | |
transform: translate3d($x, $y, $z); | |
} |
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
/** | |
* The Box-Ordinal-Group and Flexbox | |
*/ | |
.box { | |
overflow:hidden; | |
display:box; | |
display:-ms-box; | |
display:-moz-box; | |
display:-webkit-box; |
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 mongoose = require('mongoose'); | |
var mongoFacets = require('../lib/mongo-facets'); | |
var ExampleSchema = new mongoose.Schema({ | |
stringField: String, | |
numberField: Number, | |
arrayOfStringsField: [String] | |
}); | |
mongoFacets('Example', ExampleSchema); |
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 express = require('express'), | |
app = express(), | |
server = require('http').createServer(app); | |
io = require('socket.io').listen(server), | |
jwt = require("jwt-simple"), | |
secret = "dgv33rggr3ewsfsf23gf2grwrf", | |
crypto = require('crypto'), | |
uuid = require('node-uuid'), | |
geoip = require('geoip-lite'), | |
storeStats = require('./storeStats.js'), |