Skip to content

Instantly share code, notes, and snippets.

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

Bangon Kali bangonkali

🏠
Working from home
View GitHub Profile
export class JsonUtils {
public static getCircularReplacer(): object {
const seen = new WeakSet();
return (key: string, value: object): any => {
if (typeof value === 'object' && value !== null) {
if (seen.has(value)) {
return;
}
seen.add(value);
}
#include "SoftwareSerial.h"
SoftwareSerial swSer1;
void setup() {
// Debug serial
Serial.begin( 115200 );
// Serial connected to LIDAR sensor
// Serial.begin( 115200 );
@bangonkali
bangonkali / change_author.sh
Created November 21, 2019 18:47
This script changes the author of a certain git repository.
#!/bin/bash
# Change the GIT author
git filter-branch --env-filter '
export GIT_AUTHOR_NAME="bangonkali"
export GIT_AUTHOR_EMAIL="bangonkali@gmail.com"
' --tag-name-filter cat -- --branches --tags
Current installation options:
default host triple: x86_64-apple-darwin
default toolchain: stable
profile: default
modify PATH variable: yes
For compilers to find icu4c you may need to set:
export LDFLAGS="-L/usr/local/opt/icu4c/lib"
export CPPFLAGS="-I/usr/local/opt/icu4c/include"
For pkg-config to find icu4c you may need to set:
export PKG_CONFIG_PATH="/usr/local/opt/icu4c/lib/pkgconfig"
import 'package:json_annotation/json_annotation.dart';
import 'package:mobx/mobx.dart';
part 'elements_list_page_store.g.dart';
@JsonSerializable()
class ElementsListPageStore extends _TempElementsListPageStore {
ElementsListPageStore() : super();
factory ElementsListPageStore.fromJson(Map<String, dynamic> json) =>
{
"Ansi 7 Color" : {
"Green Component" : 0.73333334922790527,
"Blue Component" : 0.73333334922790527,
"Red Component" : 0.73333334922790527
},
"Tags" : [
],
"Ansi 12 Color" : {
@bangonkali
bangonkali / notes.txt
Created February 22, 2018 12:06
App_GlobalResources Dilemma
Thanks for help
I did:
Create folder Resources
Move all resources from App_GlobalResources to new folder
Change all file properties:
Build Action: Embedded Resource
Copy to output: Copy always
@bangonkali
bangonkali / readme.md
Created February 5, 2018 01:58
Brew Install Mac OS X High Sierra
sudo chown -R $(whoami):admin /usr/local && sudo chmod -R g+rwx /usr/local
@bangonkali
bangonkali / readme.md
Last active January 22, 2018 13:53
Creating Non-conventional Routes for Strava