Skip to content

Instantly share code, notes, and snippets.

View eks1985's full-sized avatar

Kirill Efimov eks1985

  • Russia, Volgograd region
View GitHub Profile
@DmitrySoshnikov
DmitrySoshnikov / classes.txt
Created May 17, 2011 18:19
Classification of classes
// by Dmitry Soshnikov <dmitry.soshnikov@gmail.com>
// MIT Style License
*Classification of classes:*
=============================================================================
| Dynamic | Static
-----------------------------------------------------------------------------
| |
| Coffee, Python, Ruby, | SmallTalk, built-in
@flarnie
flarnie / webpack.config.js
Last active January 8, 2016 05:30
Webpack configuration file for Rails setup
/**
* @see http://webpack.github.io/docs/configuration.html
* for webpack configuration options
*/
module.exports = {
// 'context' sets the directory where webpack looks for module files you list in
// your 'require' statements
context: __dirname + '/app/assets/javascripts',
// 'entry' specifies the entry point, where webpack starts reading all
@flarnie
flarnie / Webpack-Bundle-Logic-Simplified.js
Last active January 8, 2016 05:30
A simplified and annotated example of how JavaScript is loaded in the bundle by webpack.
/**
* In this simplified example,
* '_application.js' is our entry point
* and it requires 'init.js',
* which in turn requires both the 'home_view'
* and the 'current_user_model'
*/
var modules = [
// dependencies can be referenced by index