Skip to content

Instantly share code, notes, and snippets.

View jhonnrodr's full-sized avatar
🏠
Working from home

Jhonn Rodriguez jhonnrodr

🏠
Working from home
  • Remote
View GitHub Profile
@jhonnrodr
jhonnrodr / box-shadow.html
Created June 7, 2021 21:14 — forked from ocean90/box-shadow.html
CSS3 Box Shadow, only top/right/bottom/left and all
<!DOCTYPE html>
<html>
<head>
<title>Box Shadow</title>
<style>
.box {
height: 150px;
width: 300px;
margin: 20px;
@jhonnrodr
jhonnrodr / share-urls.md
Created August 26, 2020 21:13 — forked from apisandipas/share-urls.md
Share url's for Facebook, Twitter, Pinterest and Linkedin with just get variables

Creating share buttons with just URL's

Twitter

http://twitter.com/share?text=<TITLE>&url=<URL>

E.g. http://twitter.com/share?text=This+is+google+a+search+engine&url=https%3A%2F%2Fwww.google.com

Facebook

http://www.facebook.com/sharer.php?u=&amp;p[title]=

// Disable the payment/submit button until everything has loaded
// (if Stripe fails to load, we can't progress anyway)
$(document).ready(function() {
$("#payment-button").prop('disabled', false)
})
var handler = StripeCheckout.configure("customButtonA", {
key: '<yourpublishablekey',
token: function(token, args){
var $input = $('<input type=hidden name=stripeToken />').val(token.id);
$webservice = file_get_contents("http://graph.facebook.com/linc.do");
$json = json_decode($webservice);
var_dump($json->likes);