Skip to content

Instantly share code, notes, and snippets.

View ogirginc's full-sized avatar

Oğulcan Girginç ogirginc

View GitHub Profile
@ogirginc
ogirginc / ember-projections.json
Created May 6, 2021 17:47 — forked from AndrewRadev/ember-projections.json
A `.projections.json` file that can be used with vim-projectionist for navigating ember.js projects
{
"app/initializers/*.js": {
"type": "initializer"
},
"app/models/*.js": {
"type": "model",
"alternate": "app/adapters/{}.js",
},
"app/adapters/*.js": {
"type": "adapter",
@ogirginc
ogirginc / html-editors.md
Created March 4, 2021 10:58 — forked from manigandham/rich-text-html-editors.md
Rich text / HTML editors and frameworks

Strictly Frameworks

Abstracted Editors

These use separate document structures instead of HTML, some are more modular libraries than full editors

  • ProseMirror - http://prosemirror.net - supports collaborative editing, offers similar options to Mobiledoc for data structure
module GivenWhenThen
module ClassMethods
def def_Given(name, *args, &block)
_gwt_define(:Given, name, *args, &block)
end
def def_When(name, *args, &block)
_gwt_define(:When, name, *args, &block)
end
# frozen_string_literal: true
require "bundler/inline"
gemfile(true) do
source "https://rubygems.org"
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
# Activate the gem you are reporting the issue against.
@ogirginc
ogirginc / rspec-uncommitted.sh
Created April 25, 2019 10:33 — forked from rwjblue/rspec-uncommitted.sh
Run rspec only on uncommited files. No more accidentally pushing a :focus tag to master!
rspec `git ls-files --modified --others spec`
@ogirginc
ogirginc / blog.md
Last active August 4, 2018 14:34 — forked from citizen428/blog.md

I originally wrote this article for Codementor in October 2014. It should have something for everyone, from fairly new git users to experienced developers.

1. Discard local file modifications

Sometimes the best way to get a feel for a problem is diving in and playing around with the code. Unfortunately, the changes made in the process sometimes turn out to be less than optimal, in which case reverting the file to its original state can be the fastest and easiest solution:

git checkout -- Gemfile # reset specified path 
git checkout -- lib bin # also works with multiple arguments
@ogirginc
ogirginc / responsive-github-com.css
Created August 26, 2016 15:08 — forked from attitude/responsive-github-com.css
Responsive github.com CSS. Use e.g Control Freak Chrome extension to inject this CSS.
.wrapper .header,
.site-footer {
min-width: auto;
padding: 10px;
}
body .container {
max-width: 980px;
width: auto;
}