Skip to content

Instantly share code, notes, and snippets.

View runnez's full-sized avatar
🎯
Focusing

AB runnez

🎯
Focusing
View GitHub Profile
@runnez
runnez / gist:08211e50cc6df400075c
Created January 22, 2015 12:55
safe font family
$ArialBlack: "Arial Black", "Helvetica CY", "Nimbus Sans L" sans-serif;
$Arial: Arial, "Helvetica CY", "Nimbus Sans L", sans-serif;
$Comic: "Comic Sans MS", "Monaco CY", cursive;
$CourierNew: "Courier New", "Nimbus Mono L", monospace;
$Georgia: Georgia, "Century Schoolbook L", Serif;
$Impact: Impact, "Charcoal CY", sans-serif;
$LucidaConsole: "Lucida Console", Monaco, monospace;
$LucidaSansUnicode: "Lucida Sans Unicode", "Lucida Grande", sans-serif;
$PalatinoLinotype: "Palatino Linotype", "Book Antiqua", Palatino, serif;
$Tahoma: Tahoma, "Geneva CY", sans-serif;
@runnez
runnez / make-git-use-sublime.markdown
Created June 11, 2016 11:26 — forked from geekmanager/make-git-use-sublime.markdown
Making git use Sublime Text for rebase etc

Making git use Sublime Text

First up, let's make Sublime Text 2 available from the command line in terminal, by creating a link to subl which is the launcher from terminal:

ln -s /Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl /usr/local/bin/sublime

(added bonus of this approach is when you upgrade to ST3 or change text editor, you can just redirect the symlink).

If there's any chance that bash doesn't check usr/local/bin then use [Launch Sublime Text 2 from Mac OSX Terminal] for more detailed instructions on how to make this happen.

{
"verbose": true,
"remove-empty-rulesets": true,
"always-semicolon": true,
"color-case": "lower",
"block-indent": " ",
"color-shorthand": true,
"element-case": "lower",
"eof-newline": false,
"leading-zero": false,
alias gc='git commit'
alias gd='git diff'
alias gs='git status'
alias gph='git push origin HEAD'
alias gprd='git pull --rebase origin develop'
alias ga='git add -A'
alias gps='git push origin HEAD:staging-sv -f'
alias gsq='git rebase -i origin/develop'
alias bes='bundle exec rails s'
alias bec='bundle exec rails c'
@runnez
runnez / progress-bar.html
Last active October 26, 2017 08:57
ico progress bar
<style>
.progress-widget {
margin: 40px auto 46px;
padding: 21px 20px;
max-width: 940px;
border: 1px solid rgba(255,255,255,0.3);
border-radius: 8px;
font-family: Rotonda, Arial;
-webkit-font-smoothing: antialiased;
text-align: center;
import React from 'react';
export default class DragHoverZone extends React.Component {
handleDragOver(e) {
e.preventDefault();
}
handleDragEnter = (e) => {
console.log(e);
/*
Change from `box-sizing: content-box` so that `width`
is not affected by `padding` or `border`
*/
*,
*::before,
*::after {
box-sizing: border-box;
}
class Scene {
constructor(initialEntries) {
this.store = new RootStore();
this.wrapper = this.render(initialEntries)
}
run = async (cb) => {
return new Promise((resolve) => {
setImmediate(() => {
this.wrapper.update();
import React from "react";
import { observer } from 'mobx-react';
import Dropzone from 'react-dropzone';
import HoverDragZone from 'components/HoverDragZone';
import Modal from 'components/Modal';
import LoadIndicator from 'components/LoadIndicator';
import TextareaAutosize from 'react-autosize-textarea';
import lazy from 'hocs/lazy';
import { makeClassName } from 'utils';
import "./style.scss";
<template>
<div class="Comments">
<CommentList
:comments="commentTree"
/>
<Container class="Comments-adContainer">
<AdBlock />
</Container>