Skip to content

Instantly share code, notes, and snippets.

Avatar

Jeffrey Torres jetobe95

View GitHub Profile
@jetobe95
jetobe95 / main.dart
Created Apr 5, 2022
Test multiple change into a stateProvider
View main.dart
import 'package:flutter/material.dart';
import 'package:hooks_riverpod/hooks_riverpod.dart';
const Color darkBlue = Color.fromARGB(255, 18, 32, 47);
void main() {
runApp(ProviderScope(child: MyApp()));
}
@jetobe95
jetobe95 / main.dart
Last active Mar 28, 2022
CupertinoSegmentedControl
View main.dart
// main.dart
import 'package:flutter/cupertino.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
@jetobe95
jetobe95 / graphs.dart
Created Mar 10, 2022
Getting started with graphs
View graphs.dart
void main() {
final oVertice1 = Vertice(1);
final oVertice2 = Vertice(2);
final oVertice3 = Vertice(3);
final oVertice4 = Vertice(4);
final oVertice5 = Vertice(5);
final oVertice6 = Vertice(6);
oVertice6.add(oVertice4);
View cloudSettings
{"lastUpload":"2020-06-11T04:23:38.279Z","extensionVersion":"v3.4.3"}
@jetobe95
jetobe95 / React Native Clear Cache
Created Jan 17, 2019 — forked from jarretmoses/React Native Clear Cache
Clearing the Cache of your React Native Project
View React Native Clear Cache
RN < 0.50 - watchman watch-del-all && rm -rf $TMPDIR/react-* && rm -rf node_modules/ && npm cache clean && npm install && npm start -- --reset-cache
RN >= 0.50 - watchman watch-del-all && rm -rf $TMPDIR/react-native-packager-cache-* && rm -rf $TMPDIR/metro-bundler-cache-* && rm -rf node_modules/ && npm cache clean && npm install && npm start -- --reset-cache
npm >= 5 - watchman watch-del-all && rm -rf $TMPDIR/react-* && rm -rf node_modules/ && npm cache verify && npm install && npm start -- --reset-cache
Windows - del %appdata%\Temp\react-native-* & cd android & gradlew clean & cd .. & del node_modules/ & npm cache clean --force & npm install & npm start -- --reset-cache
@jetobe95
jetobe95 / README.md
Created Nov 2, 2017 — forked from john-guerra/README.md
GeoJson map of Colombia
View README.md

Geo Json map of Colombia

Based on the Map of Thailand by Master Krist Wongsuphasawat, a simple map of Colombia using GeoJSON and D3.js

As in Krist example:

  • Each province is color-coded by the length of its name in English.
  • Hover each province to see text effects.
  • New font is chosen randomly every time you change the province.