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
#Based on https://github.com/ericholscher/django-test-utils/blob/master/test_utils/management/commands/makefixture.py | |
#v0.1 -- current version | |
#known issues: | |
#no support for generic relations | |
#no support for one-to-one relations | |
from optparse import make_option | |
from django.core import serializers | |
from django.core.management.base import BaseCommand | |
from django.core.management.base import CommandError |
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
#!/usr/bin/env node | |
var JSON = require('JSON'); | |
var fs = require('fs'); | |
var argv = require('yargs').argv; | |
var isObject = function(v) { return v && (typeof v==='object') && !('length' in v); }; | |
var isArray = function(v) { return v && (typeof v==='object') && ('length' in v); }; | |
var isPrimitive = function(v) { var res=(typeof v in {'boolean':true,'number':true,'string':true,'undefined':true}) || (v===null); return res;}; | |
var keys = function(v) {keys=[]; for(var key in v){keys.push(key)} return keys}; |
This file has been truncated, but you can view the full file.
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
M190 S50.000000 | |
M109 S195.000000 | |
;Sliced at: Mon 14-09-2015 12:17:46 | |
;Basic settings: Layer height: 0.1 Walls: 0.8 Fill: 20 | |
;Print time: 2 hours 8 minutes | |
;Filament used: 2.995m 8.0g | |
;Filament cost: None | |
;M190 S50 ;Uncomment to add your own bed temperature line | |
;M109 S195 ;Uncomment to add your own temperature line | |
G21 ;metric values |
This file has been truncated, but you can view the full file.
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
M190 S50.000000 | |
M109 S195.000000 | |
;Sliced at: Mon 14-09-2015 12:12:50 | |
;Basic settings: Layer height: 0.1 Walls: 0.8 Fill: 20 | |
;Print time: 1 hour 53 minutes | |
;Filament used: 2.729m 8.0g | |
;Filament cost: None | |
;M190 S50 ;Uncomment to add your own bed temperature line | |
;M109 S195 ;Uncomment to add your own temperature line | |
G21 ;metric values |
This file has been truncated, but you can view the full file.
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
M190 S50.000000 | |
M109 S195.000000 | |
;Sliced at: Mon 14-09-2015 12:14:56 | |
;Basic settings: Layer height: 0.1 Walls: 0.8 Fill: 20 | |
;Print time: 2 hours 2 minutes | |
;Filament used: 2.364m 7.0g | |
;Filament cost: None | |
;M190 S50 ;Uncomment to add your own bed temperature line | |
;M109 S195 ;Uncomment to add your own temperature line | |
G21 ;metric values |
This file has been truncated, but you can view the full file.
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
M190 S50.000000 | |
M109 S195.000000 | |
;Sliced at: Mon 14-09-2015 12:16:28 | |
;Basic settings: Layer height: 0.1 Walls: 0.8 Fill: 20 | |
;Print time: 1 hour 45 minutes | |
;Filament used: 2.5m 7.0g | |
;Filament cost: None | |
;M190 S50 ;Uncomment to add your own bed temperature line | |
;M109 S195 ;Uncomment to add your own temperature line | |
G21 ;metric values |
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
#include <MPU9250_asukiaaa.h> | |
#include <FastLED.h> | |
#define LED_PIN 5 | |
#define NUM_LEDS 144 | |
#define BRIGHTNESS 64 | |
#define LED_TYPE WS2811 | |
#define COLOR_ORDER GRB | |
#define DEBUG 1 | |
#define UPDATES_PER_SECOND 50 |
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
#!/usr/bin/env python2.7 | |
import traceback | |
import requests | |
import shutil | |
import time | |
import json | |
import os | |
import re |
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
#!/usr/bin/env bash | |
if [[ "$1" == "" ]]; then | |
echo Please specify a destination app name | |
else | |
APP_NAME=$1 | |
fi | |
if [[ "$2" != "--dryrun" ]]; then | |
WRITES=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
#!/usr/bin/env node | |
//var JSON = require('JSON'); | |
var fs = require('fs'); | |
var argv = require('yargs').argv; | |
var isObject = function(v) { return v && (typeof v==='object') && !('length' in v); }; | |
var isArray = function(v) { return v && (typeof v==='object') && ('length' in v); }; | |
var isPrimitive = function(v) { var res=(typeof v in {'boolean':true,'number':true,'string':true,'undefined':true}) || (v===null); return res;}; | |
var keys = function(v) {keys=[]; for(var key in v){keys.push(key)} return keys}; |
OlderNewer