/^([0-9].*)x([1-8][0-9][0-9])$/
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
function countNodes(elem) { | |
const nodeCount = elem.getElementsByTagName('*').length; | |
elem.setAttribute('data-nodes', nodeCount); | |
[].slice.call(elem.children).forEach(countNodes); | |
} |
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
<embedded>:121087 IntersectionObserver.observe(target): target element is not a descendant of root. | |
TreeView @ <embedded>:121087 | |
<embedded>:25811 Enabled theme 'no-caffeine-syntax' is not installed. | |
warnForNonExistentThemes @ <embedded>:25811 | |
<embedded>:267185 Uncaught (in promise) Error: RelayModernGraphQLTag: Expected an request, got `{"fragment":{"argumentDefinitions":[{"kind":"LocalArgument","name":"prUrl","type":"URI!","defaultValue":null}],"kind":"Fragment","metadata":null,"name":"PrInfoControllerByUrlQuery","selections":[{"kind":"LinkedField","alias":null,"args":[{"kind":"Variable","name":"url","variableName":"prUrl","type":"URI!"}],"concreteType":null,"name":"resource","plural":false,"selections":[{"kind":"FragmentSpread","name":"PrSelectionByUrlContainer_resource","args":null}],"storageKey":null}],"type":"Query"},"id":null,"kind":"Batch","metadata":{},"name":"PrInfoControllerByUrlQuery","query":{"argumentDefinitions":[{"kind":"LocalArgument","name":"prUrl","type":"URI!","defaultValue":null}],"kind":" |
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 "HX711.h" | |
//HX711 scale(D5, D6, 128); | |
byte PD_SCK = D5; | |
byte DOUT = D6; | |
byte GAIN; | |
long OFFSET; | |
float SCALE; | |
float calibration_factor = 2230; // this calibration factor is adjusted according to my load cell |
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
#!/bin/bash | |
for image in $( ls *.{jpg,jpeg} ); do | |
# Get the width and height | |
height=`sips --getProperty pixelHeight $image | sed -E "s/.*pixelHeight: ([0-9]+)/\1/g" | tail -1` | |
width=`sips --getProperty pixelWidth $image | sed -E "s/.*pixelWidth: ([0-9]+)/\1/g" | tail -1` | |
if [[ $height -gt 600 || $width -gt 800 ]]; then | |
echo "large file ($image) needs reducing" |
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
// Generated by CoffeeScript 1.9.3 | |
var honeybadgerAsyncForjQuery; | |
(honeybadgerAsyncForjQuery = function($) { | |
var _oldAjax, _oldEventAdd, _oldReady, honeybadgerAjaxWrapper, honeybadgerEventAdd, honeybadgerjQueryReadyWrapper; | |
if ((typeof $ == 'undefined') || (typeof Honeybadger == 'undefined')) { | |
return; | |
} | |
_oldEventAdd = $.event.add; | |
$.event.add = honeybadgerEventAdd = function(elem, types, handler, data, selector) { |
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
<link rel="import" href="../core-field/core-field.html"> | |
<link rel="import" href="../core-icon/core-icon.html"> | |
<link rel="import" href="../core-input/core-input.html"> | |
<link rel="import" href="../core-icons/core-icons.html"> | |
<link rel="import" href="../core-menu/core-submenu.html"> | |
<link rel="import" href="../core-item/core-item.html"> | |
<polymer-element name="my-element"> | |
<template> |
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
<link rel="import" href="../topeka-elements/category-images.html"> | |
<link rel="import" href="../core-icon/core-icon.html"> | |
<link rel="import" href="../core-icons/core-icons.html"> | |
<link rel="import" href="../core-icons/av-icons.html"> | |
<link rel="import" href="../paper-fab/paper-fab.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> |
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 myStage; | |
var startDrag; | |
var myRect; | |
// | |
//Shape abstraction | |
// | |
//var RectShape = function(x, y, width, height){ | |
// this.bonsaiRect = new Rect(x, y, width, height); |
NewerOlder