Skip to content

Instantly share code, notes, and snippets.

View cgiacomi's full-sized avatar
🎧
The music must flow...

Christian Giacomi cgiacomi

🎧
The music must flow...
View GitHub Profile
# CREDIT: https://stackoverflow.com/a/2893833/772175
# If you wish to print to both the terminal and to a log file, then I'd suggest using the logging module. You can even define a custom formatter, so logging to the file can purge the terminal codes:
import optparse
import logging
def error(string):
return '\033[31;1m' + string + '\033[0m'
# https://editorconfig.org/
root = true
[*]
indent_style = space
indent_size = 4
insert_final_newline = true
trim_trailing_whitespace = true
end_of_line = lf
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Mocha All",
"program": "${workspaceFolder}/node_modules/mocha/bin/_mocha",
"args": [
"--timeout",
@cgiacomi
cgiacomi / reflectTest.go
Created September 13, 2019 06:11
Go reflection of struct
package main
import (
"fmt"
"reflect"
"strconv"
)
type User struct {
Name string
//
// ContentView.swift
// AnimationTimingCurve
//
// Created by Chris Eidhof on 25.09.19.
// Copyright © 2019 Chris Eidhof. All rights reserved.
//
import SwiftUI
import SwiftUI
struct SampleView: View {
@State private var showOptionsMenu: Bool = false
var numbers = ["1","2","3","4","5","6","7","8"]
var body: some View {
ZStack {
List(self.numbers, id: \.self) { number in
Text(number)
name: Title Check
on:
pull_request:
types:
- opened
- edited
jobs:
lint:
{
"files.exclude": {
"**/__pycache__": true
},
"editor.fontFamily": "JetBrainsMono NF",
"editor.fontLigatures": true,
"editor.fontSize": 14,
"editor.minimap.enabled": true,
"editor.rulers": [
80,