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
💪 Opened PR #137 in ant-design/html2sketch | |
💪 Opened PR #136 in ant-design/html2sketch | |
💪 Opened PR #175 in FlowFans/flow-chinese-workshop | |
💪 Opened PR #146 in FlowFans/flow-chinese-workshop | |
💪 Opened PR #1 in AlayaNetwork/browser-web |
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
Cocoa 1 hr 38 mins ██████████▉░░░░░░░░░░ 52.3% | |
Swift 49 mins █████▌░░░░░░░░░░░░░░░ 26.5% | |
Java 30 mins ███▎░░░░░░░░░░░░░░░░░ 16.0% | |
SQL 7 mins ▉░░░░░░░░░░░░░░░░░░░░ 4.2% | |
Dart 1 min ▏░░░░░░░░░░░░░░░░░░░░ 1.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 saveCSV = (blob, filename) => { | |
const blob = new Blob(["\ufeff", blob], { type: ' type: "text/csv;charset=UTF-8"' }) | |
saveAs(blob, `${filename}.csv`); | |
} |
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
export const setAsyncRouteLeaveHook = (router, route, hook)=> { | |
let withinHook = false; | |
let finalResult = undefined; | |
let finalResultSet = false; | |
router.setRouteLeaveHook(route, nextLocation => { | |
withinHook = true | |
if (!finalResultSet) { | |
hook(nextLocation).then(result => { | |
finalResult = 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
// https://coderwall.com/p/ngisma | |
$scope.safeApply = function(fn) { | |
var phase = this.$root.$$phase; | |
if(phase == '$apply' || phase == '$digest') { | |
if(fn && (typeof(fn) === 'function')) { | |
fn(); | |
} | |
} else { | |
this.$apply(fn); | |
} |
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
CSS3 生成工具 | |
http://www.createcss3.com/ | |
https://togetherjs.com/ | |
https://www.firebase.com/ |
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
// | |
// test/unit/directives/directivesSpec.js | |
// | |
describe("Unit: Testing Directives", function() { | |
var $compile, $rootScope; | |
beforeEach(angular.mock.module('App')); | |
beforeEach(inject( |
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
To target IE 6 and 7 | |
@media screen\9 { | |
body { background: red; } | |
} | |
To target IE 6, 7 and 8 | |
@media \0screen\,screen\9 { | |
body { background: green; } | |
} |
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
element('#something_id').query(function(el, done){ | |
var evt = document.createEvent('Event'); | |
evt.initEvent('focus', false, true); | |
el[0].dispatchEvent(evt); | |
done(); | |
}); |
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 isType(type) { | |
return function(obj) { | |
return {}.toString.call(obj) == "[object " + type + "]" | |
} | |
} | |
var isObject = isType("Object") | |
var isString = isType("String") | |
var isArray = Array.isArray || isType("Array") |
NewerOlder