Skip to content

Instantly share code, notes, and snippets.

72 <!--[if IEMobile 7]><html class="iem7" <?php print $html_attributes; ?>><![endif]-->
73 <!--[if lte IE 6]><html class="lt-ie9 lt-ie8 lt-ie7" <?php print $html_attributes; ?>><![endif]-->
74 <!--[if (IE 7)&(!IEMobile)]><html class="lt-ie10 lt-ie9 lt-ie8" <?php print $html_attributes; ?>><![endif]-->
75 <!--[if IE 8]><html class="lt-ie10 lt-ie9 ie" <?php print $html_attributes; ?>><![endif]-->
76 <!--[if (IE 9)|(gt IEMobile 7)]><!--><html <?php print $html_attributes . $rdf_namespaces; ?> class="lt-ie10 ie9 ie"><!--<![endif]-->
77 <!--[if IE 10]><!--><html <?php print $html_attributes . $rdf_namespaces; ?> class="ie10 ie"><!--<![endif]-->
$ npm install
npm ERR! Error: No compatible version found: grunt-deployments@'>=0.1.5- <0.2.0-'
npm ERR! No valid targets found.
npm ERR! Perhaps not compatible with your version of node?
npm ERR! at installTargetsError (/usr/local/lib/node_modules/npm/lib/cache.js:424:10)
npm ERR! at /usr/local/lib/node_modules/npm/lib/cache.js:406:17
npm ERR! at saved (/usr/local/lib/node_modules/npm/lib/utils/npm-registry-client/get.js:136:7)
npm ERR! at Object.cb [as oncomplete] (/usr/local/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:36:9)
npm ERR! Report this *entire* log at:
npm ERR! <http://github.com/isaacs/npm/issues>
chadsten@chadsten-ubuntu-desktop [/usr/local/include]
$ sudo npm install
npm ERR! install Couldn't read dependencies
npm ERR! Error: ENOENT, open '/usr/local/include/package.json'
npm ERR! If you need help, you may report this log at:
npm ERR! <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR! <npm-@googlegroups.com>
npm ERR! System Linux 3.2.0-53-generic
/* Older Method
/* It's not bad, just harder to maintain
/* and can be a pain when doing true RWD
*/
/* @file style.css */
.something {
font-size: 12px;
}
<?php
function get_users($type = 'all', $status = 'all' , $state = 'all', $county = 'all') {
$query = "SELECT * from users";
$result = db_query($query);
foreach ($result as $user) {
$users[] = $user->uid;
}
<? // request the array of UID and criteria information
$users = get_user_entities(get_users());
foreach ($users as $user) {
dpm($user);
foreach ($user->collections as $collection) {
// we only check to see if it's been set by the user and doesn't match,
// so we catch matches and unsets if no continues are met in the ifs
if (isset($collection->field_listing_type[LANGUAGE_NONE][0]['value'] && $collection->field_listing_type[LANGUAGE_NONE][0]['value'] !== $listing['type']) {
@chadsten
chadsten / article-view-output.html
Last active December 27, 2015 00:29
I left views-row classes in for now, since we're doing funky things with the 1st and 6th article in the view.
<div class="view-content">
<div class="views-row views-row-1 views-row-odd views-row-first views-row-last">
<div class="field-image">
<img typeof="foaf:Image" src="http://centerforfaithandwork.local/sites/default/files/styles/article_full/public/field/image/61014_orig.jpg?itok=gbusSbQE" alt="star wars">
</div>
<div class="field-logo">
<img typeof="foaf:Image" src="http://centerforfaithandwork.local/sites/default/files/styles/source_logo/public/images/sources/saber.jpg?itok=BA9QZ3DN" width="76" height="76" alt="">
</div>
[Wed Nov 06 20:21:22 2013] [error] [client 127.0.0.1] PHP Fatal error: Maximum execution time of 30 seconds exceeded in /var/www/html/accounts/peterscars/public_html/modules/field/field.info.class.inc on line 539, referer: http://peterscars.anakin.encoredemo.com/inventory-list/
[Wed Nov 06 20:24:46 2013] [error] [client 127.0.0.1] PHP Fatal error: Maximum execution time of 30 seconds exceeded in /var/www/html/accounts/peterscars/public_html/sites/all/modules/memcache/dmemcache.inc on line 44, referer: http://peterscars.anakin.encoredemo.com/inventory-list
[Wed Nov 06 20:30:37 2013] [error] [client 127.0.0.1] PHP Fatal error: Maximum execution time of 30 seconds exceeded in /var/www/html/accounts/peterscars/public_html/modules/field/field.attach.inc on line 0, referer: http://peterscars.anakin.encoredemo.com/inventory-list/
[Wed Nov 06 20:35:01 2013] [error] [client 127.0.0.1] PHP Fatal error: Maximum execution time of 30 seconds exceeded in /var/www/html/accounts/peterscars/public_html/includes/common.inc
<script>jQuery.extend(Drupal.settings, {"basePath":"\u002F", "pathPrefix":"", "ajaxPageState":{"theme":"main", "theme_token":"ObMuKkZRZUFXU58Sbr2pdm9drHCcBxyduQONnqeazQY", "js":{"sites\u002Fall\u002Fmodules\u002Fpicture\u002Fpicturefill\u002Fmatchmedia.js":1, "sites\u002Fall\u002Fmodules\u002Fpicture\u002Fpicturefill\u002Fpicturefill.js":1, "sites\u002Fall\u002Fmodules\u002Fpicture\u002Fpicture.js":1, "https:\u002F\u002Fajax.googleapis.com\u002Fajax\u002Flibs\u002Fjquery\u002F1.7.1\u002Fjquery.min.js":1, "0":1, "misc\u002Fjquery.once.js":1, "misc\u002Fdrupal.js":1, "https:\u002F\u002Fajax.googleapis.com\u002Fajax\u002Flibs\u002Fjqueryui\u002F1.10.2\u002Fjquery-ui.min.js":1, "1":1, "sites\u002Fall\u002Fmodules\u002Fjquery_update\u002Freplace\u002Fui\u002Fexternal\u002Fjquery.cookie.js":1, "sites\u002Fall\u002Fmodules\u002Fajax_term_filter\u002Fscript.js":1, "sites\u002Fall\u002Fmodules\u002Fcontext_breakpoint\u002Fcontext_breakpoint.js":1, "sites\u002Fall\u002Fmodules\u002Finventory_exposed_filters\u002Fscript
<script>jQuery.extend(Drupal.settings, {"basePath":"\u002F", "pathPrefix":"", "ajaxPageState":{"theme":"main", "theme_token":"PkDNb6o2DS-TvXjELPWj75hV8z08DDev2qZvimCqaXI", "js":{"sites\u002Fall\u002Fmodules\u002Fpicture\u002Fpicturefill\u002Fmatchmedia.js":1, "sites\u002Fall\u002Fmodules\u002Fpicture\u002Fpicturefill\u002Fpicturefill.js":1, "sites\u002Fall\u002Fmodules\u002Fpicture\u002Fpicture.js":1, "https:\u002F\u002Fajax.googleapis.com\u002Fajax\u002Flibs\u002Fjquery\u002F1.7.1\u002Fjquery.min.js":1, "0":1, "misc\u002Fjquery.once.js":1, "misc\u002Fdrupal.js":1, "https:\u002F\u002Fajax.googleapis.com\u002Fajax\u002Flibs\u002Fjqueryui\u002F1.10.2\u002Fjquery-ui.min.js":1, "1":1, "sites\u002Fall\u002Fmodules\u002Fjquery_update\u002Freplace\u002Fui\u002Fexternal\u002Fjquery.cookie.js":1, "sites\u002Fall\u002Fmodules\u002Fajax_term_filter\u002Fscript.js":1, "sites\u002Fall\u002Fmodules\u002Fcontext_breakpoint\u002Fcontext_breakpoint.js":1, "sites\u002Fall\u002Fmodules\u002Finventory_exposed_filters\u002Fscript