remove-item alias:basename
remove-item alias:cat
remove-item alias:chmod
remove-item alias:comm
remove-item alias:cp
remove-item alias:cut
remove-item alias:date
remove-item alias:dirname
remove-item alias:echo
View toTimezone.ts
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
import * as moment from "moment-timezone"; | |
/** | |
* @description | |
* @param {Date | string | moment} date Date to transform. | |
* @param {string} originTZ Timezone in which the date to transform is currently. I.E. "UTC". Defaults to client PC TZ. | |
* @param {string} destinationTZ Timezone to which to convert the date. I.E. "America/Los Angeles". Defaults to "UTC". | |
* @return {string} Date converted to destination timezone in string. | |
* | |
*/ |
View windows-terminal-profile.json
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
// To view the default settings, hold "alt" while clicking on the "Settings" button. | |
// For documentation on these settings, see: https://aka.ms/terminal-documentation | |
{ | |
"$schema": "https://aka.ms/terminal-profiles-schema", | |
"defaultProfile": "{ca71e3ed-08be-47ee-99f4-0fec221b68c9}", | |
"initialCols": 120, | |
"initialRows": 40, |
View JFrame.java
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
import javax.swing.JFrame; | |
import javax.swing.JPanel; | |
class Main { | |
private static final String TITLE = "My Game"; | |
private static final int[] DIMENSIONS = {800, 600}; | |
public static void main(String s[]) { | |
View PROFILE.md
View GuessingGame.py
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
import logging | |
import random | |
ENTER_HIGHEST_VALUE = "What would you like the highest value to be?" | |
NUMBER_NOT_VALID = "That is not a number. :(" | |
NUMBER_NOT_IN_RANGE = "I don't know how to play with negative numbers. Sorry... :(" | |
NUMBER_CANNOT_BE_HIGHER_THAN = "Sorry, but the guess cannot be higher than the highest number:" | |
ENTER_GUESS = "Guess the number. :)" | |
TRY_AGAIN = "Try again." | |
HIGHER = "My number is higher!" |
View GuessingGame.py
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
import logging | |
import random | |
ENTER_HIGHEST_VALUE = "What would you like the highest value to be?" | |
NUMBER_NOT_VALID = "That is not a number. :(" | |
NUMBER_NOT_IN_RANGE = "I don't know how to play with negative numbers. Sorry... :(" | |
NUMBER_CANNOT_BE_HIGHER_THAN = "Sorry, but the guess cannot be higher than the highest number:" | |
ENTER_GUESS = "Guess the number. :)" | |
TRY_AGAIN = "Try again." | |
HIGHER = "My number is higher!" |
View GuessingGame.py
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
import logging | |
import random | |
ENTER_HIGHEST_VALUE = "What would you like the highest value to be?" | |
NUMBER_NOT_VALID = "That is not a number. :(" | |
NUMBER_NOT_IN_RANGE = "I don't know how to play with negative numbers. Sorry... :(" | |
NUMBER_CANNOT_BE_HIGHER_THAN = "Sorry, but the guess cannot be higher than the highest number:" | |
ENTER_GUESS = "Guess the number. :)" | |
TRY_AGAIN = "Try again." | |
HIGHER = "My number is higher!" |
View quick_debug.js
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
try | |
{ | |
} | |
catch(e) | |
{ | |
var error = "http://stackoverflow.com/search?q=[js]+"+e.message; | |
window.open(error, '_blank'); | |
} |
View Config.md
ROUTER R1
en
conf t
CONFIGURACION BÁSICA
hostname R1
no ip domain-lookup
enable secret class
banner motd #WELCOME TO ROUTER R1!#
line con 0
logging synchronous
View Codigo PetFeeder
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
RECIBIR.php | |
<?php | |
$puerto="/dev/ttyACM0"; | |
if(isset($_GET["codigo"])) | |
{ | |
$codigo = $_GET["codigo"]; | |
if($codigo == 2) | |
{ | |
$conexion = fopen($puerto, "w+"); |
NewerOlder