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
| /* ==UserStyle== | |
| @name Localhost dev bar | |
| @namespace joaoqalves | |
| @version 1.0.0 | |
| @description Show a fixed "LOCAL DEV" bar on localhost | |
| @author João Alves | |
| ==/UserStyle== */ | |
| @-moz-document url-prefix("http://localhost"), url-prefix("https://localhost"), url-prefix("https://dev.") { | |
| /* Add space so the bar doesn't cover the top of the page */ |
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
| // ==UserScript== | |
| // @name Fix annoying Gmail red bubble | |
| // @match https://mail.google.com/* | |
| // @version 1 | |
| // @grant none | |
| // ==/UserScript== | |
| document.querySelector('.W9 > span:nth-child(1)').remove() |
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
| // Fuente: https://cincodias.elpais.com/herramientas/calculadora-irpf/ | |
| var datos = { | |
| // (*) ESTATAL | |
| 'E':[ | |
| [0, 12450, 9.5], | |
| [12450, 20200, 12], | |
| [20200, 35200, 15], | |
| [35200, 60000, 18.5], | |
| [60000, 999999999999, 22.5], |
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
| unit Unit1; | |
| interface | |
| uses | |
| Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, | |
| Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.ExtCtrls, | |
| System.ImageList, Vcl.ImgList, Vcl.Imaging.pngimage; | |
| type |
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
| def add(lst, idx): | |
| lst[lst[3 + idx]] = lst[lst[1 + idx]] + lst[lst[2 + idx]] | |
| return -1 | |
| def multiply(lst, idx): | |
| lst[lst[3 + idx]] = lst[lst[1 + idx]] * lst[lst[2 + idx]] | |
| return -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
| def parse(val, starting_point): | |
| int_value = int(val[1:]) | |
| command = val[0] | |
| gen_points = [] | |
| for v in range(1, int_value + 1): | |
| if command == 'R': | |
| new_point = (starting_point[0] + 1, starting_point[1]) | |
| elif command == 'L': |
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
| def fuel_req(mass): | |
| fuel = (mass // 3) - 2 | |
| if fuel <= 0: | |
| return 0 | |
| else: | |
| return fuel + fuel_req(fuel) | |
| total = 0 | |
| with open('/Users/joaoqalves/Desktop/puzzle.txt', 'r') as puzzle: | |
| for line in puzzle.readlines(): |
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
| ~/j/uber-cities master npm install INT(-2) ↵ jeffrey 21:25:07 | |
| > libxmljs@0.19.0 install /Users/joaoqalves/j/uber-cities/node_modules/libxmljs | |
| > node-pre-gyp install --fallback-to-build --loglevel http | |
| node-pre-gyp http GET https://github.com/libxmljs/libxmljs/releases/download/v0.19.0/node-v67-darwin-x64.tar.gz | |
| node-pre-gyp http 404 https://github.com/libxmljs/libxmljs/releases/download/v0.19.0/node-v67-darwin-x64.tar.gz | |
| node-pre-gyp ERR! Tried to download(404): https://github.com/libxmljs/libxmljs/releases/download/v0.19.0/node-v67-darwin-x64.tar.gz | |
| node-pre-gyp ERR! Pre-built binaries not found for libxmljs@0.19.0 and node@11.2.0 (node-v67 ABI, unknown) (falling back to source compile with node-gyp) | |
| node-pre-gyp http 404 status code downloading tarball https://github.com/libxmljs/libxmljs/releases/download/v0.19.0/node-v67-darwin-x64.tar.gz |
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 javax.sql.DataSource; | |
| import org.springframework.batch.core.configuration.annotation.DefaultBatchConfigurer; | |
| public class InMemoryBatchConfigurer extends DefaultBatchConfigurer { | |
| public void setDataSource(DataSource dataSource) { | |
| // This is intentionally left blank | |
| } | |
| } |
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
| 0499012070ecc4497830b7608b3f3c56f7a197cb532000309f9a1fdda91218dca6609ec7b6d4fe4fd5530e4656f7b2128afcd4f22cf0086afcb7a5826a79443edf |
NewerOlder