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
jQuery(function () { | |
var Accordion = { | |
init: function (targetContainer) { | |
var _self = this; | |
this.accordion = jQuery(targetContainer); | |
this.details = this.accordion.find('div'); | |
this.details.hide(); | |
this.accordion.on('click', 'h2', function () { _self.show(this) } ) | |
}, |
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
<?php | |
$signed_request=$_REQUEST["signed_request"]; | |
list($encoded_sig, $payload) = explode('.', $signed_request, 2); | |
$data = json_decode(base64_decode(strtr($payload, '-_', '+/')), true); | |
if ($data['page']['liked'] == '1') { ?> | |
<p>You like it!</p> | |
<?php } else { ?> | |
<p>You don't like it!</p> | |
<? } ?> |
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
find . -type d -d 1 -exec echo git --git-dir={}/.git --work-tree=$PWD/{} status \; |
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 css-triangle($direction:'left',$size:5px, $color:$black) { | |
width: 0; | |
height: 0; | |
position:absolute; | |
content: " "; | |
left:0; | |
top:0; | |
@if $direction == 'left' { | |
border-top: $size solid transparent; |