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 _selectDate = $.datepicker._selectDate, | |
| selectHook = function(id, dateStr){ | |
| var target = $(id), | |
| inst = this._getInst(target[0]), | |
| result = _selectDate.call(this, id, dateStr); | |
| onAfterSelect && onAfterSelect(inst); | |
| return result; | |
| }, |
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
| using System; | |
| using System.Collections.Generic; | |
| using System.Drawing; | |
| using System.Linq; | |
| using System.Reflection; | |
| using System.Text; | |
| using System.Windows.Forms; | |
| using System.Windows.Forms.VisualStyles; | |
| namespace VisualStyleGetFontTest { |
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
| <asp:textbox id="date" runat="server" /> | |
| <brew:datepicker for="date" runat="server" /> |
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
| BEFORE: | |
| function( | |
| _, $, | |
| id) { | |
| AFTER: | |
| function (_, $, id) { |
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 hooker = require('hooker'), | |
| prefix, | |
| newline = true; | |
| // Override grunt.log.header to update a per-line prefix and prevent default logging. | |
| hooker.hook(grunt.log, 'header', function () { | |
| prefix = '[' + grunt.task.current.nameArgs + '] '; |
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 now = new Date(), | |
| month = now.getMonth(), | |
| day = now.getDate(), | |
| year = now.getFullYear(), | |
| hours = now.getHours(), | |
| minutes = now.getMinutes(), | |
| buster = '' + month + day + year + hours; | |
| buster += (minutes - (minutes % 5)); |
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 postcss = require('postcss'), | |
| fs = require('fs'), | |
| path = require('path'), | |
| css = fs.readFileSync(path.join(__dirname, 'lesstest.less'), 'utf-8'), | |
| root = postcss.parse(css); | |
| console.log(require('util').inspect(root, { depth: 6 })); |
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 proxy = 'https://urlreq.appspot.com/req?method=GET&url=', | |
| url = proxy + 'https://github.com/{{ site.github }}', | |
| colors = { | |
| 'eeeeee': 'github-graph-none', | |
| 'd6e685': 'github-graph-litte', | |
| '8cc665': 'github-graph-some', | |
| '44a340': 'github-graph-more', | |
| '1e6823': 'github-graph-most' | |
| }; |
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 path = require('path'), | |
| webpack = require('webpack'), | |
| ExtractTextPlugin = require('extract-text-webpack-plugin'), | |
| CopyWebpackPlugin = require('copy-webpack-plugin'); | |
| module.exports = { | |
| output: { | |
| path: path.join(__dirname, 'dist'), | |
| publicPath: '/', | |
| filename: '/assets/js/build.js' |
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'; | |
| const npm = require('npm'); | |
| const semver = require('semver'); | |
| const graph = {}; | |
| function get (moduleName) { | |
| const silent = true; | |
| return new Promise((resolve, reject) => { |
OlderNewer