This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'mina/bundler' | |
| require 'mina/rails' | |
| require 'mina/git' | |
| require 'mina/rvm' # for rvm support. (http://rvm.io) | |
| set :domain, 'esdb.cn' | |
| set :identity_file, '/User/somebody/.ssh/somebody.pem' | |
| set :deploy_to, '/home/ubuntu/apps/xxx.com' | |
| set :repository, 'ssh://git@bitbucket.org/somebody/xxx.com.git' | |
| set :branch, 'master' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'bundler/capistrano' | |
| require 'capistrano_colors' | |
| load 'deploy/assets' | |
| # ssh forwarding and shell | |
| set :default_run_options, { :pty => true } | |
| set :ssh_options, { :forward_agent => true } | |
| set :scm_verbose, true | |
| set :scm, :git |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| after_save :destroy_original | |
| private | |
| def destroy_original | |
| File.unlink(self.photo.path) | |
| end | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| " original: http://github.com/Rip-Rip/clang_complete | |
| " File: clang_complete.vim | |
| " Author: Xavier Deguillard <deguilx@gmail.com> | |
| " Modified by: eagletmt <eagletmt@gmail.com> | |
| " | |
| " Description: Use of clang to complete in C/C++. | |
| " | |
| " Configuration: Each project can have a .clang_complete at his root, | |
| " containing the compiler options. This is useful if |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # A xterm-256color based TERMINFO that adds the escape sequences for italic. | |
| # | |
| # Install: | |
| # | |
| # tic xterm-256color-italic.terminfo | |
| # | |
| # Usage: | |
| # | |
| # export TERM=xterm-256color-italic | |
| # |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'xcodeproj' | |
| project_path = "your_project_path"; | |
| # Create project object | |
| project = Xcodeproj::Project.new(project_path); | |
| lib_path = "your_lib_path"; | |
| # Add the lib file as a reference | |
| libRef = project['Frameworks'].new_file(lib_path); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "app/models/*.rb": { | |
| "command": "model", | |
| "affinity": "model", | |
| "alternate": ["unit/models/%s_spec.rb", "spec/models/%s_spec.rb"], | |
| "related": "db/schema.rb#%p", | |
| "template": "class %S\nend" | |
| }, | |
| "spec/factories/*_factory.rb": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| import ycm_core | |
| flags = [ | |
| '-resource-dir', | |
| '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/6.0', | |
| '-isysroot', | |
| '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk', | |
| '-I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include', | |
| '-F/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/System/Library/Frameworks', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| # | |
| # Copyright (C) 2014 Google Inc. | |
| # | |
| # This file is part of YouCompleteMe. | |
| # | |
| # YouCompleteMe is free software: you can redistribute it and/or modify | |
| # it under the terms of the GNU General Public License as published by | |
| # the Free Software Foundation, either version 3 of the License, or | |
| # (at your option) any later version. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| #ID='A16FF353-8441-459E-A50C-B071F53F51B7' # Xcode 6.2 | |
| ID='992275C1-432A-4CF7-B659-D84ED6D42D3F' # Xcode 6.3 | |
| PLIST_BUDDY=/usr/libexec/PlistBuddy | |
| function add_compatibility() { | |
| "$PLIST_BUDDY" -c "Add DVTPlugInCompatibilityUUIDs:10 string $2" \ | |
| "$1/Contents/Info.plist" |