Skip to content

Instantly share code, notes, and snippets.

var fs = require("fs");
var path = require("path");
var rmdir = function(dir) {
var empty = true, list = fs.readdirSync(dir);
for(var i = list.length - 1; i >= 0; i--) {
var filename = path.join(dir, list[i]);
var stat = fs.statSync(filename);
if(filename.indexOf('.') > -1) {
@azaslavsky
azaslavsky / config.json
Last active August 29, 2015 14:08
Config for Bootstrap Loader
{
"vars": {
"@border-radius-base": "4px",
"@border-radius-large": "4px",
"@border-radius-small": "3px",
"@tooltip-max-width": "200px",
"@tooltip-color": "#fff",
"@tooltip-bg": "#000",
"@tooltip-opacity": ".9",
"@tooltip-arrow-width": "5px",
@azaslavsky
azaslavsky / media.scss
Created April 17, 2015 23:46
SCSS mixin for various screen types
@import "bourbon";
//Change the media breakpoints as you see fit
$mediaMobile: 600px;
$mediaTablet: 1080px;
@mixin responds-to($media: desktop) {
//All screens greater than tablet size
@mixin angular-animate-hide($duration,$property,$easing,$min-val,$max-val){
transition :$duration $property $easing;
&.ng-hide-add,&.ng-hide-remove{
display: block !important;
#{$property}: $min-val;
}
&.ng-hide-remove.ng-hide-remove-active{
#{$property}: $max-val;
@azaslavsky
azaslavsky / main.dart
Last active April 13, 2022 18:59
Const constructor
import 'dart:typed_data';
const BAR = Foo(
a: true,
b: 1234,
c: C(
$unknownData: null,
d: "abcd",
));