Skip to content

Instantly share code, notes, and snippets.

View wesruv's full-sized avatar
🤔
Why can I have a status?

wesruv wesruv

🤔
Why can I have a status?
View GitHub Profile
Warning: Failed Context Types: Required context `router` was not specified in `Link`. Check the render method of `ALink`.
/var/www/lullabot.com/node_modules/fibers/future.js:245
throw(ex);
^
TypeError: Cannot read property 'makeHref' of undefined
at Link.getHref (/var/www/lullabot.com/node_modules/react-router/lib/components/Link.js:74:33)
at Link.render (/var/www/lullabot.com/node_modules/react-router/lib/components/Link.js:99:20)
at [object Object].ReactCompositeComponentMixin._renderValidatedComponentWithoutOwnerOrContext (/var/www/lullabot.com/node_modules/react/lib/ReactCompositeComponent.js:789:34)
at [object Object].ReactCompositeComponentMixin._renderValidatedComponent (/var/www/lullabot.com/node_modules/react/lib/ReactCompositeComponent.js:816:14)
at [object Object].wrapper [as _renderValidatedComponent] (/var/www/lullabot.com/node_modules/react/lib/ReactPerf.js:70:21)
$ npm run start:dev
> lullabot.com-www@0.0.0 start:dev /var/www/lullabot.com
> npm run grunt -- serve
> lullabot.com-www@0.0.0 grunt /var/www/lullabot.com
> grunt "serve"
Running "concurrent:serve" (concurrent) task
<VirtualHost *:80>
# The ServerName directive sets the request scheme, hostname and port that
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the ServerName
# specifies what hostname must appear in the request's Host: header to
# match this virtual host. For the default virtual host (this file) this
# value is not decisive as it is used as a last resort host regardless.
# However, you must set it for any further virtual host explicitly.
ServerName l.backdropcms.org
revealHandleMouseScroll: function(e) {
var now = new Date().getTime();
var revealLastRun = this.state.revealLastRun;
var revealLastScrollEvent = now - this.state.revealLastScrollEvent;
var revealLastScrollEventStrength = this.state.revealLastScrollEventStrength;
// Scroll direction is from sitepoint.com/html5-javascript-mouse-wheel/
var scrollDirection = Math.max(-1, Math.min(1, (e.wheelDelta || -e.detail)));
var scrollDistance = null;
var scrollStrength = null;
var hasInertialScroll = false;
@wesruv
wesruv / generic-toggle.html
Last active September 19, 2015 17:46
Generic Toggle JS for Drupal 7
<a href="#" class="js-dropdown__toggle">Toggle Link</a>
<div class="js-dropdown__wrapper">
<h3>Toggleable Content</h3>
<p>Can have other wrappers, but no tag should be between the toggle link and toggle wrapper.</p>
</div>
@wesruv
wesruv / SassMeister-input.scss
Created September 20, 2015 19:00
Generated by SassMeister.com.
// ----
// Sass (v3.3.14)
// Compass (v1.0.3)
// ----
$breakpoints: (
echo: 400px,
hotel: 600px,
kilo: 800px,
november: 1000px,
/**
* Returns HTML for the user login form
*/
function theme_user_form_render($variables) {
if (arg(0) == 'user') {
if (strcasecmp('password', arg(1)) == 0) {
$title = t('Username and Password Recovery');
$prefix_text = '';
}
elseif (strcasecmp('settings', arg(1)) == 0) {
npm ERR! Linux 3.19.0-26-generic
npm ERR! argv "node" "/usr/local/bin/npm" "install"
npm ERR! node v0.12.7
npm ERR! npm v2.11.2
npm ERR! code EBADPLATFORM
npm ERR! notsup Unsupported
npm ERR! notsup Not compatible with your operating system or architecture: fsevents@1.0.11
npm ERR! notsup Valid OS: darwin
npm ERR! notsup Valid Arch: any
Running "filerev_assets:dist" (filerev_assets) task
File .filerev created.
Running "env:dev" (env) task
Verifying property env.dev exists in config...ERROR
>> Unable to process task.
Warning: Required config property "env.dev" missing. Use --force to continue.
Aborted due to warnings.
request.js:117 OPTIONS http://l.lullabot.com/api-proxy ClientRequest._onFinish @ request.js:117(anonymous function) @ request.js:59EventEmitter.emit @ events.js:74finishMaybe @ _stream_writable.js:475afterWrite @ _stream_writable.js:361afterTick @ index.js:18Item.run @ browser.js:64drainQueue @ browser.js:34
:3000/our-work:1 Fetch API cannot load http://l.lullabot.com/api-proxy. Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://l.lullabot.com:3000' is therefore not allowed access. The response had HTTP status code 404. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
index.js:124 Uncaught (in promise) Error: request to http://l.lullabot.com/api-proxy failed, reason: Failed to fetch(…)