Skip to content

Instantly share code, notes, and snippets.

View chenasraf's full-sized avatar
🏃‍♂️
Freelancing

Chen Asraf chenasraf

🏃‍♂️
Freelancing
View GitHub Profile
@chenasraf
chenasraf / multiline_logger.dart
Last active March 15, 2024 06:45
Logger with no character limit for Dart/Flutter, splits the line into multiple ones when it is too long
import 'package:logger/logger.dart';
class SplitConsoleOutput extends LogOutput {
/// Maximum length per line in the log. Any logs larger than this length
/// will be split into chunks and printed in sequence.
final int splitLength;
/// Set to `false` to disable splitting, or leave `null`/`true` to retain the
/// default behavior, which is to truncate the text.
///
@chenasraf
chenasraf / keycodes.js
Created January 12, 2016 18:02
All JS Key Codes (event.which) in object notation
KeyCodes = {
"BACKSPACE": 8,
"TAB": 9,
"ENTER": 13,
"SHIFT": 16,
"CTRL": 17,
"ALT": 18,
"PAUSE": 19,
"CAPS_LOCK": 20,
"ESCAPE": 27,
@chenasraf
chenasraf / .bash_colors
Last active August 29, 2015 14:11
Bash colors
#!/bin/bash
export PROMPT_COMMAND=__prompt_command
function __prompt_command() {
EXIT="$?"
PS1=""
# Colored Terminal
export CLICOLOR=1
export LSCOLORS=GxFxCxDxBxegedabagaced