Skip to content

Instantly share code, notes, and snippets.

View Chinmay-KB's full-sized avatar
🫂
Full samppot needed

Chinmay Kabi Chinmay-KB

🫂
Full samppot needed
View GitHub Profile
#!/usr/bin/env python
import sys, os, time
import tweepy
keys = dict(
consumer_key='_YOUR_CONSUMER_KEY',
consumer_secret='_YOUR_SECRET_KEY',
access_token='_YOUR_ACCESS_TOKEN',
access_token_secret='_YOUR_ACCESS_TOKEN_SECRET'
)
@Chinmay-KB
Chinmay-KB / fcm_push.dart
Created June 14, 2021 09:55
Send a FCM data notification from the device itself.
import 'dart:convert';
import 'package:flutter_call_ui/creds.dart'; // Store the server key here
import 'package:http/http.dart' as http;
class FcmPush {
static Future<bool> postRequest() async {
// todo - fix baseUrl
var url = 'https://fcm.googleapis.com/fcm/send';
var body = json.encode({
"to": "/topics/flutter_call_ui",
import 'dart:async';
import 'dart:math';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
final Color darkBlue = Color.fromARGB(255, 18, 32, 47);
void main() {
runApp(MaterialApp(home: DemoClass()));
}
@Chinmay-KB
Chinmay-KB / main.dart
Created August 29, 2021 17:27
Easiest way IG
import 'package:flutter/material.dart';
final Color darkBlue = Color.fromARGB(255, 18, 32, 47);
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
@Chinmay-KB
Chinmay-KB / no_difference.dart
Last active October 30, 2021 08:51
Finding difference
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
@override
@Chinmay-KB
Chinmay-KB / text_scale_issue.dart
Last active March 28, 2023 12:26
Gist demonstrating text shadow scaling issue
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,
@Chinmay-KB
Chinmay-KB / main.dart
Last active January 19, 2024 04:46
Smooth timer animation
import 'dart:async';
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override