Skip to content

Instantly share code, notes, and snippets.

View jorwan's full-sized avatar

Jorge Wander Santana Ureña jorwan

View GitHub Profile
@jorwan
jorwan / SVN Command Line.md
Last active March 20, 2019 14:31
SVN Command Line

Show file changes in a particular revision

Show all modified files (-v) Their changes (--diff) In a particular revision (-r)

svn log -v --diff -r revision-number[:until-revision-number]  http://x.x.x.x/path/to/svn/project/branch-name/ |more

List branches

List all branches with authors and date information

@jorwan
jorwan / Xamarin Mac Apps Notes.md
Last active June 28, 2019 20:18
Xamarin Mac Apps Notes

Setting window bar title background color

  // Set window bar title background to transparent
  base.Window.TitlebarAppearsTransparent = true;

  // Set window background color to 5A5C5C
  base.Window.BackgroundColor = NSColor.FromRgb(88 / 255f, 86 / 255f, 86 / 255f);
@jorwan
jorwan / python-notes.md
Last active July 23, 2019 15:31
Python Notes
@jorwan
jorwan / gist:3af1a68636fd7c3da60240a0d3ab65a7
Created September 5, 2019 14:47 — forked from digitaljhelms/gist:4287848
Git/GitHub branching standards & conventions

Branching

Quick Legend

Description, Instructions, Notes
Instance Branch
@jorwan
jorwan / PageViewWithPagination.dart
Last active February 27, 2023 00:24
Flutter - Change between page with bottom navigation bar
/*
* Author: Jorge Wander Santana Urena
* Goal: Screen with page view & bottom pagination to change current page
**/
// Import material package to use UI
import 'package:flutter/material.dart';
main() => runApp(MyApp());
@jorwan
jorwan / stepper_wIdget.dart
Last active August 27, 2020 15:50
UI Stepper Widget
/*
* Developer: Jorge Wander Santana Urena
* Designer: David Rivera
*/
import 'package:flutter/material.dart';
main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
/*
Author: Jorge Wander Santana Urena
Goal: Paint a Tree View of Checkbox List
Source: https://gist.github.com/jorwan/abcf91068b7a910ac3388b399b1bb71f
*/
import 'package:flutter/material.dart';
main() {
final data = {
@jorwan
jorwan / remove_nulls.dart
Last active November 8, 2020 23:54
Remove property with null values and null values from list
/*
* Goal: Remove property with null values and null values from list
* Author: Jorge Wander Santana Urena
* Source: https://gist.github.com/jorwan/52902870f633da8959a39353e96fac25
**/
final data =
{
"name": "Carolina Ratliff",
"company": null,
@jorwan
jorwan / time_picker_widget.dart
Last active December 24, 2020 16:20
DEMO for custom time picker using time_picker_widget
import 'package:flutter/material.dart';
import 'dart:async';
import 'dart:math' as math;
import 'package:flutter/rendering.dart';
import 'package:flutter/services.dart';
import 'package:flutter/widgets.dart';
void main() {
@jorwan
jorwan / chunk_list_sample.dart
Last active May 28, 2023 15:43
Extension to chunk list
void main() => print(List.generate(10, (i) => i).chunk(3));
extension ListChunkerExtension on List {
List chunk(int chunkLength) {
if ((chunkLength ?? 0) <= 0 || (this ?? []).length == 0)
return this;
var chunks = [];
for (var i = 0; i < this.length; i += chunkLength) {
chunks.add(this.sublist(
i, i + chunkLength > this.length ? this.length : i + chunkLength));