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
{
"files.exclude": {
"**/__pycache__": true
},
"editor.fontFamily": "JetBrainsMono NF",
"editor.fontLigatures": true,
"editor.fontSize": 14,
"editor.minimap.enabled": true,
"editor.rulers": [
80,
name: Title Check
on:
pull_request:
types:
- opened
- edited
jobs:
lint:
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)
//
// ContentView.swift
// AnimationTimingCurve
//
// Created by Chris Eidhof on 25.09.19.
// Copyright © 2019 Chris Eidhof. All rights reserved.
//
import SwiftUI
@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
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Mocha All",
"program": "${workspaceFolder}/node_modules/mocha/bin/_mocha",
"args": [
"--timeout",
# https://editorconfig.org/
root = true
[*]
indent_style = space
indent_size = 4
insert_final_newline = true
trim_trailing_whitespace = true
end_of_line = lf
# 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'
@cgiacomi
cgiacomi / five_minutes.yml
Created July 26, 2017 13:39 — forked from ryane/five_minutes.yml
five_minutes.yml
---
- hosts: all
vars:
UBUNTU_COMMON_ROOT_PASSWORD: 'xxxxx'
UBUNTU_COMMON_DEPLOY_PASSWORD: 'xxxxx'
UBUNTU_COMMON_LOGWATCH_EMAIL: user@example.com
ubuntu_common_deploy_user_name: deploy
ubuntu_common_deploy_public_keys:
- ~/.ssh/id_rsa.pub
#!/bin/sh
exec < /dev/tty
./.git/hooks/commit-msg.py $1