This file contains hidden or 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
; Start G-Code | |
G21 ;set units to millimeters | |
G90 ;use absolute positioning | |
M104 S{material_print_temperature_layer_0} ;set extruder temp | |
M140 S{material_bed_temperature_layer_0} ;set bed temp | |
G28 ;Home all axes | |
;G1 Z5.0 ;move platform down 5mm ;off for 2.0.3 firmware | |
G1 X0 Y20 F5000.0 ;move to intro line start position | |
M190 S{material_bed_temperature_layer_0} ;wait for bed temp | |
M109 S{material_print_temperature_layer_0} ;wait for extruder temp |
This file contains hidden or 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
// go build get_dashboards.go | |
// GF_HOST='localhost:3000' GF_API_KEY='#####' ./get_dashboards | |
package main | |
import ( | |
"bytes" | |
"context" | |
"encoding/json" | |
"fmt" |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
/* eslint no-bitwise: "off", no-plusplus: "off", no-console: "off", no-unused-vars: warn */ | |
const Benchmark = typeof window === 'object' ? window.Benchmark : require('benchmark'); // https://benchmarkjs.com | |
function roundFn01(value, precision) { // Simple version | |
const mult = +`1e${~~+precision || 0}`; | |
const v = +value; | |
return Number.isNaN(v) ? NaN : Math.round((v || 0) * mult) / mult; | |
} | |
function roundFn02(value, exp) { // Original MDN version |
This file contains hidden or 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
// Logging helpers | |
var _startTime; | |
function _log() { // calling: _log.apply(console.log, arguments); | |
var nowTime = new Date(); | |
var args = Array.prototype.slice.call(arguments, 0); | |
// var log = args.pop(); | |
if (!_startTime) _startTime = nowTime; | |
args.unshift((' ' + (nowTime - _startTime)).slice(-5), 'ms:'); |
This file contains hidden or 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
Option Explicit | |
Public Function StrFormat(format, arguments()) | |
Dim value, num | |
StrFormat = format | |
num = 0 | |
For Each value In arguments | |
StrFormat = Replace(StrFormat, "{" & num & "}", value) | |
num = num + 1 | |
Next |
This file contains hidden or 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
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; | |
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; | |
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; | |
/*!40101 SET NAMES utf8 */; | |
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; | |
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; | |
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; | |
# Dump of table blog |
This file contains hidden or 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 app; | |
var clrFilePath; | |
var colorCnt = 0; | |
var colorList; | |
var jsonFilePath; | |
var nsColorList; | |
var paletteName; | |
function hex2rgba(color) { | |
function ch(pos) { |
This file contains hidden or 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 app; | |
var clrFilePath; | |
var colorList = {}; | |
var jsonFilePath; | |
var nsColorList; | |
var nsStringColorList; | |
var paletteName; | |
function c2h(colorValue) { | |
return ('0' + Math.round(colorValue * 255).toString(16)).slice(-2); |
This file contains hidden or 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
Show hidden characters
[{ | |
"keys": ["super+shift+h"], | |
"command": "eip_beautify", | |
"args": {"command": "cd \"{dir}\" && js-beautify --js --replace \"{file}\""}, | |
"context": [{"key": "selector", "operand": "source.js", "operator": "equal"}] | |
}, { | |
"keys": ["super+shift+h"], | |
"command": "eip_beautify", | |
"args": {"command": "cd \"{dir}\" && js-beautify --css --replace \"{file}\" && csscomb \"{file}\""}, | |
"context": [{"key": "selector", "operand": "source.css", "operator": "equal" |
NewerOlder