- japanese-wrap
- local-server
- project-manager
- color-picker
- atom-color-highlight
- autocomplete-plus
- editorconfig
- wordcount
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 adjustColorWithOpacity({r, g, b, alpha}) { | |
| return [r,g,b].map((v) => { | |
| const _alpha = Math.round((1 - alpha)* 10) / 10; | |
| return Math.max(Math.round((v - (_alpha) * 255) / (alpha)), 0) | |
| }) | |
| } |
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
| const TextLintCore = require('textlint').TextLintCore | |
| const prh = require('textlint-rule-prh') | |
| function linter(filePath, rulePaths) { | |
| const core = new TextLintCore() | |
| core.setupRules({prh: prh}, { | |
| prh: {rulePaths, rulePaths} | |
| }) | |
| core.lintFile(filePath).then((results) => { | |
| console.log(results) | |
| }) |
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 Model(name) { | |
| this.name = name; | |
| } | |
| function Collection(models) { | |
| this.models = models || []; | |
| } | |
| Collection.prototype.showName = function() { | |
| this.models.forEach(function(model) { | |
| console.log(model.name); |
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 Model(name) { | |
| this.name = name; | |
| } | |
| function Collection(models) { | |
| this.models = models; | |
| } | |
| Collection.prototype.showName = function() { | |
| this.models.forEach(function(model) { | |
| console.log(model.name); |
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
| // open DevTools console | |
| // paste & excute this | |
| $('.conf2015s-sessionGroup').css({ display: 'flex', 'flex-direction': 'column', padding: 0, width: '240px' }); | |
| $('.conf2015s-session').css({'margin':0, height:'780px'}) | |
| $('.conf2015s-container').css('display', 'flex'); | |
| $('#session_id_26').css('flex-grow', 1); | |
| $('#session_id_27').css('flex-grow', 1); | |
| $('#session_id_24').css('flex-grow', 1); | |
| $('.conf2015s-header1').hide(); | |
| $('.conf2015s-header2').hide(); |
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
| gulp = require "gulp" | |
| cp = require "child_process" | |
| exec = cp.exec | |
| bs = require "browser-sync" | |
| reload = bs.reload | |
| editdir = "../" | |
| gulp.task "atom", (cb)-> | |
| exec "atom #{editdir}", (err, stdout, stderr) -> |
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 arr = JSON.parse($($('script')[2]).text().match(/\[.*\]/)) | |
| var leng = arr.length; | |
| for(var i=0; i < leng; i++){ | |
| conc.flip(i); | |
| var j = i+1; | |
| for(var j = i+1; j < leng; j++) { | |
| if(arr[i] === arr[j]){ | |
| conc.flip(j); | |
| break; | |
| } |
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 exec() { | |
| var panels = $('#box').find('span'); | |
| var base = panels.eq(0); | |
| panels.splice(0,1); | |
| var targets = [].filter.call(panels, function(panel) { | |
| return $(base).css('background-color') != $(panel).css('background-color'); | |
| }); | |
| if(targets.length > 1) { |
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 gulp = require('gulp'); | |
| var browserSync = require('browser-sync'); | |
| var concat = require('gulp-concat'); | |
| var reload = browserSync.reload | |
| gulp.task('browser-sync', function() { | |
| browserSync({ | |
| server: { | |
| baseDir : './src' | |
| }, |
NewerOlder