Skip to content

Instantly share code, notes, and snippets.

Sean Walsh seanwalsh

Block or report user

Report or block seanwalsh

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 Pivotal Tracker: Sources Template (web)
## Sources
**User Flow**:
**Data Source(s)**:
**Path**:
**Comp Desktop**:
**Comp Mobile**:
## Content
A list of content, where to get the content or description of when the content will be available.
View gist:00f16f39444b6a54d6aa1cd7fe76d2fd
<li class="bookmark-value">
<a href="#">
<span class="visually-hidden">0 bookmarks</span>
<span aria-hidden="true">0</span>
</a>
</li>
View gist:f3db03cb1e3bd4cfce7e0b7bb220a09b
@each $item in $map {
$key: nth($item, 1);
$value: nth($item, 2);
@if $value != FALSE {
#{$key}: $value; }
}
@seanwalsh
seanwalsh / example.html
Created Jul 1, 2017
Example of a good anchor link text
View example.html
<a href="#">download <i>War & Peace</i></a>
@seanwalsh
seanwalsh / info.md
Created Sep 19, 2016
Wordpress Migration to Google VM
View info.md

To migrate a Wordpress site all we need is super-admin rights. We do not need FTP nor database access. The

Prepare Source Install

  • Deactivate all security plugins
    • make sure other plugins are up-to-date
  • make sure that wp-admin is accessible
  • install All-in-One WP Migration plugin
  • export site
  • note plugins
@seanwalsh
seanwalsh / rails.md
Last active Nov 10, 2016
Notes for Ruby on Rails
View rails.md

Rails Commands

rails g migration RemoveFieldFromTable field:type
rails g migration RenameBreedToBreedNameInCats

Rake Commands

rake db:setup
rake db:migrate
rake db:seed
View .htaccess
RewriteEngine On
# REWRITE FROM WWW.EXAMPLE.COM TO EXAMPLE.COM
RewriteCond %{HTTP_HOST} ^www.example.com$ [NC]
RewriteRule ^(.*)$ http://example.com/$1 [R=301,L]
# REDIRECT HOMEPAGE TO /THIS-WEEK/ UNTIL HOMEPAGE IS CREATED
Redirect /index.php http://example.com/this-week/
#REWRITE ITEM/? TO THE INDEX FILE
@seanwalsh
seanwalsh / ToggleBoolean ( field )
Created Jan 10, 2016
FileMaker custom function.
View ToggleBoolean ( field )
Case ( field = 1; 0; 1 )
View code.md

JavaScript

for (i=0; i < n; i++) {
 // code
}

PHP

for ($i = 0; $i < $n; $i++) {
View FileMaker tooltip to return name of the field
Right ( GetFieldName ( Self ) ; Length ( GetFieldName ( Self ) ) - Position ( GetFieldName ( Self ) ; ":" ; 1 ; 2 ) )
You can’t perform that action at this time.