Skip to content

Instantly share code, notes, and snippets.

View ccheptea's full-sized avatar
🌴
On vacation

Constantin Cheptea ccheptea

🌴
On vacation
View GitHub Profile
@ccheptea
ccheptea / _logging.swift
Last active July 20, 2021 11:24
Example of better printing in Swift/XCode
//
// _logging.swift
//
// Created by Constantin Cheptea on 21/05/2020.
//
import Foundation
fileprivate let infoMarker = "🦋"
fileprivate let debugMarker = "🦎"
fileprivate let warningMarker = "⚠️"
{
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"version": 1,
"newProjectRoot": "projects",
"projects": {
"frontend": {
"projectType": "application",
"schematics": {},
"root": "frontend",
"sourceRoot": "frontend/src",
@ccheptea
ccheptea / reduce_min.js
Created October 4, 2019 15:47
Example of how to use Array.reduce() to find the minimum integer in an array.
let min = [4,2,1,5,9].reduce((min, el) => Math.min(min, el))