Skip to content

Instantly share code, notes, and snippets.

@adham90
adham90 / spacemacs-keybindings
Last active July 25, 2024 23:55
spacemacs keybindings that i need to learn
SPC s c remove highlight
**** Files manipulations key bindings
Files manipulation commands (start with ~f~):
| Key Binding | Description |
|-------------+----------------------------------------------------------------|
| ~SPC f c~ | copy current file to a different location |
| ~SPC f C d~ | convert file from unix to dos encoding |
| ~SPC f C u~ | convert file from dos to unix encoding |
@timharding
timharding / circle_ci_to_engine_yard_deployment.md
Last active December 14, 2016 12:54
CircleCI to Engine Yard Continuous Deployment

Configuring CircleCI to deploy to Engine Yard

Preamble

This is a brief description of how to get CircleCI builds deployed to an Engine Yard hosted staging environment automatically.

We're essentially asking CircleCI to execute commands on the Engine Yard gem to ask EY to deploy a Rails app.

CircleCI needs an SSH key and an API token to talk to Engine Yard, at that point you can execute the deploy command on the gem when the build succeeds.

@aloysius-lim
aloysius-lim / app.js
Last active December 11, 2023 06:51
Ember.js CRUD with Validation (ember-easyForm, ember-validations and Bootstrap)
window.App = Ember.Application.create();
App.ApplicationAdapter = DS.FixtureAdapter.extend({
namespace: 'ember-crud'
});
Ember.EasyForm.Config.registerWrapper('bootstrap', {
formClass: '',
fieldErrorClass: 'has-error',
inputClass: 'form-group',
@paneq
paneq / extend.rb
Created August 6, 2012 10:15
Prevent including module if target already has some of its instance methods
module A
extend SelfishModule
def abc; end
end
module B
extend SelfishModule
def bcd; end
end