This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use wp_genesis; | |
SELECT ID, user_login, user_pass FROM wp_users; | |
UPDATE wp_users SET user_pass = MD5('TEST') WHERE ID=1 LIMIT 1; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mysql -u username -p | |
use database_name; | |
SOURCE /path/to/sql/file.sql | |
show tables; | |
select * from table; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install --reinstall nodejs-legacy # fix /usr/bin/node | |
sudo n rm 6.0.0 # replace number with version of Node that was installed | |
sudo npm uninstall -g n |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.btn-next{ | |
text-transform: uppercase; | |
font-size: 13px; | |
position: relative; | |
margin-top: 25px; | |
display: inline-block; | |
&:after { | |
position: relative; | |
top: -2px; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@mixin prefix($property, $value, $prefixes: ()) { | |
@each $prefix in $prefixes { | |
#{'-' + $prefix + '-' + $property}: $value; | |
} | |
// Output standard non-prefixed declaration | |
#{$property}: $value; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a, | |
.trans, | |
.alert, | |
.btn, | |
button, | |
svg path, | |
svg polygon{ | |
@include prefix(transition, all 200ms cubic-bezier(0.025, 0.185, 0.000, 0.590), webkit moz ms o); | |
@include prefix(transition-timing-function, cubic-bezier(0.025, 0.185, 0.000, 0.590), webkit moz ms o); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@mixin linear-gradient($direction, $color-stops...) { | |
// Direction has been omitted and happens to be a color-stop | |
@if is-direction($direction) == false { | |
$color-stops: $direction, $color-stops; | |
$direction: 180deg; | |
} | |
background: nth(nth($color-stops, 1), 1); | |
background: -webkit-linear-gradient($direction, $color-stops); | |
background: linear-gradient($direction, $color-stops); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@mixin radial-gradient($from, $to) { | |
background: -moz-radial-gradient(center, circle cover, $from 0%, $to 100%); | |
background: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(0%, $from), color-stop(100%, $to)); | |
background: -webkit-radial-gradient(center, circle cover, $from 0%, $to 100%); | |
background: -o-radial-gradient(center, circle cover, $from 0%, $to 100%); | |
background: -ms-radial-gradient(center, circle cover, $from 0%, $to 100%); | |
background: radial-gradient(center, circle cover, $from 0%, $to 100%); | |
background-color: $from; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// create and save | |
$entity = Entity::create($values); | |
$entity = Entity::load($id); | |
$entities = Entity::loadMultiple($ids); | |
$entity->save(); | |
$entity->delete(); | |
$entity_id = $entity->id(); | |
$bundle = $entity->bundle(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% if 'full-width' not in options and bundle != 'fullcta' and bundle != 'home_intro' %} | |
{% set container = 'container' %} | |
{% endif %} |
NewerOlder