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
//starting at line 854 | |
var QD_DE_NAME = key + "_DE"; | |
var QD_COUNT_NAME = key + "_Count"; | |
var QD_SUPP_NAME = key + "_Suppress"; | |
var retrieveDE; | |
var mylistDE; | |
var audienceDeDef; | |
var suppressionDeDef; | |
var fields; | |
var kq; |
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.task('mongo-start', function (cb) { | |
var tries = 0; | |
startMongo(); | |
var timer = setInterval(connectToMongo, 2000); | |
function startMongo() { | |
exec('mongod --dbpath ./localdb/db/'); |
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-express | |
=================== | |
1. Gulpfile.js | |
var gulp = require('gulp'); | |
var express = require('gulp-express'); | |
gulp.task('server', function () { | |
express.run([ './src/backend/server.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
(function fetchPage(page) { | |
self.collection.paging.page = page; | |
self.collection.fetch({ | |
success: function (collection) { | |
models = models.concat(collection.models); | |
combineAttributesFrom(collection); | |
updateTemplate.call(self); | |
if (collection.models.length === self.collection.paging.pageSize) { | |
fetchPage(++page); //get more |
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
if (msgHtml.length && msgHtml.match(trackingCodeRegx)) { | |
return true; | |
} else { | |
return false; | |
} | |
//when you see something like this, do: | |
return (msgHtml.length && msgHtml.match(trackingCodeRegx)); |
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
greleasethehounds () | |
{ | |
if [[ $# == 0 ]]; then | |
echo "usage: greleasethehounds <version number> [message]" | |
echo " <version number> - (required) Ex: 1.0.1, 9.9.9, 0.0.3" | |
echo " The version number." | |
echo " [message] - (optional) Ex: \"Release 1.0.0, woot, out of beta\"" | |
echo " The commit message and tag message." | |
echo " Default is \"Release <version number>\"." | |
echo "" |
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
this.$el.find('.geartabselement').geartabs('setTarget', this.target); | |
this.$el.find('.geartabselement').geartabs('selectTab', 'content'); | |
if (this.gearView.gear && this.gearView.gear.id && this.gearView.gear.assetType !== 'image') { | |
this.saveAndUpdate.removeClass('disabled'); | |
} else { | |
this.saveAndUpdate.addClass('disabled'); | |
} | |
if (this.gearView.gear) { |
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
reference: function (e, r) { | |
var self = this; | |
// the different types of references below | |
var fullSelector = '[data-reference-type~="full"]';// full replacement | |
var innerSelector = '[data-reference-type~="inner"]';// replace with inner | |
var attrSelector = '[data-reference-type~="attributes"]';// replace attributes | |
var nullSelector = '[data-reference-type="none"]';// remove | |
$.each(r.find(attrSelector).addBack(attrSelector), function (i, attr) { |
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
import React from 'react' | |
import { render } from 'react-dom' | |
import HTML5Backend from 'react-dnd-html5-backend' | |
import { DragDropContext, DropTarget } from 'react-dnd' | |
import ReactTransitionGroup from 'react-addons-transition-group' | |
@DragDropContext(HTML5Backend) | |
class App extends React.Component { | |
constructor() { |
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
// import 'babel-core/polyfill' //i guess this needs to be first? | |
import './index.html' | |
import './favicon.ico' | |
import 'react-bootstrap' | |
import 'bootstrap/dist/css/bootstrap.css' | |
import './index.less' |
OlderNewer