This file contains 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
<style> | |
.fb-share-button { | |
background: #4c69ba; | |
background: -webkit-gradient(linear, center top, center bottom, from(#4c69ba), to(#3b55a0)); | |
background: -webkit-linear-gradient(#4c69ba, #3b55a0); | |
background: gradient(linear, center top, center bottom, from(#4c69ba), to(#3b55a0)); | |
background: linear-gradient(#4c69ba, #3b55a0); | |
border: none; | |
-webkit-border-radius: 2px; | |
color: #fff; |
This file contains 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
<style> | |
.tw-share-button { | |
white-space: nowrap; | |
position: relative; | |
background-color: #eee; | |
background-image: -webkit-linear-gradient(#fff,#dedede); | |
background-image: linear-gradient(#fff,#dedede); | |
border: #ccc solid 1px; | |
border-radius: 3px; | |
color: #333; |
This file contains 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
.custom-select { | |
-webkit-appearance: none; | |
-moz-appearance: window; | |
appearance: none; | |
border-radius: 0; | |
background: transparent; | |
text-indent: 0.01px; | |
text-overflow: ''; |
This file contains 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
/* | |
This adds the desired character as an overlayed icon vertically and horizontally | |
centered on the element. | |
This uses the :after pseudo element so this element is not usable afterwards. | |
*/ | |
@mixin fontIcon($font, $char, $size) { | |
&:after { | |
// character related to the desired icon | |
content: $char; |
This file contains 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
$veryBigWidth: 100rem; | |
$veryBigHeight: 100rem; | |
@mixin transition-hide { | |
transition: opacity 0.5s ease; | |
visibility: hidden; | |
opacity: 0; | |
max-height: 0; | |
max-width: 0; |
This file contains 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
export PS1="\\[$(tput setaf 6)\\]\\u:\\w #\\[$(tput sgr0)\\] " |
This file contains 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 shadow-border-top($size: 10px) { | |
&:before { | |
content: ""; | |
width: 100%; | |
height: $size; | |
display: block; | |
top: 0; | |
position: absolute; | |
background: linear-gradient(to top, transparent 0%, rgba(0, 0, 0, 0.09) 75%, white 88%, white 100%) no-repeat; | |
background-position: 0 -$size / 2; |
This file contains 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
{ | |
"Statement": [ | |
{ | |
"Action": [ | |
"s3:ListAllMyBuckets" | |
], | |
"Effect": "Allow", | |
"Resource": "arn:aws:s3:::*" | |
}, | |
{ |
This file contains 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 dd if=/dev/zero of=/var/swapfile bs=1M count=2048 | |
sudo chmod 600 /var/swapfile | |
sudo mkswap /var/swapfile | |
echo /var/swapfile none swap defaults 0 0 | sudo tee -a /etc/fstab | |
sudo swapon -a |
This file contains 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
public function sendPush($token, $collapseKey, $title, $messageText) { | |
if(!is_array($token)) { | |
$token = array($token); | |
} | |
App::uses('HttpSocket', 'Network/Http'); | |
$HttpSocket = new HttpSocket(); | |
$data = array( | |
'registration_ids' => $token, |
OlderNewer