Skip to content

Instantly share code, notes, and snippets.

@ericelliott
ericelliott / essential-javascript-links.md
Last active April 22, 2024 10:15
Essential JavaScript Links
@minghe
minghe / gist:9228216
Created February 26, 2014 11:53
grunt构建复杂前端工程
var PATH = require('path');
var FS = require( 'fs' );
var EXEC = require( 'child_process').exec;
module.exports = function (grunt) {
var ABCConfig = grunt.file.readJSON('abc.json');
/**
* 分析用户给定的参数
@auser
auser / d3.js
Last active August 23, 2018 12:31
angular.module('d3', [])
.factory('d3Service', ['$document', '$window', '$q', '$rootScope',
function($document, $window, $q, $rootScope) {
var d = $q.defer(),
d3service = {
d3: function() { return d.promise; }
};
function onScriptLoad() {
// Load client in the browser
$rootScope.$apply(function() { d.resolve($window.d3); });