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
| use clap::Parser; | |
| use reqwest::Client; | |
| use select::predicate::{Name, Predicate}; | |
| use std::env; | |
| use std::fs::{create_dir_all, File}; | |
| use std::io::Write; | |
| use std::path::Path; | |
| use std::time::Duration; | |
| #[derive(PartialEq)] |
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
| fila = 1 | |
| while fila <= 5: | |
| i = 1 | |
| while i <= fila: | |
| print('*', end='') | |
| i += 1 | |
| print() | |
| fila += 1 | |
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
| /* | |
| * Fan protocol tester | |
| * light should toggle | |
| */ | |
| #include <Arduino.h> | |
| /* | |
| * Set library modifiers first to set output pin etc. | |
| */ |
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
| from io import BytesIO, StringIO | |
| import pandas as pd | |
| from flask import send_file, Flask | |
| server = Flask(__name__) | |
| @server.route("/download/", defaults=dict(name="file")) | |
| @server.route("/download/<name>") |
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
| source "https://rubygems.org" | |
| gem 'awesome_print' | |
| gem 'pry' |
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
| { | |
| "presets": [ | |
| [ | |
| "@babel/preset-env", | |
| { | |
| "targets": { | |
| "node": "current" | |
| } | |
| } | |
| ] |
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
| import { config, editName, getConfig, getName, updateConfig, editSetting, getSetting } from './options' | |
| // con objetos | |
| console.log(getConfig()) | |
| config.angle = 45 | |
| console.log(getConfig()) | |
| // con funciones que manipulan objetos | |
| console.log(getConfig()) | |
| updateConfig({ |
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
| /* bling.js */ | |
| window.$ = document.querySelectorAll.bind(document) | |
| Node.prototype.on = window.on = function (name, fn) { | |
| this.addEventListener(name, fn) | |
| } | |
| NodeList.prototype.__proto__ = Array.prototype |
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
| #!/usr/bin/env ruby | |
| file = ARGV.shift | |
| contents = File.read(file, {:encoding => "ISO-8859-15", :mode => "rb"}) | |
| contents.encode!("UTF-8") | |
| File.open(file, 'w') do |f| | |
| f.write(contents) |