Skip to content

Instantly share code, notes, and snippets.

View ycherniavskyi's full-sized avatar

Yurii Cherniavskyi ycherniavskyi

View GitHub Profile
@ycherniavskyi
ycherniavskyi / main.dart
Created December 28, 2019 15:25
Displaying notification badge on BottomNavigationBar's Icon
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,
const err = new Error('The message');
console.log(err.message);
// Prints: The message
@ycherniavskyi
ycherniavskyi / chiliproject2redmine.rb
Last active December 15, 2015 16:59
Migration script from ChiliProject v2.4.0 to Redmine v2.x.x for MySQL DB.
# encoding: UTF-8
# bundle exec rake db:migrate:down VERSION=20110729125454 RAILS_ENV="production"
# bundle exec rake db:migrate:down VERSION=20110519194936 RAILS_ENV="production"
# bundle exec rake db:migrate:down VERSION=20110314014400 RAILS_ENV="production"
# bundle exec rake db:migrate:down VERSION=20100804112053 RAILS_ENV="production"
# bundle exec rake db:migrate:down VERSION=20100714111654 RAILS_ENV="production"
# bundle exec rake db:migrate:down VERSION=20100714111653 RAILS_ENV="production"
# bundle exec rake db:migrate:down VERSION=20100714111652 RAILS_ENV="production" -- undefined method `collect' for nil:NilClass -> need to comment lite 53
# bundle exec rake db:migrate:down VERSION=20100714111651 RAILS_ENV="production"