Skip to content

Instantly share code, notes, and snippets.

View Dviejopomata's full-sized avatar
🏠
Working from home

Dviejo Dviejopomata

🏠
Working from home
  • Alicante, Spain
View GitHub Profile
@Dviejopomata
Dviejopomata / file.html
Created February 22, 2020 15:19
Centrar caja en pantalla
<div class="d-flex align-items-center justify-content-center vh-100">
<div
class="rounded shadow-lg bg-white"
style="width: 300px; height: 300px;"
></div>
</div>
// Copyright (c) 2019, the Dart 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 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
import java.sql.*;
class SqlEjemplo {
public static void main(String[] args) throws Exception {
System.out.println("Hello world!");
// instalar la libreria
// https://mvnrepository.com/artifact/org.postgresql/postgresql/42.2.9
String user = "vxgdibal";
String password = "jGBKv3F7IVEaUzA6ajoWY8sXQWyLD9z9";
String url = "jdbc:postgresql://manny.db.elephantsql.com:5432/vxgdibal";
@Dviejopomata
Dviejopomata / 01_03_img.ipynb
Created January 22, 2020 11:11
01_03_IMG.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
from PIL import Image
import numpy as np
width = 200
height = 200
im = Image.new('RGB', (width, height), color=(255,255,255))
tabla_pixels = im.load()
for x in range(0, width):
for y in range(0, height):
r = np.random.randint(0, 256)
g = np.random.randint(0, 256)
@Dviejopomata
Dviejopomata / main.dart
Created January 21, 2020 22:43
Hola mun
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
debugShowCheckedModeBanner: false,
@Dviejopomata
Dviejopomata / index.js
Last active January 19, 2020 20:02
Teachable en español
var translations = [
{
"key": "admin",
"current": "Admin"
},
{
"key": "sign_in",
"current": "Acceso"
},
{
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
debugShowCheckedModeBanner: false,
// Copyright (c) 2019, the Dart 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 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
import 'package:flutter/material.dart';
final Color darkBlue = Color.fromARGB(255, 18, 32, 47);
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override