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
// 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 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 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 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 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 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 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 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 |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
from functools import partial | |
def curried(n): | |
def curry(fn): | |
def _inner(*args): | |
if len(args) < n: |
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
I may be a bit outdated about GCP but if I am I guess you’ll correct me :) I’m no infrastructure expert though. My knowledge comes from a small comparison that we did in my previous company [biased ‘cause we had a AWS certified guy :)]: | |
Feature-wise, AWS has a fine-grained user management that may be important for large companies. Same for network topologies [again, big companies]. More flexibility when choosing an instance in AWS (~30 vs ~20 instance types). AWS is more powerful when it comes to handle hybrid cloud solutions. AWS' ElastiCache has no equivalent in GCP, I think. RDS is years ahead of Google SQL engine. | |
About tooling: a lot of open-source _CLI_s and open-source tools that leverage AWS. A certification program, etc etc… all of this increases AWS value for a client. And that’s why they can charge more and that’s why comparing only prices is not fair. Even comparing services would be “risky” [from a business perspective], due to the stability and proven success of AWS over the last 10 years. I |
NewerOlder