Skip to content

Instantly share code, notes, and snippets.

View enzobonggio's full-sized avatar

Enzo Bonggio enzobonggio

View GitHub Profile
@enzobonggio
enzobonggio / Python-Challenge.markdown
Created November 5, 2014 14:06
A Pen by enzo bonggio.
@SpringBootApplication
@RestController
public class Application {
public static void main(String[] args) {
SpringApplication.run(Application.class, args);
}
@GetMapping("/something")
int strSub(char *cadena,char *subcadena)
{
int i=0, ii, R=0;
while(cadena[i]!='\0'&& R==0)
{
if (cadena[i]==subcadena[0])
{
ii=0;
int I=i;
cassandra.default {
## list the contact points here
contact-points = ["127.0.0.1"]
## override Lagom’s ServiceLocator-based ConfigSessionProvider
session-provider = akka.persistence.cassandra.ConfigSessionProvider
}
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(
<pool>
<min-pool-size>10</min-pool-size>
<max-pool-size>20</max-pool-size>
<prefill>true</prefill>
</pool>
import 'package:flutter/material.dart';
import 'package:flutter_swiper/flutter_swiper.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
buy_date sell_date start finish price_per_dollar profit
14/09/20 16/09/20 6401.00 6895.80 125.31 494.80
15/09/20 17/09/20 6391.00 6474.60 133.26 83.60
16/09/20 18/09/20 6235.00 6284.60 132.94 49.60
17/09/20 21/09/20 6120.00 6358.50 129.94 238.50
18/09/20 21/09/20 5925.00 6358.50 125.80 433.50
21/09/20 23/09/20 6110.00 6309.21 134.61 199.21
22/09/20 24/09/20 6041.00 6563.55 129.77 522.55
23/09/20 25/09/20 6100.00 6394.00 132.61 294.00
24/09/20 28/09/20 6270.00 6282.80 138.72 12.80
public class Contratista extends Empleado {
double valorHora;
public Contratista(String nombre, String profesion, int experiencia,double valorHora) {
super(nombre, profesion, experiencia);
this.valorHora = valorHora;
}
@Override
public String toString(){
public class BraceChecker {
public static void main(String[] args) {
testPalabra("()", true);
testPalabra("(()", false);
testPalabra("([{()}])", true);
testPalabra("([[{{}}])", false);
testPalabra(")", false);
testPalabra("(", false);
}