Skip to content

Instantly share code, notes, and snippets.

View catc's full-sized avatar
🤔

catalin catc

🤔
View GitHub Profile
@catc
catc / gulpfile.js
Last active August 29, 2015 14:06
express gulpfile (scss + livereload)
// gulp modules
var gulp = require('gulp'),
sass = require('gulp-sass'),
livereload = require('gulp-livereload');
// public folder paths
var css = __dirname + '/public/stylesheets',
js = __dirname + '/public/javascripts',
fonts = __dirname + '/public/fonts',
@catc
catc / A.markdown
Last active August 29, 2015 14:07 — forked from larrybotha/A.markdown

Sublime Text Monokai Sidebar Theme

A theme for the sidebar in Sublime Text to match the workspace of the Monokai theme.

This theme only modifies the sidebar to better match the Monokai theme, without modifying any of the styling elsewhere defined by Monokai.

File location: Packages/User

For a theme that extends beyond just the sidebar, visit https://gist.github.com/umpirsky/5842174

@catc
catc / secretCode.js
Created April 10, 2015 15:23
secret code
var keysPressed = [],
keyTimer
var verifiedKeys = [74,65,80,65,78].toString()
$(window).on('keydown', function(e){
if (e.keyCode >= 65 && event.keyCode <=90){
clearTimeout(keyTimer)
keysPressed.push( e.keyCode )
keyTimer = setTimeout(verifyCode, 1500)
@catc
catc / _info.md
Last active August 29, 2015 14:20
Ember snippets

Tags

Words separate on commas. See jsbin.

Tags have color support - suffix the tag with :c where c is a color (r, b, g or y)

@catc
catc / string-formatter.js
Created March 3, 2016 13:55
A helper that exposes Ember.String methods as a template helper
import Ember from 'ember';
const { String: EmberString, Helper: { helper } } = Ember;
/**
* Exposes Ember.String functions as template helpers
*
* @method stringFormatter
* @param {String} str
* @param {String} strMethod
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
state: 'one',
actions: {
changeState: function(val){
this.set('state', val);
@catc
catc / index.html
Last active May 23, 2022 02:46
magnifier demo
<div class="magnifier-demo">
<div class="magnifier-demo__image-wrapper">
<img id="magnifier-img" src="https://static.pexels.com/photos/1188/city-landmark-lights-night.jpg">
<span class="magnifier-demo__zoomer"></span>
</div>
<div class="magnifier-demo__zoom-preview"></div>
</div>
@catc
catc / index.html
Created September 14, 2016 04:35
sorting demo
<div class="sorting-demo">
<div class="sorting-demo__wrapper">
<span class="sorting-demo__corner top-left">
<span data-name="top left" class="sorting-demo__progress"></span>
</span>
<span class="sorting-demo__corner top-right">
<span data-name="top right" class="sorting-demo__progress"></span>
</span>
<span class="sorting-demo__corner bottom-left">
<span data-name="bottom left" class="sorting-demo__progress"></span>
@catc
catc / components.num-one.js
Last active October 19, 2016 15:40
hashes and yields
import Ember from 'ember';
export default Ember.Component.extend({
_init: Ember.on('init', function(){
//console.log()
})
});

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