Skip to content

Instantly share code, notes, and snippets.

View joesebastian6079's full-sized avatar

Joe Sebastian joesebastian6079

  • PlucTV
  • New Delhi
View GitHub Profile
@SethBuilder
SethBuilder / story.blade.php
Created December 27, 2019 13:40
This Laravel Blade AMP page creates Instagram-like stories like this: https://envago.io/story/top-10-adventure-trips-in-oman
<!doctype html>
<html ⚡>
<head>
<meta charset="utf-8">
<title>{{$story->title}} | {{env('APP_NAME')}}</title>
<meta name="description" content="{{$story->title}}. Discover travel trends around the Middle East.">
<meta name="keywords" content="travel, adventures, Hiking, Abseiling, Caving, Air Balloon, Camping, Expeditions, Discover travel trends around the Middle East">
<meta name="author" content="Seif Elmughrabi">
<link rel="canonical" href="{{env('APP_URL')}}/story/{{$story->slug}}">
@CodeMyUI
CodeMyUI / index.html
Created May 2, 2017 01:46
Responsive client list with project archive
<div class="client-wrap">
<!-- For the demo -->
<div class="toggle-container">
<div class="hover toggle-wrap">
<span class="toggle">Low opacity </span>
<div class="toggle-switch">
<div class="switch"></div>
</div>
</div>
@nickcernis
nickcernis / mailchimp-popup-for-wordpress.md
Last active July 28, 2022 14:49
MailChimp Popup Script that works with WordPress sites

MailChimp's default popup scripts can break on WordPress sites that use jQuery/jQuery UI unless you include their embed code as the final elements before the closing body tag.

Including them in this way isn't always possible or easy with WordPress.

The code below is an alternative implementation of the loader that forces MailChimp's popup scripts to appear below all other scripts upon page load.

To use it, modify the baseUrl, uuid, and lid attributes with the ones from the original popup script that MailChimp supplies.

@Mikodes
Mikodes / gist:be9b9ce42e46c3d4ccb6
Created November 26, 2014 10:30
All Media queries for resolutions
/* (320x480) iPhone (Original, 3G, 3GS) */
@media only screen and (min-device-width: 320px) and (max-device-width: 480px) {
/* insert styles here */
}
/* (320x480) Smartphone, Portrait */
@media only screen and (device-width: 320px) and (orientation: portrait) {
/* insert styles here */
}
@parth1020
parth1020 / Google Maps Simple Multiple Marker Example
Created January 8, 2013 07:04
Google Maps Simple Multiple Marker Example
<html>
<head>
<title>Google Maps Multiple Markers</title>
<script src="http://maps.google.com/maps/api/js?sensor=false" type="text/javascript"></script>
</head>
<body>
<div id="map" style="height: 400px; width: 500px;">
</div>
<script type="text/javascript">
@pitch-gist
pitch-gist / gist:2999707
Created June 26, 2012 22:21
HTML: Simple Maintenance Page
<!doctype html>
<title>Site Maintenance</title>
<style>
body { text-align: center; padding: 150px; }
h1 { font-size: 50px; }
body { font: 20px Helvetica, sans-serif; color: #333; }
article { display: block; text-align: left; width: 650px; margin: 0 auto; }
a { color: #dc8100; text-decoration: none; }
a:hover { color: #333; text-decoration: none; }
</style>
@visnup
visnup / lock.css
Created May 5, 2012 20:31
"lock" orientation of a website for mobile (iPad, iPhone)
/* if portrait mode is detected, rotate the entire site -90 degrees to hint rotating to landscape */
@media (orientation: portrait) {
body {
-webkit-transform: rotate(-90deg);
-moz-transform: rotate(-90deg);
-o-transform: rotate(-90deg);
-ms-transform: rotate(-90deg);
transform: rotate(-90deg);
}
}
@lancejpollard
lancejpollard / meta-tags.md
Created March 5, 2012 13:54
Complete List of HTML Meta Tags

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

Basic HTML Meta Tags

<meta name="keywords" content="your, tags"/>
<meta name="description" content="150 words"/>
<meta name="subject" content="your website's subject">
<meta name="copyright"content="company name">
<meta name="language" content="ES">
@BDQ
BDQ / bogo.rb
Created February 10, 2012 16:59 — forked from anonymous/bogo.rb
module Spree
class Calculator::Bogo < Calculator
preference :number_to_buy, :integer, :default => 1
preference :number_to_get, :integer, :default => 1
def self.description
"Buy One Get One"
end
def compute(order)
anonymous
anonymous / bogo.rb
Created February 10, 2012 00:45
class Calculator::Bogo < Calculator
preference :number_to_buy, :integer, :default => 1
preference :number_to_get, :integer, :default => 1
def self.description
"Buy One Get One"
end
def self.register
super