Skip to content

Instantly share code, notes, and snippets.

wesruv wesruv

Block or report user

Report or block wesruv

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:c426a2792924b09ffaa23f28a69686c5
$databases['default']['default'] = array(
'driver' => 'mysql',
'database' => 'defaultdatabase',
'username' => 'root',
'password' => '',
'host' => 'localhost',
$conf['theme_debug'] = true;
View gist:6095aca5ed111fa15524a3fe615f1184
request.js:117 OPTIONS ClientRequest._onFinish @ request.js:117(anonymous function) @ request.js:59EventEmitter.emit @ events.js:74finishMaybe @ _stream_writable.js:475afterWrite @ _stream_writable.js:361afterTick @ @ browser.js:64drainQueue @ browser.js:34
:3000/our-work:1 Fetch API cannot load Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin '' 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 failed, reason: Failed to fetch(…)
View gist:8ee696287d3659da3ec81257c9a7a945
# Production #
#NODE_ENV = production
#PORT = 80
View gist:e7a3cf20d8b3e8dd681116606fedb595
Running "filerev_assets:dist" (filerev_assets) task
File .filerev created.
Running "env:dev" (env) task
Verifying property exists in config...ERROR
>> Unable to process task.
Warning: Required config property "" missing. Use --force to continue.
Aborted due to warnings.
View gist:9fb293d59d84ef73120bf6da312bc1bc
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! 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
wesruv / SassMeister-input.scss
Last active Feb 1, 2019
Generated by
View SassMeister-input.scss
// ----
// Sass (v3.4.20)
// Compass (v1.0.3)
// ----
// See in action @
// Mixin to make-up for bad VH support in iOS
// @param {string} $property - CSS Property to style
View gist:fb8d47a7d0c0a65e2855
* 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) {
wesruv / SassMeister-input.scss
Created Sep 20, 2015
Generated by
View SassMeister-input.scss
// ----
// Sass (v3.3.14)
// Compass (v1.0.3)
// ----
$breakpoints: (
echo: 400px,
hotel: 600px,
kilo: 800px,
november: 1000px,
wesruv / generic-toggle.html
Last active Sep 19, 2015
Generic Toggle JS for Drupal 7
View generic-toggle.html
<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>
View scrollhandler.jsx
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
var scrollDirection = Math.max(-1, Math.min(1, (e.wheelDelta || -e.detail)));
var scrollDistance = null;
var scrollStrength = null;
var hasInertialScroll = false;
You can’t perform that action at this time.