organization

Install Bower components into two different directories?

橙三吉。 提交于 2019-12-02 15:52:01
When using CSS and JS components, is it possible, or even, does it make sense to install them to different directories? . |-- app |-- scripts |-- components # js components go here |-- backbone-amd |-- etc |-- styles |-- modules |-- partials |-- components # sass components go here |-- normalize.scss |-- etc What's the most efficient way to structure a project organized as such? Is there a good Grunt task to accomplish the goal of integrating bower installed sass components for a development environment? Bower needs to keep track of every component you install. That would be very hard if they

Large backbone.js web app organization

六月ゝ 毕业季﹏ 提交于 2019-12-02 13:51:06
I'm currently working on a large web app built on backbone.js and have been having a lot of issues with organization, "zombies," etc. so I've decided to do a major refactor of code. I've already written a bunch of helper functions for dealing with the "zombies"; however, I'd like to start from the very beginning and create a nice structure/organization to the code. I haven't found many great tutorials/examples on large-scale backbone.js organization so I've sort of started from scratch and would like to see if I can get some opinions on where I've begun. I've obviously set up my code within a

Organizing code files/XML files for Android SDK

核能气质少年 提交于 2019-12-01 05:04:33
Can someone provide some strategies as to organizing my project so that it is clean? Say I have a bunch of activities; is it good to place them all into a separate package, while putting other classes (such as custom Adapters) in another package to separate "logic" better? Also, when creating XML files for layouts, how would I separate the layout XML files logically if I have some layouts that are for certain activities and other XML layout files for custom "rows" (to use with an Adapter) I don't want to just throw them all into res/layout -- it would become such a huge hassle when the project

Combine and run multiple R scripts from another script

吃可爱长大的小学妹 提交于 2019-11-30 06:43:16
Essentially, I have constructed a sizable predictive model in R with about 10~15 separate script files for collecting, sorting, analyzing and presenting my data. Rather than just put everything into one gigantic script file, I would like to maintain some level of modularity and run each piece from a control script, or some kind of comparable control mechanism, as I've done in matlab before. Is this possible in R? I have read this thread as well as its related threads, but couldn't find this exact answer. Organizing R Source Code I think you're simply looking for the source function. See

What's a good way to organize a large collection of personal scripts using git?

蓝咒 提交于 2019-11-30 05:28:12
I have a large collection of my personal scripts that I would like to start versioning using Git. I've previously organized my code as follows: ~/code/python/projects/ (for large stuff, each project contained in an individual folder) ~/code/python/scripts/ (single file scripts all contained in this directory) ~/code/python/sandbox/ (my testing area) ~/code/python/docs/ (downloaded documentation) ~/code/java/... (as above) Now i'm going to start versioning my code using git, so that I can have history and backup all my code to a remote server. I know if I were using SVN I would just keep my

Folder and file organization for Python development

☆樱花仙子☆ 提交于 2019-11-30 05:11:38
What is the best way to organize code that belongs to the same project in a Python development environment? What are the do and donts of Python project organization? Do you separate each class in a file? Project A Classes "subsystem1" class1 class2 subsystem1Module "subsystem2" "utils" "etc" Tests Whatever etc? Any suggestions? Oh, and please describe what are the (possible) problems of each type of organization. What are considered best practices for organizing Python code? Some suggestions are at http://jcalderone.livejournal.com/39794.html and http://infinitemonkeycorps.net/docs/pph/ There

guidelines for where to put classes in Rails apps that don't fit anywhere

廉价感情. 提交于 2019-11-29 22:08:35
I'm wondering if there are any best practices about where to put non-standard Ruby files in Rails apps, those that don't fit in any of the default directories ( controllers / models etc.). I'm talking about classes that are used by controllers/models etc., but are not subclasses of any of the Rails base classes. Classes that include functionality extracted from models to make them less fat. Some of them kind of look like models but aren't AR models, some of them look more like "services", some are something in between or something else. A few random examples: "strategy" classes that handle

How can I open quickly a file in emacs?

做~自己de王妃 提交于 2019-11-29 12:50:02
I have a very complex and dense structure of folders and files. I would like to open a file which is very far away from my home quickly in emacs. C-x C-f is not quick enough because I have to write the path which could be very long (example : /very/long/and/boring/path/which/make/me/use/tab/for/autocompletion/too/much/and/ruins/my/hands/with/repetitive/strain/injuries/my_file_finally.tex ) So, is it another way, quicker, (than C-x C-f ) to open such file and, if not, is there a way to create shortcuts for the most used files ? P-S : I don't want to move files (long paths means to me clean and

Combine and run multiple R scripts from another script

て烟熏妆下的殇ゞ 提交于 2019-11-29 06:31:37
问题 Essentially, I have constructed a sizable predictive model in R with about 10~15 separate script files for collecting, sorting, analyzing and presenting my data. Rather than just put everything into one gigantic script file, I would like to maintain some level of modularity and run each piece from a control script, or some kind of comparable control mechanism, as I've done in matlab before. Is this possible in R? I have read this thread as well as its related threads, but couldn't find this

What do you use the svn tags directory for anyways?

こ雲淡風輕ζ 提交于 2019-11-29 06:11:14
Ok so we all know the standard SVN set-up of trunk\ branches\ tags\ And I realize that the recommendation is that tags should have "special" commits in it. I've never really used the tags directory however and I don't see why I ever would. My understanding is that tags\ would contain things like "Version1Release\, Version2Release\, ThatTimeWeUpgradedEverthing\" etc. But here's the thing, if you are going in and need to make a change to the Version1Release then it should be a branch, and if tags are supposed to be never-changing then whats the point of making a copy in source-control anyways?