Skip to content

Instantly share code, notes, and snippets.

View sachaarbonel's full-sized avatar
👨‍💻
Uncovering bugs

Sacha Arbonel sachaarbonel

👨‍💻
Uncovering bugs
View GitHub Profile
@sachaarbonel
sachaarbonel / price2.md
Created December 3, 2019 09:59 — forked from GerardLutterop/price2.md
Cost table API, total cost
Activity Amount of work
Research 3-6 days
Design url's, database, security 10-15 days
Build a prototype 5-8 days
Minimum viable product 5-10 days
Full product 10-20 days
Monitoring and alerting 3-5 days
Documentation (somebody will use your API!) 1-2 days
Selecting hosting, deployment 5-8 days
@sachaarbonel
sachaarbonel / costs comparison.md
Created December 3, 2019 09:56 — forked from GerardLutterop/costs comparison.md
Cost comparison high level traditional and yourapi
Scenario One time traditional Monthly traditional One time yourapi Monthly yourapi
1 dev, 5M records, 100M API calls/mo $15k-$25k $650-$1,350 $2k $450
2 dev, 10M records, 200M API calls/mo $20k-$30k $1,000-$2,000 $3k $850
@sachaarbonel
sachaarbonel / csv2sqlite.py
Created October 25, 2019 23:14 — forked from Perlence/csv2sqlite.py
Convert CSV file to SQLite table
#!/usr/bin/python
import re
import csv
import sqlite3
from contextlib import closing
TYPES = [
('INTEGER', re.compile('^[-+]?(\d+,)*\d+$')),
('REAL', re.compile('^[-+]?((\d+,)*\d+)?\.?[0-9]+([eE][-+]?[0-9]+)?$')),
@sachaarbonel
sachaarbonel / KUtils.h
Created October 11, 2019 22:15 — forked from ishaq/KUtils.h
This Xcode build phase script automatically sets the version and short version string of an application bundle based on information from the containing Git repository. To Use it, you 1) add the contents of `xcode-git-version.sh` to a "Run Script" build phase for your application target. 2) add a new value to your info plist called `FullVersion` …
#import <Foundation/Foundation.h>
@interface KUtils : NSObject
+ (NSString *)getVersionInfo;
@end
@sachaarbonel
sachaarbonel / page_turn.dart
Created September 16, 2019 15:39 — forked from slightfoot/page_turn.dart
Page Turn Effect - By Simon Lightfoot. Replicating this behaviour. https://www.youtube.com/watch?v=JqvtZwIJMLo
// MIT License
//
// Copyright (c) 2019 Simon Lightfoot
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
@sachaarbonel
sachaarbonel / chart.dart
Created September 10, 2019 11:32 — forked from jt70/chart.dart
flutter chart
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
import 'package:intl/intl.dart' hide TextDirection;
void main() {
runApp(new ChartDemo());
}
class ChartDemo extends StatelessWidget {
@override
@sachaarbonel
sachaarbonel / .gitignore
Created July 14, 2019 14:41 — forked from rofrol/.gitignore
Rust + Rocket + rust-postgres
target
@sachaarbonel
sachaarbonel / ImportAppleReviews.cs
Created June 12, 2019 10:57 — forked from MNF/ImportAppleReviews.cs
Import Apple Reviews
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Diagnostics;
using System.Diagnostics.Contracts;
using System.Globalization;
using System.Linq;
using System.Linq.Expressions;
using System.Threading.Tasks;
@sachaarbonel
sachaarbonel / macapp.go
Created June 9, 2019 21:57 — forked from mholt/macapp.go
Distribute your Go program (or any single binary) as a native macOS application
// Package main is a sample macOS-app-bundling program to demonstrate how to
// automate the process described in this tutorial:
//
// https://medium.com/@mattholt/packaging-a-go-application-for-macos-f7084b00f6b5
//
// Bundling the .app is the first thing it does, and creating the DMG is the
// second. Making the DMG is optional, and is only done if you provide
// the template DMG file, which you have to create beforehand.
//
// Example use:
@sachaarbonel
sachaarbonel / main.dart
Created June 8, 2019 13:50 — forked from collinjackson/main.dart
PageView example with dots indicator
// Copyright 2017, the Flutter project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'dart:math';
import 'package:flutter/material.dart';
void main() {
runApp(new MyApp());
}