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 Campaign = require('../model/campaign'); | |
| module.exports.getCampaignsCSV = function (req, res) { | |
| function CSVEscape(field) { | |
| return '"' + String(field || "").replace(/\"/g, '""') + '"'; | |
| } | |
| var headers = [ | |
| 'Code-Nummer', //num | |
| 'Kampagnenname', //name |
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
| **Tourers (CL appears to have a max query length so you now need to run this search in two parts)** | |
| Part 1: | |
| tourismo|Specialissima|520|620|720|Expedition|Sequoia|Voyageur|Passage|Portage|Alyeska | |
| Part 2: | |
| Kodiak|Panasonic|Nishiki|Miyata|Bridgestone|waterford|tour|tourer|touring | |
| **Mountain Bikes** | |
| stumpjumper|cascade|mb|Highpath|Overbury|ritchey |
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
| <? | |
| ///////////////////// | |
| // slack2html | |
| // by @levelsio | |
| ///////////////////// | |
| // | |
| ///////////////////// | |
| // WHAT DOES THIS DO? | |
| ///////////////////// | |
| // |
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
| CREATE OR REPLACE FUNCTION generate_object_id() RETURNS varchar AS $$ | |
| DECLARE | |
| time_component bigint; | |
| machine_id int := FLOOR(random() * 16777215); | |
| process_id int; | |
| seq_id bigint := FLOOR(random() * 16777215); | |
| result varchar:= ''; | |
| BEGIN | |
| SELECT FLOOR(EXTRACT(EPOCH FROM clock_timestamp())) INTO time_component; | |
| SELECT pg_backend_pid() INTO process_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
| import React from 'react' | |
| import { renderToString } from 'react-dom/server' | |
| import parser from './shortcode-parser' | |
| export const add = parser.add | |
| const Aside = ({ children, config }) => { | |
| /** | |
| * config = { | |
| * foo: true, |
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
| // semantic-ui-form.js | |
| import React from 'react'; | |
| import PropTypes from 'prop-types'; | |
| import { Form, Input } from 'semantic-ui-react'; | |
| export default function semanticFormField ({ input, type, label, placeholder, meta: { touched, error, warning }, as: As = Input, ...props }) { | |
| function handleChange (e, { value }) { | |
| return input.onChange(value); | |
| } |
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 PropTypes from 'prop-types' | |
| import debounce from 'lodash.debounce' // or whatevs | |
| import isEqual from 'lodash.isEqual' | |
| class AutoSave extends React.Component { | |
| static contextTypes = { | |
| formik: PropTypes.object | |
| } |
OlderNewer