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
| // ---- | |
| // libsass (v0.8.6) | |
| // ---- | |
| .Component{ | |
| font-size: 1em; | |
| &-mode{ | |
| border: 1px solid red; | |
| } | |
| } |
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
| var Module = (function (){ | |
| var publicAPI = {}; | |
| var privateMethod = function () { | |
| console.log("Log from the private method"); | |
| }; | |
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
| // http://toddmotto.com/mastering-the-module-pattern/ | |
| var Module = (function () { | |
| var _privateMethod = function () { | |
| // private | |
| // by convention private methods are prefixed with an underscore to | |
| // differentiate them | |
| }; |
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
| function $(a,b){ | |
| return(b||document)['querySelector'+(b=/\:first$/,b.test(a)?'':'All')](a.replace(b,'')); | |
| } |
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
| module.exports = (function() { | |
| "use strict"; | |
| var topics = {}; | |
| return { | |
| subscribe: function (topic, listener) { | |
| // Create the topic's object if not yet created | |
| if (!topics[topic]) | |
| topics[topic] = { queue: [] } |
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
| var events = require('./helpers/pubsub'); | |
| (function() { | |
| "use strict"; | |
| var App = { | |
| // this is out top level module, the module that sets up the | |
| // namespace and secondary level modules | |
| Views: {}, | |
| Features: {}, | |
| Modules: {}, |
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
| 'use strict'; | |
| var gulp = require('gulp'), | |
| gulpLoadPlugins = require('gulp-load-plugins'), | |
| plugins = gulpLoadPlugins(), | |
| webpack = require('webpack'), | |
| ComponentPlugin = require("component-webpack-plugin"), | |
| info = require('./package.json'), | |
| webpackCompiler; |
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
| @font-face { | |
| font-family: "<%= fontName %>"; | |
| src: url('<%= fontPath %><%= fontName %>.eot'); | |
| src: url('<%= fontPath %><%= fontName %>.eot?#iefix') format('eot'), | |
| url('<%= fontPath %><%= fontName %>.woff') format('woff'), | |
| url('<%= fontPath %><%= fontName %>.ttf') format('truetype'), | |
| url('<%= fontPath %><%= fontName %>.svg#<%= fontName %>') format('svg'); | |
| } | |
| %icon { |
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
| 'use strict'; | |
| var gulp = require('gulp'), | |
| iconfont = require('gulp-iconfont'), | |
| iconfontCss = require('gulp-iconfont-css'); | |
| var config = { | |
| ICONS: { | |
| src : 'sass/app/components/icons/svg/*.svg', |
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
| var re = /[a-zA-Z]+([0-9]+)/; | |
| var result = re.exec("portsConfiguration23"); | |
| console.log(result[1]); |