Skip to content

Instantly share code, notes, and snippets.

View micahredding's full-sized avatar

Micah Redding micahredding

View GitHub Profile
@micahredding
micahredding / zshrc_aliases
Last active January 24, 2020 20:51
Add these aliases to zshrc
#### PERSONAL ALIASES #####
# GIT - https://thomashunter.name/blog/git-colored-output-shortcut-commands-autocompletion-and-bash-prompt/
alias ga='git add'
alias gp='git push'
alias gl='git log'
alias gs='git status'
alias gd='git diff'
alias gm='git commit -m'
alias gma='git commit -am'
alias gb='git branch'
Verifying my Blockstack ID is secured with the address 1NxWi1SL1SrWV2adVo2RjZR9stEri4tvWz https://explorer.blockstack.org/address/1NxWi1SL1SrWV2adVo2RjZR9stEri4tvWz

| Time | Title | Speaker | | 9:00 AM | Welcome | Chris Bradford | | 9:10 AM | Open Thou Mine Eyes | Chris Bradford | | 9:30 AM | The Future of the Mormon Transhumanist Association | Michaelann Bradley | | 9:50 AM | Being Christ in Name and Power | Lincoln Cannon | | 10:10 AM | Changing Our Minds | Bryan Johnson | | 10:40 AM | Break | | | 11:00 AM | "Lightning in a Bottle": The Technology of Religious Organization | Melissa Inouye | | 12:00 PM | Lunch | | | 1:00 PM | After anthropos: humanistic social science in a post-human milieu | Jon Bialecki |

@micahredding
micahredding / click_to_tweet.html
Last active July 14, 2016 17:06
Tweet This Link
<p>
AWESOME SENTENCE WORTH SHARING
<a href="https://twitter.com/intent/tweet?text=AWESOME SENTENCE WORTH SHARING&url=http://THE_URL_TO_SHARE&via=YOUR_TWITTER_ACCOUNT">
(click to tweet)
</a>
</p>
@micahredding
micahredding / gist:8458026
Created January 16, 2014 16:28
Expanding preview markup
<ul id="og-grid" class="og-grid">
<li>
<a href="http://cargocollective.com/jaimemartinez/" data-largesrc="images/1.jpg" data-title="Azuki bean" data-description="Swiss chard pumpkin bunya nuts maize plantain aubergine napa cabbage soko coriander sweet pepper water spinach winter purslane shallot tigernut lentil beetroot.">
<img src="images/thumbs/1.jpg" alt="img01"/>
</a>
</li>
</ul>
@micahredding
micahredding / page.tpl.php
Last active December 31, 2015 02:09
Next and Previous Nodes
<?php if($next_node): ?>
<a href="node/<?php print $next_node; ?>">Next Node</a>
<?php endif; ?>
@micahredding
micahredding / snippet.php
Created December 11, 2013 20:50
EntityFieldQuery
$query = new EntityFieldQuery();
$entities = $query->entityCondition('entity_type', 'node')
->entityCondition('bundle', 'client')
->propertyCondition('status', 1)
->fieldCondition('field_client_user', 'value', $user->uid, 'EQUALS')
->execute();
@micahredding
micahredding / Gruntfile.js
Last active December 31, 2015 01:29
Gruntfile, with package.json. Handles sass, coffeescript, and image optimization. You should probably add .sass-cache and node_modules to .gitignore.
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
watch: {
sass: {
files: ['assets/scss/**/*.{scss,sass}','assets/scss/_partials/**/*.{scss,sass}'],
tasks: ['sass:dist']
},
coffee: {
files: ['assets/coffee/*.coffee'],
@micahredding
micahredding / script.coffee
Created December 11, 2013 11:47
Coffeescript that didn't work for some reason, with the Javascript that did
# namespace jQuery
(($) ->
# Document.ready
$ ->
switchColorbox = () ->
if $(window).width() < 1000
$.colorbox.remove()
else
@micahredding
micahredding / gist:7795335
Created December 4, 2013 20:54
Block examples
# New Code, which includes configure and variable set
function psod_settings_block_info() {
$blocks = array();
$blocks['trainers'] = array(
'info' => 'Trainers',
'cache' => DRUPAL_NO_CACHE,
);
$blocks['employees'] = array(
'info' => 'Employees',
'cache' => DRUPAL_NO_CACHE,