This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sub InsertBarCode() | |
' Delete all inserted pictures, this will help us to delete BarCodes before creating new one. | |
ActiveSheet.Pictures.Delete | |
' Your data, can be whatever such as color, style number etc. | |
Data = Cells(2, 1) | |
FilePath = "https://barcode.tec-it.com/barcode.ashx?data=" & Data | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
' 1) Open the developer mode | |
' 2) On the left bar, under `Microsoft Excel Objects` tab open your sheet you want to observe changes | |
' 3) Paste the code you find below | |
Private Sub Worksheet_Change(ByVal Target As Range) | |
Dim KeyCells As Range | |
' The variable KeyCells contains the cells that will | |
' run you code when they are changed. | |
Set KeyCells = Range("A1:A3") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'dart:async'; | |
import 'package:flutter/material.dart'; | |
import 'package:palette_generator/palette_generator.dart'; | |
void main() => runApp(const MyApp()); | |
// need to change | |
const String _imagePath = 'assets/images/profiles/onboarding_1.jpg'; | |
const String _appName = 'Color Picker'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void main() { | |
Person personA = Person(); | |
Person personB = Person(); | |
print(personA); | |
print(personB); | |
print(identical(personA, personB)); // if this return `true`, that mains this class is singleton. | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Colors { | |
static String black(String text) { | |
return '\x1B[30m$text\x1B[0m'; | |
} | |
static String red(String text) { | |
return '\x1B[31m$text\x1B[0m'; | |
} | |
static String green(String text) { |