code stringlengths 2 1.05M |
|---|
const breadcrumbProps = {
separator: {
type: String,
default: '/'
},
type: {
type: String,
default: 'normal'
}
}
const breadcrumbItemProps = {
path: {
type: String
}
}
export {breadcrumbProps, breadcrumbItemProps}
|
'use strict';
const yeoman = require('yeoman-generator');
const chalk = require('chalk');
const yosay = require('yosay');
const path = require('path');
module.exports = yeoman.Base.extend({
prompting: function () {
let done = this.async();
// Have Yeoman greet the user.
this.log(yosay(
'Welcome t... |
console.log('hello');
console.log(frames[0].document.querySelectorAll('video')); |
var app = {
// Application Constructor
inicio: function () {
this.iniciaFastClick();
this.iniciaBotones();
},
iniciaFastClick: function () {
FastClick.attach(document.body);
},
iniciaBotones: function () {
var buttonAction = document.querySelector('#button-actio... |
webpackJsonp([0xe93be1ca5c12],{470:function(n,t){n.exports={pathContext:{tag:"functional programming"}}}});
//# sourceMappingURL=path---tags-functional-programming-129c315e95bedf5d76f0.js.map |
define([
'application',
'modules/TestingTesting123Module'
],
function( app, TestingTesting123Module ) {
describe('TestingTesting123Module Module', function () {
it('should equal TestingTesting123Module Module', function () {
var testingtesting123module = app.TestingTesting123Module;
expect(... |
const net = require('net')
const crypto = require('crypto')
const HOME_PATH = process.env[(process.platform == 'win32') ? 'USERPROFILE' : 'HOME']
const resolveHome = pathStr => pathStr.replace(/^~(\/|$)/, `${HOME_PATH}$1`)
const uuid = () => Date.now().toString(36) + Math.random().toString(36).substring(2)
const getHa... |
/**
* CategoryController.js
*
* @description ::
* @docs :: http://sailsjs.org/#!documentation/controllers
*/
module.exports = {
};
|
class Item {
constructor() {
this.title = 'undefined';
this.price = '0';
this.date = '';
this.city = '';
this.location = '';
this.postCode = '';
this.pictureUrl = null;
this.linkUrl = '';
}
}
|
import React from 'react'
import { Link } from 'gatsby'
import Helmet from 'react-helmet'
import Waypoint from 'react-waypoint'
import Layout from '../components/layout'
import Header from '../components/Header'
import Nav from '../components/Nav'
import badgePhoto from '../assets/images/badgePhoto.jpg'
import illusio... |
var io = require('socket.io-client');
var ChatClient = require('./chat-client');
var Canvas = require('./canvas');
var global = require('./global');
var animator = require('./animator');
var kd = require('./keydrown');
var weapons = require('./weapons');
var animations = require('./animations');
var playerNameInput = ... |
export { default as XAxis } from "./XAxis";
export { default as YAxis } from "./YAxis"; |
import TBD from "TBD";
const { div, span, button, h4, p, hr } = TBD.dom;
const styles = {
features: {
display: 'flex',
flexDirection: 'row',
flexWrap: 'wrap',
minHeight: '150px',
justifyContent: 'center'
},
feature: {
display: 'flex',
flexDirection: 'column',
flexWrap: 'nowrap',
textAlign: 'center... |
var app = angular.module('meetupApp', ['ngResource']); |
Ext.define("HatimeriaAdmin.core.component.DashboardBox", {
alias: 'widget.h-dashboard-box',
mixins: {
translationable: 'Hatimeria.core.mixins.Translationable'
},
transDomain: 'HatimeriaAdminBundle',
transNS: 'dashboard',
extend: 'Ext.panel.Panel',
height: 150,
margin: 20,
... |
/* eslint strict: 0 */
'use strict';
process.env.NODE_ENV = process.env.NODE_ENV || 'production';
const electron = require('electron');
const app = electron.app;
const BrowserWindow = electron.BrowserWindow;
const Menu = electron.Menu;
const crashReporter = electron.crashReporter;
const shell = electron.shell;
const ... |
var mongoose = require("mongoose");
var Schema = mongoose.Schema;
// create a schema
var rogueMessageSchema = new Schema({
messages: {
type: Array,
"default": []
},
actorId: String
});
// the schema is useless so far
// we need to create a model using it
var rogueMessage = mongoose.model('rogueMessage', rogue... |
var foo = require(`tape`);
console.log(foo);
|
'use strict';
angular.module('app.config.router', ['ngRoute'])
.config(['$routeProvider', function($routeProvider) {
$routeProvider.otherwise({redirectTo: '/home'});
}]); |
import { moduleForComponent, test } from 'ember-qunit';
import hbs from 'htmlbars-inline-precompile';
moduleForComponent('select-date', 'Integration | Component | select date', {
integration: true
});
test('it renders', function (assert) {
// Set any properties with this.set('myProperty', 'value');
// Handle an... |
version https://git-lfs.github.com/spec/v1
oid sha256:0378d82105f4dfa5680064fbd38584a76b7832b5a64b94fe83dcfb96481bea00
size 8299
|
$(function(){
// Get Coordinates from OpenStreetMap, needed to find county name
var Coordinates = Backbone.Model.extend({
url: function() {
return 'http://nominatim.openstreetmap.org/search?q=' + _.values(this.attributes).join(', ') + '&format=json';
}
});
// County model, needed to find locally... |
'use strict';
angular.module('leakyapp.core.playlist.service', [
'ngStorage'
])
.factory('playlistService',
function ($localStorage) {
var playlists = $localStorage.playlists || [];
var playlistId = $localStorage.playlistId || 1;
function saveToStorage() {
$localStorage.playlists... |
!function(e) {
if ("object" == typeof exports && "undefined" != typeof module)
module.exports = e();
else if ("function" == typeof define && define.amd)
define([], e);
else {
var n;
"undefined" != typeof window ? n = window : "undefined" != typeof global ? n = global : "undef... |
var originalWebsocket = require('faye-websocket');
var proxyquire = require('proxyquire');
// Firebase has strict requirements about the hostname format. So we provide a dummy
// hostname and then change the URL to localhost inside the faye-websocket's Client
// constructor.
var firebase = proxyquire('firebase', {
'... |
var categ_id = 0;
var subcategoria_id = 0;
function ActualizarLista(){
$.ajax({
type: "POST",
url: url_lista,
async: true,
dataType: "html",
success: function( data ) {
$('#detalleLista').empty().html(data);
},
error: function(error){
}
});
}
$(document... |
var R = 300 , dur = 15;
var tl = new TimelineLite()
.staggerTo(".small_cookie", dur ,{
bezier:{curviness:1.5,values:[{x:0,y:0},{x:R/2,y:R/2},{x:0,y:R},{x:-R/2,y:R/2},{x:0,y:0}]}
,rotation:-720,repeat:-1,ease:Power0.easeNone},dur/20)
.to(".main_cookie", dur ,{rotation:-0,ease:Power0.easeNone,repeat:-1},0)
.time(dur); |
'use strict';
/**
* Module dependencies.
*/
var mongoose = require('mongoose'),
Schema = mongoose.Schema;
/**
* Header Schema
*/
var HeaderSchema = new Schema({
created: {
type: Date,
default: Date.now
},
title: {
type: String,
default: '',
trim: true
}... |
import React, { PropTypes } from 'react';
import TodoFilterButton from '../containers/TodoFilterButton';
import MarkAllButton from '../containers/MarkAllButton';
import DeleteMarkedButton from '../containers/DeleteMarkedButton';
const Footer = () => (
<footer>
<TodoFilterButton text="All" filter="ALL" />
<T... |
"use strict";
var http = require('http');
// https://github.com/cloudhead/node-static
var Static = require('node-static');
var PORT = 8888;
// Setting up the static web server
var staticServer = new Static.Server("src/", {cache: 0});
http.createServer(function(request, response) {
request.addListener('end', functio... |
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ retu... |
var tiddlerExists= function(tidname) {
var tiddler = $tw.wiki.getTiddler(tidname);
return(!!tiddler);
}
exports.name ="newtitle";
exports.run = function(baseTitle,ext) {
var i,dot="";
baseTitle = baseTitle.replace(/#|<|>|\:|\"|\||\?|\*|\/|\\|\^/g,"_");
if (ext) dot = ".";
ext = ext ||"";
var c = 0,
ti... |
/* eslint-disable */
// In production, we register a service worker to serve assets from local cache.
// This lets the app load faster on subsequent visits in production, and gives
// it offline capabilities. However, it also means that developers (and users)
// will only see deployed updates on the "N+1" visit to a p... |
module.exports = (RED) => {
const util = require('util');
const CircuitAPISDK = require('circuit-api-sdk');
// handle the connection to the circuit server
function CircuitApiSdkServerNode(n) {
RED.nodes.createNode(this,n);
let node = this;
node.client = false;
... |
export default () => {
try {
return ('ontouchstart' in window)
} catch (e) {
return false
}
}
|
'use strict';
angular.module('bbc.alert', [])
/**
* @ngdoc object
* @name bbc.alert.$bbcAlert
* @requires $timeout
*
* @description
* Service for angular-ui alert handling which shows different alert boxes in an application.
*
* For more information look at the [guide](/aler... |
'use strict';
/**
* Module dependencies.
*/
var mongoose = require('mongoose'),
errorHandler = require('./errors.server.controller'),
Comment = mongoose.model('Comment'),
Article = mongoose.model('Article'),
User = mongoose.model('User'),
_ = require('lodash');
/**
* Create a Comment
*/
exports.create ... |
import nodeResolve from 'rollup-plugin-node-resolve'
import commonjs from 'rollup-plugin-commonjs'
export default {
moduleName: 'Server',
entry: 'src/server/server.js',
dest: 'dist/server.js',
format: 'iife',
plugins: [
nodeResolve(),
commonjs()
]
}
|
'use strict';
var Phaser = require('Phaser'),
Boot = function (game) {};
module.exports = Boot;
Boot.prototype = {
preload: function () {
// Here we load the assets required for our preloader (in this case a background and a loading bar)
this.load.image('preloaderBackground', 'assets/img/preloader_backg... |
import Reflux from 'reflux';
const Actions = Reflux.createActions([
'categoryUpdate'
]);
export default Actions;
|
/*!
* uki JavaScript Library v0.0.1
* Licensed under the MIT license
*
* Copyright (c) 2009 Vladimir Kolesnikov
*
* Parts of code derived from jQuery JavaScript Library v1.3.2
* Copyright (c) 2009 John Resig
*/
(function() {
include('uki-core/const.js');
include('uki-core/uki.js');
include('uki-core/utils.js');... |
//Speed Avergaing
//Retrieveing and using nuymerical Time Data.
var rightNow = new Date();
var endTime = new Date();
var timeElapsed = endTime - rightNow ;
function SpeedTest(testImplement.testParams,repetitions){
this.testImplement = testImplement; // testImplement going into the testImplement property
this... |
#!/usr/bin/env node
const fs = require('fs');
const express = require('express');
const path = require('path');
const async = require('async');
const bodyParser = require('body-parser');
const helmet = require('helmet');
const morgan = require('morgan');
const Api = require('./lib/api.js');
const Cache = require('./l... |
var config = require('config')
import asyncApiAction from '../helpers/asyncApiAction'
const SINGLE_PLACE_DATA = 'SINGLE_PLACE_DATA'
function setPlaceDetails (data) {
return {
type: SINGLE_PLACE_DATA,
selectedPlace: data,
pageTitle: `${data.name} | Places | iOverlander`
}
}
export function placeDetail... |
$.continuousCalendar = {};$.continuousCalendar.version = '2.0.1';$.continuousCalendar.released = '2012-08-23'
/* ==============================================================================
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with ... |
// Map of items to categories
var itemMap = {
"Abyssal Scepter" : "AP",
"Archangel's Staff" : "AP",
"Ardent Censer" : "AP",
"Athene's Unholy Grail" : "AP",
"Banner of Command" : "AP",
"Banshee's Veil" : "Tank",
"Blade of the Ruined King" : "AD",
"The Black Cleaver" : "AD",
"The Bloodthirster" : "AD",
... |
$(document).ready(function() {
//Vaiable global que va a contener el archivo file comprimido
blobFile=null;
$("#almacenarp").click(function (e) {
e.preventDefault();
var tamanio=$("#prg_pregunta").val().length;
if (tamanio>0){
$(this).prop( "disabled", true );
var data=$("#form_almacenarp").serialize();
$.a... |
/*globals define*/
define([
'underscore',
'backbone',
'models/color'
], function( _, Backbone, Color ) {
'use strict';
var lineCaps = [ 'butt', 'round', 'square' ];
var lineJoins = [ 'bevel', 'round', 'miter' ];
var colorProperties = [ 'fill', 'stroke' ];
var compositeOperations = [
'source-over'... |
// Generated by CoffeeScript 1.9.3
(function() {
var Parser, alt, alternatives, grammar, name, o, operators, token, tokens, unwrap;
Parser = require('jison').Parser;
unwrap = /^function\s*\(\)\s*\{\s*return\s*([\s\S]*);\s*\}/;
o = function(patternString, action, options) {
var addLocationDataFn, match, p... |
import * as types from '../actions/actionTypes';
import initialState from './initialState';
export default function repoReducer(state = initialState.repos, action) {
switch (action.type) {
case types.REPOS_LOADED: {
return action.repos.map(repo => {
return {
...repo,
branches: n... |
var path = require('path');
var webpack = require('webpack');
var BUILD_DIR = path.resolve(__dirname, 'src/bundles');
var APP_DIR = path.resolve(__dirname, 'src/');
module.exports = {
entry: [
'react-hot-loader/patch',
'webpack/hot/dev-server',
'webpack/hot/only-dev-server',
index:APP_DIR+'index',
... |
angular.module('schoolManage')
.factory('TabletDataProvider', ['$http', '$q', function ($http, $q) {
var getXiaoshuBySchool = function (schoolId, callBack) {
$http({
method: "GET",
url: "/usertablet/count?schoolId=" + schoolId
}).success(function (coun... |
export { default } from 'ember-fhir/serializers/claim-response-process-note'; |
import setStyles from '../utils/setStyles';
import setAttributes from '../utils/setAttributes';
import getReferenceOffsets from '../utils/getReferenceOffsets';
import computeAutoPlacement from '../utils/computeAutoPlacement';
/**
* @function
* @memberof Modifiers
* @argument {Object} data - The data object generate... |
import _ from 'lodash';
import React, {Component }from 'react';
import ReactDom from 'react-dom';
import SearchBar from './components/search_bar';
import YTSearch from 'youtube-api-search';
import VideoList from './components/video_list'
import VideoDetail from './components/video_detail';
const API_KEY = 'AIzaSyAxCfKb... |
var merge = require('lodash.merge');
var Firebase = require('firebase');
var FirebaseSimpleLogin = require('firebase-simple-login');
var eventEmitter = require('event-emitter');
var constants = require('./constants');
var auth;
/**
* @class Auth
*
* the FirebaseSimpleLogin library is only simple in the "simple-mi... |
public var speed: int = -5;
function Start() {
// Vertical speed to the enemy
rigidbody2D.velocity.y = speed;
rigidbody2D.angularVelocity = Random.Range(-200, 200);
// Destroy the enemy in 3 seconds
Destroy(gameObject, 3);
}
// Function called when the enemy collides with another gameObject
function OnTrigger... |
/*global define*/
define([
'../Core/Cartesian2',
'../Core/Cartesian3',
'../Core/Cartesian4',
'../Core/Cartographic',
'../Core/defaultValue',
'../Core/defined',
'../Core/destroyObject',
'../Core/DeveloperError',
'../Core/Ellipsoid',
'../Core... |
/**
* Copyright (c) 2014 brian@bevey.org
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, pu... |
var Address = require('../../models/address').Address;
module.exports = function (id, fn, onErr) {
Address.remove({ _id: id }, function (err) {
if (err) {
onErr(err);
return console.error(err);
}
fn()
});
};
|
var server = require("./server");
server.start();
|
var _; //globals
describe("About Applying What We Have Learnt", function () {
var products;
beforeEach(function () {
products = [
{ name: "Sonoma", ingredients: ["artichoke", "sundried tomatoes", "mushrooms"], containsNuts: false },
{ name: "Pizza Primavera", ingredients: ["ro... |
(function ($, jn) {
if ((_Janetter_Window_Type != "main") && (_Janetter_Window_Type != "profile"))
return;
var my_filename = 'fix_thumbnails.js';
var comment = ' // replaced by ' + my_filename;
// Thanks to: https://y-dash.blogspot.jp/2016/03/janetterinstagram.html
function fixInstagram() {
var original = ... |
(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) {
return;
}
js = d.createElement(s);
js.id = id;
js.src = "https://www.youtube.com/iframe_api";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'youtube-api'));
|
import React from 'react'
import { Button, Card, Image } from 'stardust'
const Groups = () => (
<Card.Group>
<Card>
<Card.Content>
<Image floated='right' size='mini' src='http://semantic-ui.com/images/avatar/large/steve.jpg' />
<Card.Header>
Steve Sanders
</Card.Header>
... |
/*
var use = function(transformFnc) {
var _ = require( 'underscore' );
if(_.isFunction(transformFnc) ) {
return transformFnc;
} else if(_.isString(transformFnc) ) {
console.log( "-- load validator: %j", transformFnc);
var isFilePath = require( '../asserts/isFilePath').check;
... |
/**
* Created by Denis on 03.08.2016.
*/
(function(){
'use strict';
angular.module('playlistApp.utils', [])
.directive("disableAnimate", function ($animate) {
return function (scope, element) {
$animate.enabled(false, element);
};
});
})() |
'use strict';
var grunt = require('grunt');
var Inspector = require('jsinspect/lib/inspector');
var reporters = require('jsinspect/lib/reporters');
module.exports = function (options, f) {
options.args = grunt.file.expand(options.args);
var inspector = new Inspector(options.args, {
threshold: options.threshol... |
var config = require('./config');
var mongoose = require('mongoose');
module.exports = function () {
var db = mongoose.connect(config.db);
// load models here
require('../models/todo.model');
return db;
}; |
const env = process.env.NODE_ENV;
const webpack = require('webpack');
const UglifyJSPlugin = require('uglifyjs-webpack-plugin');
const SvgSpritePlugin = require('webpack-svg-sprite-plugin');
const { path, resolve } = require('path');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const WebpackCritical = requ... |
'use strict';
const gplay = require('../index');
const assertValidApp = require('./common').assertValidApp;
const assert = require('chai').assert;
describe('Search method', () => {
it('should fetch a valid application list', () => {
return gplay.search({ term: 'Panda vs Zombies' })
.then((apps) => apps.ma... |
oo.algorithms = {};
import "quantize";
|
export default function linkValue(name, instance) {
return {
value: instance.state[name],
onChange(newValue) {
instance.setState({ [name]: newValue })
}
}
}
|
/**
* Plugin dependencies.
*
* @type {exports}
*/
var Sandbox = require('sandbox');
/**
* Safe eval plugin for UniBot.
*
* With this plugin UniBot IRC bot can run javascript code in own sandbox. See more at http://gf3.github.io/sandbox/
*
* @param {Object} options Plugin options object, description below.
... |
angular.module('JALUTE.resume', ['ngRoute', 'ngSanitize'])
.config(['$routeProvider', function($routeProvider) {
$routeProvider.when('/resume', {
templateUrl: 'resume/resume.html',
controller: 'ResumeCtrl'
});
}])
.controller('ResumeCtrl', ['$rootScope', function($... |
'use strict'
const path = require('path')
const webpack = require('webpack')
const config = require('./config')
const postcss = [
require('autoprefixer')({
browsers: ['last 2 versions', 'ie > 8']
}),
require("css-mqpacker")()
]
let webpack_base = {
entry: config.entry,
output: {
path: config.assets_... |
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl... |
// Compartio.js
module.exports = {
connection: 'localDiskDb',
schema: true,
attributes: {
name: {
type: 'string',
required: true
},
description: {
type: 'text'
},
slug: {
type: 'string'
},
is_donation: {
type: 'boolean'
},
url_image: {
type:... |
import fs from 'fs';
const LoadFile = {
readJson(filepath) {
let contents;
try {
fs.accessSync(filepath, fs.F_OK);
contents = fs.readFileSync(filepath, 'utf8').trim();
} catch (e) {
contents = null;
}
if (contents !== null) {
return JSON.parse(contents);
} else {
... |
'use strict';
module.exports = {
index: function *(next) {
this.body = '/test/index';
},
test: function *(next) {
this.body = '/test/test';
}
};
|
dbm = dbm || require('db-migrate');
var type = dbm.dataType;
var fs = require('fs');
var path = require('path');
exports.up = function(db, callback) {
var filePath = path.join(__dirname + '/sqls/20150305053405-make-articles-table-up.sql');
fs.readFile(filePath, {encoding: 'utf-8'}, function(err,data){
if (err)... |
/** @constructor */
ScalaJS.c.scala_runtime_AbstractFunction8 = (function() {
ScalaJS.c.java_lang_Object.call(this)
});
ScalaJS.c.scala_runtime_AbstractFunction8.prototype = new ScalaJS.inheritable.java_lang_Object();
ScalaJS.c.scala_runtime_AbstractFunction8.prototype.constructor = ScalaJS.c.scala_runtime_AbstractFu... |
export { default as runner } from './runner';
export { default as sanitizer } from './sanitizer';
|
/**
* Created by endof on 4/14/2016.
*/
$(function() {
var city_search_submit = $('.city_search_submit');
// This is where the magic happens
// API call, user input validate and string manipulation
city_search_submit.on('click', function() {
var city_input = $('#city_input').val();
va... |
/* app/views/sections/books.js - Main Book page */
'use strict';
define([
'jquery',
'backbone',
'underscore',
'app/collections/books',
'app/views/partials/grid'
], function( $, Backbone, _, bookCollection, G ) {
// Book landing thumbnail
var BookThumb = G.Thumb.extend({
url : funct... |
function stringsRearrangement(inputArray) {
var cont = 0;
var dictionaire = {};
for (var i = 0; i < inputArray.length; i++) {
if (dictionaire[inputArray[i]] == null) {
dictionaire[inputArray[i]] = {
coincidences: search(inputArray[i], i, inputArray)
};
... |
(function() {
function getTarget() {
var thisName = document.getElementById('thisName').value;
return thisName;
}
function getChildren(data) {
var thisName = getTarget();
var list = [];
Object.keys(data)
.forEach(function(key) {
var item ... |
'use strict';
// Configuring the Projects module
angular.module('projects').run(['Menus',
function(Menus) {
// Set top bar menu items
Menus.addMenuItem('topbar', 'Projects', 'projects', 'dropdown', '/projects(/create)?');
Menus.addSubMenuItem('topbar', 'projects', 'All Projects', 'projects');
Menus.addSubMenu... |
(function () {
"use strict";
window.App.videos = [
{
title: '1Big Buck Bunny',
url: 'http://smartimmo.ru/uploaded/big_buck_bunny_480p_h264.mp4',
type: 'vod'
},
{
title: 'Elephants Dream',
url: 'https://archive.org/download/Elep... |
const webpack = require('webpack');
const path = require('path');
const pkg = require('./package.json');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const CleanWebpackPlugin = require('clean-webpack-plugin');
module.exports = {
devtool: ' source-map',
entry: {
'index': './src/public/page.... |
import qambi, {
getMIDIInputs,
SimpleSynth,
getNoteData,
MIDIEvent,
MIDIEventTypes,
ConvolutionReverb,
Delay,
} from 'qambi'
document.addEventListener('DOMContentLoaded', function(){
qambi.init({
song: {
type: 'Song',
url: '../data/minute_waltz.mid'
},
piano: {
type: 'In... |
import React from 'react'
import Helmet from 'react-helmet'
const Analytics = ({ google }) => {
const Ga = []
if (google) {
Ga.push(
<script
key="ga-script-1"
async
src={`https://www.googletagmanager.com/gtag/js?id=${google}`}
/>
)
Ga.push(
<script key="ga-scr... |
import assert from 'assert'
import postcss from 'postcss'
import discardDuplicates from '../../src/postcss/discard-duplicates'
describe('discardDuplicates', () => {
it('works', () => {
const input = `
.foo {
color: red;
}
.foo {
color: red;
}
`
const output = `
... |
'use strict'
module.exports = {
development: {
client: 'pg',
connection: 'postgres://localhost/myline_life_dev'
},
production: {
client: 'pg',
connection: process.env.DATABASE_URL
}
};
|
const likeBtn = new LikeButton();
const wordBtn = new LikeButton({word: 'Hello Dreact'});
const colorBtn = new RedBlueButton();
Dreact(likeBtn, '#app');
Dreact(wordBtn, '#app');
Dreact(colorBtn, '#app');
|
/**
* Created by Eswer on 9/2/2015
*/
// import Rule from 'rule.js';
import React from 'react';
export default class ActionComponent extends React.Component{
render() {
return (
<div>
<pre>Action</pre>
</div>
);
}
construcor() {
this.action = this.props.action;
};
}
ActionCom... |
"use strict";
var styles = {
"simple": "_simple_jvai8_1"
}; // @related-file ./simple.css
console.log(styles);
|
// Place all the behaviors and hooks related to the matching controller here.
// All this logic will automatically be available in application.js.
$(document).on('turbolinks:load', function() {
// console.log('about to register handlers');
$('form').on('click', '.remove_fields', function(event) {
// console.log... |
// Generated by CoffeeScript 1.8.0
(function() {
var Render, above128, calcSurfaceArea, generate, generateRects;
Render = (function() {
function Render(elId, pack) {
var paper, rect, _i, _j, _len, _len1, _ref, _ref1;
if ($("#isDrawRender").is(":checked")) {
paper = Raphael(elId, pack.binWid... |
var colors = {
black: 0,
red: 1,
green: 2,
yellow: 3,
blue: 4,
magenta: 5,
cyan: 6,
white: 7
};
module.exports = function (content, color) {
if (color in colors) {
return '\033[3' + colors[color] + 'm' + content + '\033[0m';
}
return content;
}; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.