First, we define a global prefix key:
(general-create-definer global-definer
:keymaps 'override
:states '(insert emacs normal hybrid motion visual operator)
:prefix "SPC"
:non-normal-prefix "S-SPC")
Read this first: http://akrl.sdf.org/gccemacs.html
For that you need to compile gcc (duh). I edited Homebrew's gcc formula:
//Get instance, guid, and file ID of file during play mode | |
//Possibly useful for getting the type or instance of a specific file in the project folder and possibly loading | |
//This script prints these details for a selected asset in project window | |
using System.Text; | |
using UnityEngine; | |
using UnityEditor; | |
class ShowAssetIds | |
{ |
Use case : Imagine we have just created a project with composer create-project awesone-project
(currently V0.2).
2 weeks later, there is a new release (V0.3). How to update your project ?
Since composer update
only updates the project dependencies, it is not what we are looking for.
Composer doesn't know about awesome-project since it's not in our composer.json.
After trying many git solutions, I've come to this :
git archive --output=changes.zip HEAD $(git diff --name-only SHA1 SHA2 --diff-filter=ACMRTUXB)
This command will check for changes between the two commits and ignore deleted files.
Integrating third party JavaScript libraries not written with Google Closure Compiler in mind continues to both be a source of error for users when going to production, and significant vigilance and effort for the the broader community (CLJSJS libraries must provide up-to-date and accurate externs).
In truth writing externs is far simpler than most users imagine. You only need externs for the parts of the library you actually intend to use from ClojureScript. However this isn't so easy to determine from Closure's own documentation. Still in the process of writing your code it's easy to miss a case. In production you will see the much dreaded error that some mangled name does not exist. Fortunately it's possible to enable some compiler flags :pretty-print true :pseudo-names true
to generate an advanced build with human readable names. However debugging missing externs means compiling your production build for each missed case. So much time wasted for such simple mistakes damages our sen
This is a draft of what will be eventually a blog post. Feedback is welcome.
It started by asking this question on StackOverflow. A good answer turned out to be Planck. This is how you solve it with Planck.
First, decide what dependencies Planck needs to load. This is easily done with boot
like this:
$ boot --dependencies org.clojars.micha/boot-cp ; load with-cp task that helps exporting minimal classpath to file
--dependencies com.andrewmcveigh/cljs-time:"0.4.0" ; load dependency you actually want to try
git status时中文文件名乱码
现象:
\344\275\240\345\245\275
执行以下命令即可:
Use CIDER's nREPL handler | |
2 files changed, 5 insertions(+), 2 deletions(-) | |
project.clj | 3 ++- | |
src/clj/myapp/core.clj | 4 +++- | |
modified project.clj | |
@@ -55,7 +55,8 @@ | |
[ring/ring-mock "0.3.0"] | |
[ring/ring-devel "1.4.0"] |