I hereby claim:
- I am zachattack on github.
- I am hanzouzach (https://keybase.io/hanzouzach) on keybase.
- I have a public key ASBrJ82vqjj04B61UfelKgBVsyaNndg2imm9_9AnskHZQAo
To claim this, I am signing this object:
function descendingOrder(n){ | |
// Store your string manipulation in a results variable. | |
let results; | |
// Make sure the number isn't negative. | |
if(n>=0) { | |
return Number(results = String(n).split('').sort().reverse().join("")); | |
} | |
return false; | |
} |
I hereby claim:
To claim this, I am signing this object:
If you have custom content types that you want to migrate from a Drupal 7 installation to a WordPress installation, you will need to have a few things in place to make it happen.
Modify the default XML output templates to look and smell like a WordPress export.
Mapping Categories If you have unique categories and you want them to match up with taxonomy that you have created on your new site, you will need intercept the categories that are presently applied and overwrite them.
Create the needed Drupal views
<title><YOUR TITLE HERE> | University of TEXAS at Austin</title> | |
<meta property="og:title" content="<YOUR TITLE HERE>" /> | |
<meta name="author" content="<SITE or POST AUTHOR>" /> | |
<meta property="og:locale" content="en" /> | |
<meta name="description" content="<POST SUMMARY or DEFAULT SITE DESCRIPTION>" /> | |
<meta property="og:description" content="<POST SUMMARY or DEFAULT SITE DESCRIPTION>" /> | |
<link rel="canonical" href="<SITE URL>" /> | |
<meta property="og:url" content="<SITE URL>" /> | |
<meta property="og:site_name" content="<SITE NAME>" /> | |
<meta property="og:image" content="<SITE URL>/path/to/iamges.jpg" /> |
// Gulp.js configuration | |
'use strict'; | |
const | |
// source and build folders | |
dir = { | |
src : './static/', | |
lib : './static/lib/', | |
build : './assets/' |
/* | |
FROM CSS Tricks 2013 | |
https://css-tricks.com/snippets/css/style-placeholder-text/ | |
*/ | |
::-webkit-input-placeholder { | |
color: red; | |
} | |
:-moz-placeholder { /* Firefox 18- */ |
for a in *.audio ; do | |
f="${a[@]/%audio/mp3}" | |
ffmpeg -i "$a" -acodec libmp3lame -q:a 0 "$f" | |
done |
// This goes into your template.php file | |
function YOURTHEME_preprocess_html(&$variables, $hook) { | |
// Add a title variable to the html template that uses the current node's title. | |
if ($node = menu_get_object()) { | |
$variables['html_title'] = $node->title; | |
} | |
// Use the theme's logo as the og:image. | |
$variables['html_logo'] = theme_get_setting('logo'); | |
} |
function YOURTHEME_preprocess_block(&$variables, $hook) { | |
// Unset the block titles in the region of choice. | |
if ($variables['block']->region == 'region-you-target') { | |
unset($variables['block']->subject); | |
} | |
} |
// Custom search form tweaking funciton. | |
function YOURTHEME_form_alter(&$form, &$form_state, $form_id) { | |
if ($form_id == 'search_block_form') { | |
$form['search_form']['#title'] = t('Search'); // Change the text on the label element | |
$form['search_form']['#title_display'] = 'invisible'; // Toggle label visibilty | |
$form['search_form']['#size'] = 40; // define size of the textfield | |
$form['search_form']['#default_value'] = t('Search'); // Set a default value for the textfield | |
//$form['actions']['submit']['#value'] = t('GO!'); // Change the text on the submit button | |
//$form['actions']['submit'] = array('#type' => 'image_button', '#src' => base_path() . path_to_theme() . '/images/search-button.png'); |