Skip to content

Instantly share code, notes, and snippets.

View bcinarli's full-sized avatar
🚀

Bilal Çınarlı bcinarli

🚀
View GitHub Profile
@bcinarli
bcinarli / google-cal-dark-theme.css
Created December 6, 2022 08:59
Dark Theme css override for Google Calendar, not-fully done, yet pretty usable
:root {
color-scheme: dark;
--primary: #bb86fc;
--primary-variant: #3700b3;
--on-primary: #000;
--secondary: #03dac5;
--secondary-variant: #d2e3fc;
--on-secondary: #000;
--on-secondary-variant: #018786;
--surface: #121212;
@bcinarli
bcinarli / Brew
Created January 3, 2020 20:04
Brew
# Install brew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# Install Chrome
brew cask install google-chrome
# Install hyper
brew cask install hyper
hyper install hyperline
hyper install an-old-hype
@bcinarli
bcinarli / clean-node-modules.js
Created May 25, 2019 12:52
Cleaning node modules, dist and build files in monorepo
const fs = require('fs');
const { rm } = require('./utils/file-actions');
const cwd = process.cwd();
const rm = (path) => {
if (fs.existsSync(path)){
exec(`rm -r ${ path }`, (err) => {
if (err) {
console.log(err);
@bcinarli
bcinarli / colors.scss
Last active January 18, 2019 09:55
Import SCSS variable to JS/JSX
// Sometimes you want to share some variables between your SCSS and JS/JSX code
// To do this, you can levarage the :export command in SCSS.
$alertInfo: #b8d3e8;
$alertWarning: #fdf9c3;
$alertSuccess: #cfc;
$alertError: #e63f3f;
// this exports the variable to be available in JS
:export {
@bcinarli
bcinarli / sampleCollection.js
Last active August 29, 2015 14:24
Backbone collection sort
var app = app || {};
(function(){
"use strict";
app.Collection = Backbone.Collection.extend({
model: app.Model,
// initial sort when collection fetched first time
comparator: "id"
});
@bcinarli
bcinarli / basicss.scss
Last active December 28, 2015 20:15 — forked from ademilter/basicss.css
/**
* 1. http://www.paulirish.com/2012/box-sizing-border-box-ftw/
* http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/
* http://fatihhayrioglu.com/css3-box-sizing-ozelligi/
*
* 2. http://aestheticallyloyal.com/public/optimize-legibility/
*
* 3. http://maxvoltar.com/archive/-webkit-font-smoothing
*
* 4. http://maximilianhoffmann.com/posts/better-font-rendering-on-osx
@bcinarli
bcinarli / _remify.scss
Created June 7, 2014 18:02
Rem to PX and PX to Rem conversions according to defined $base-font-size
/* @author Bilal Cinarli */
/** -------------------------------------------
Text Related Functions
------------------------------------------- **/
/**
* Rem to PX
*/
@function rem-to-px($font-size) {
$u: unit($font-size);
@bcinarli
bcinarli / _retina-bg.scss
Created June 7, 2014 17:59
Retina background image. Uses a $retina-suffix variables for retina & normal image files
/* @author Bilal Cinarli */
/** -------------------------------------------
Media Query Mixins
------------------------------------------- **/
/**
* Retina Image
*/
@mixin retina-image($image, $ext: 'png'){
background-image: url('#{$images}#{$image}.#{$ext}');
@bcinarli
bcinarli / _size.scss
Last active August 29, 2015 14:02
Square or desired width-height for an element
/* @author Bilal Cinarli */
/** -------------------------------------------
Size Related Mixins
------------------------------------------- **/
/**
* Square or desired width-height for an element
*/
@mixin dims($width, $height: null) {
width: $width;
@bcinarli
bcinarli / Sass-buttons.markdown
Created October 19, 2013 12:59
A Pen by Bilal Çınarlı.