Skip to content

Instantly share code, notes, and snippets.

@dlech
dlech / gelo.py
Last active September 19, 2023 07:40
A program for LEGO MINDSTORMS Robot Inventor - Gelo model
# SPDX-License-Identifier: MIT
# Copyright (c) 2021 David Lechner <david@pybricks.com>
# A program for LEGO MINDSTORMS Robot Inventor - Gelo
# Developed using MINDSTORMS App v1.3.4 (10.1.0), hub firmware v1.2.01.0103
# Building instructions: https://www.lego.com/cdn/product-assets/product.bi.additional.main.pdf/51515_Gelo.pdf
# Hub API: https://lego.github.io/MINDSTORMS-Robot-Inventor-hub-API/
@and7ey
and7ey / Google App Engine.sublime-build
Created May 25, 2020 10:24
Google Cloud (gcloud) App Engine Build System for Sublime Text
// http://www.sublimetext.com/docs/3/build_systems.html
// https://cloud.google.com/sdk/gcloud/reference/app
{
"file_patterns": ["*.py", "*.yaml"],
"keyfiles": ["app.yaml"],
"quiet": true,
"variants":
[
{
"name": "Run local server",
@det-peralta
det-peralta / tcl.yml
Created January 20, 2020 19:14
TCL TV - android adb command - Home Assistant
entity_id: media_player.tcl_tv
command: "am start -n com.tcl.tv/.TVActivity"
@and7ey
and7ey / VK Group Dashing Widget.md
Last active March 5, 2016 19:38
VK Group Dashing Widget

#VK Group Dashing Widget

Dashing Widget for displaying VK group members count.

##Usage

To use this widget, copy the vk_group.rb file in your /jobs folder, then copy vk_group.yml into your /config folder and setup the group_id there (the VK API method used doesn't require api_token, so just group_id is needed).

Add gem 'rest-client' to your Gemfile and run bundle. If you would like to store and display previous group members count value, add gem 'redis' also (don't forget to install the Redis itself).