Skip to content

Instantly share code, notes, and snippets.

View catc's full-sized avatar
🤔

catalin catc

🤔
View GitHub Profile
@catc
catc / script.sh
Created October 4, 2020 23:33
display 8 bit ansi colors in terminal
for i in {0..255} ; do
printf "\x1b[38;5;%sm%5d\e[0m " "$i" "$i"
if (( i == 15 )) || (( i > 15 )) && (( (i-15) % 6 == 0 )); then
printf "\n";
fi
done
for i in {0..255} ; do
printf "\e[1m\x1b[38;5;%sm%10d\e[0m " "$i" "$i"
if (( i == 15 )) || (( i > 15 )) && (( (i-15) % 6 == 0 )); then
printf "\n";
@catc
catc / .block
Last active April 3, 2019 16:32
d3 map with states and countries
license: mit
@catc
catc / cloudSettings
Last active February 19, 2019 19:35
Visual Studio Code Settings Sync Gist
{"lastUpload":"2019-02-19T19:35:49.140Z","extensionVersion":"v3.2.4"}
@catc
catc / main.js
Created February 7, 2019 03:33
airbnb technical screen
console.clear()
class Model {
constructor(props = {}){
this.data = props
this.silent = {}
this.subs = {
change: {
@catc
catc / components.comp-one.js
Created December 5, 2018 15:08
New Twiddle
import Ember from 'ember';
export default Ember.Component.extend({
});
@catc
catc / docker-compose.yml
Created February 16, 2018 18:10
compose testing
version: "3.5"
services:
someWeb:
build: .
# build: .
# image: web111
# build:
# context: .
# image: web111
# image: web111:tagcat
@catc
catc / components.my-comp.js
Created November 10, 2017 21:18
deleting object key fails to update child component templates
import Ember from 'ember';
export default Ember.Component.extend({
options: Ember.A([
{name: 'aa', id: '123'},
{name: 'bb', id: '456'},
{name: 'cc', id: '678'},
]),
selected: null,
@catc
catc / SCSS.md
Created July 13, 2017 23:47 — forked from jareware/SCSS.md
Advanced SCSS, or, 16 cool things you may not have known your stylesheets could do

⇐ back to the gist-blog at jrw.fi

Advanced SCSS

Or, 16 cool things you may not have known your stylesheets could do. I'd rather have kept it to a nice round number like 10, but they just kept coming. Sorry.

I've been using SCSS/SASS for most of my styling work since 2009, and I'm a huge fan of Compass (by the great @chriseppstein). It really helped many of us through the darkest cross-browser crap. Even though browsers are increasingly playing nice with CSS, another problem has become very topical: managing the complexity in stylesheets as our in-browser apps get larger and larger. SCSS is an indispensable tool for dealing with this.

This isn't an introduction to the language by a long shot; many things probably won't make sense unless you have some SCSS under your belt already. That said, if you're not yet comfy with the basics, check out the aweso

@catc
catc / readme.md
Last active June 6, 2018 05:44
stuff for luc

Node.js + express tutorials

What I Wish I'd Known About Equity Before Joining A Unicorn

Disclaimer: This piece is written anonymously. The names of a few particular companies are mentioned, but as common examples only.

This is a short write-up on things that I wish I'd known and considered before joining a private company (aka startup, aka unicorn in some cases). I'm not trying to make the case that you should never join a private company, but the power imbalance between founder and employee is extreme, and that potential candidates would