This file contains 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 inbox = require('inbox'); | |
var config = require('./config.json'); | |
var imap = inbox.createConnection( | |
false, 'imap.gmail.com', { | |
secureConnection: true, | |
auth: config.mail.auth | |
} | |
); |
This file contains 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 deferred = require('deferred'); | |
var _ = require('lodash'); | |
var def = deferred(); | |
_.delay(function(){ | |
def.reject(new Error('error')); | |
//def.resolve('success'); | |
}, 1000); | |
def.promise.cb(function(result){ |
This file contains 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 async = require('async'); | |
var tasks = { | |
get: function(done){ | |
console.log('get'); | |
setTimeout(done, 1000); | |
}, | |
send: function(done){ | |
console.log('send'); | |
//setTimeout(done, 1000); |
This file contains 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-stylus@1.0.0ばん | |
var gulp = require('gulp'); | |
var stylus = require('gulp-stylus'); | |
gulp.task('stylus', function () { | |
return gulp.src('./styl/style.styl') | |
.pipe(stylus({ | |
url: { | |
//name:'url'とするとぜんぶのurl()がbase64埋め込みになる |
This file contains 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 download = require('gulp-download'); | |
var unzip = require('gulp-unzip'); | |
gulp.task('webix', function(){ | |
return download('http://webix.com/skin-builder/data/aec0da36.zip') | |
.pipe(unzip()) | |
.pipe(gulp.dest('./dist/lib/webix/codebase/')) | |
}); |
This file contains 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 newer = require('gulp-newer'); | |
var svg2png = require('gulp-svg2png'); | |
var imagemin = require('gulp-imagemin'); | |
var pngquant = require('imagemin-pngquant'); | |
var path = { | |
svg2png : { | |
src : 'svg/*.svg', | |
dest : 'img' |
This file contains 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 util = require('util'); | |
var EventEmitter = util.EventEmitter; | |
var _ = require('lodash'); | |
var io = require('socket.io-client'); | |
function Chart(socket, max_length){ | |
this.ticks = []; |
This file contains 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
// usage | |
// just | |
// `gulp nw-gyp` | |
// or type node-webkit version | |
// `gulp nw-gyp --target 0.9.2` | |
var gulp = require('gulp'); | |
var exec = require('gulp-exec'); | |
var minimist = require('minimist'); |
This file contains 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
import org.apache.commons.lang3.time.DateFormatUtils; | |
import org.apache.commons.lang3.time.DateUtils; | |
import org.jdesktop.swingx.JXDatePicker; | |
import javax.swing.*; | |
import java.awt.*; | |
import java.util.Date; | |
import java.util.TimeZone; | |
public class Calendar extends JPanel { | |
private JXDatePicker datePicker; |
This file contains 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
.invert{ | |
filter: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg"><filter id="invert"><feColorMatrix color-interpolation-filters="sRGB" in="SourceGraphic" type="matrix" values="-1,0,0,0,1,0,-1,0,0,1,0,0,-1,0,1,0,0,0,1,0"/></filter></svg>#invert'); | |
filter: invert(1); | |
-ms-filter: invert(1); | |
-webkit-filter: invert(1); | |
-webkit-backface-visibility: hidden; | |
backface-visibility: hidden; | |
position: relative; | |
overflow: hidden; | |
} |
OlderNewer