This file contains 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 Select from 'react-select' | |
import _ from 'lodash' | |
import Datasheet from '../lib/DataSheet' | |
export default class ComponentSheet extends React.Component { | |
constructor (props) { | |
super(props) | |
this.options = [ | |
{ label: 'Bread', value: 2.35 }, |
This file contains 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 m from 'mithril'; | |
import stream from 'mithril/stream'; | |
import {Button} from '../../ui'; | |
import {Account} from '../../models'; | |
export const FormAccountPublicPage = { | |
oninit(vnode) { | |
this.loading = true; | |
this.saving = false; | |
this.errors = false; |
This file contains 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
<script> | |
// app ID | |
var intercomSettings = { | |
app_id: "{{intercom.id}}" | |
}; | |
// Verifies and cleans all GTM variables | |
function pushGTMVariablesToIntercom(gtmKey, gtmValue) { | |
if("{{user.type}}" != "guest"){ |
This file contains 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
micro query sg.micro.srv.spider Spider.PrepareDatasets '{ | |
"selector_id": 1, | |
"group": "motorcycle" | |
}' |
This file contains 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
{ | |
"name": {"use": "text", "value": "h1 span", "filters": ["trim-space"]}, | |
"screen": {"use": "text", "value": "#phone div[data-gallery] .col-xs-16 div.bor-t-1", "filters": ["trim-space"]}, | |
"os": {"use": "text", "value": "#phone div[data-gallery] .col-xs-16 div.bor-t-1", "i": 1, "filters": ["trim-space"]}, | |
"camera": {"use": "text", "value": "#phone div[data-gallery] .col-xs-16 div.bor-t-1", "i": 2, "filters": ["trim-space"]}, | |
"storage": {"use": "text", "value": "#phone div[data-gallery] .col-xs-16 div.bor-t-1", "i": 3, "filters": ["trim-space"]}, | |
} |
This file contains 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
/* | |
* Search and replace a string with another string , in a string | |
* */ | |
char *str_replace(char *search , char *replace , char *subject) | |
{ | |
char *p = NULL , *old = NULL , *new_subject = NULL ; | |
int c = 0 , search_size; | |
search_size = strlen(search); | |
This file contains 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
<?php | |
return [ | |
/* | |
|-------------------------------------------------------------------------- | |
| Default Authentication Driver | |
|-------------------------------------------------------------------------- | |
| | |
| This option controls the authentication driver that will be utilized. |
This file contains 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
<?php | |
/** | |
* @Get("/{id:[0-9]+}") | |
* @AclAllow("scopes"={"basic"}) | |
*/ | |
public function getAction($id) | |
{ | |
Filter::on($this, __FUNCTION__, func_get_args(), function($chain) { | |
This file contains 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
[2015-05-15 18:31:35] local.ERROR: exception 'ReflectionException' with message 'Class cache does not exist' in /Users/fernandez104/Documents/AdmitOne/admitone/vendor/laravel/framework/src/Illuminate/Container/Container.php:776 | |
Stack trace: | |
#0 /Users/fernandez104/Documents/AdmitOne/admitone/vendor/laravel/framework/src/Illuminate/Container/Container.php(776): ReflectionClass->__construct('cache') | |
#1 /Users/fernandez104/Documents/AdmitOne/admitone/vendor/laravel/framework/src/Illuminate/Container/Container.php(656): Illuminate\Container\Container->build('cache', Array) | |
#2 /Users/fernandez104/Documents/AdmitOne/admitone/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(644): Illuminate\Container\Container->make('cache', Array) | |
#3 /Users/fernandez104/Documents/AdmitOne/admitone/vendor/laravel/framework/src/Illuminate/Container/Container.php(1231): Illuminate\Foundation\Application->make('cache') | |
#4 /Users/fernandez104/Documents/AdmitOne/admitone/vendor/laravel/framework/src/Illuminate/Session/Se |
This file contains 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
forever start -c php app/cli.php index neighborhoods |
NewerOlder