Skip to content

Instantly share code, notes, and snippets.

@The-sultan
The-sultan / sonoff-tx-factory.yaml
Last active April 30, 2026 23:47
Factory gist to improve my flashing workflow
esphome:
name: sonoff-tx
name_add_mac_suffix: true
project:
name: The-sultan.sonoff-tx-factory
version: "1.0"
dashboard_import:
package_import_url: github://The-sultan/621398a5af79e844f12cad8412be4717/sonoff-tx-factory.yaml@main
import_full_config: true
@The-sultan
The-sultan / controller.js
Last active May 15, 2016 21:03
Actividad saan con uso de Text to Speech
angular.module('saan.controllers')
.controller('juego1Ctrl', function($scope, TTSService) {
$scope.activityId = 'juego1';
$scope.params = {
word : ""
}
$scope.speak = function(){
TTSService.speak($scope.params.word);
}
});
@The-sultan
The-sultan / Cordova.bat
Created October 20, 2015 00:15
Create cordova app
cordova create appCreator com.example.appCreator appCreator
cd appCreator
cordova platforms add android
@The-sultan
The-sultan / 0_reuse_code.js
Created October 20, 2015 00:12
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console