| name | description | argument-hint | |
|---|---|---|---|
shift |
Process Laravel Shift pull requests - review changes, act on instructions, and test the app |
|
Review and process this Laravel Shift pull request from this repo.
| <?php | |
| /* | |
| A simple PHP class to perform basic operations against Amazon S3 and compatible | |
| services. Requires modern PHP (7+, probably) with curl, dom, and iconv modules. | |
| Copyright 2022 Marco Arment. Released under the MIT license: | |
| Permission is hereby granted, free of charge, to any person obtaining a copy | |
| of this software and associated documentation files (the "Software"), to deal | |
| in the Software without restriction, including without limitation the rights |
| <?php | |
| /** | |
| * Grab the url of a publicly embeddable video hosted on vimeo | |
| * @param str $video_url The "embed" url of a video | |
| * @return str The url of the thumbnail, or false if there's an error | |
| */ | |
| function grab_vimeo_thumbnail($vimeo_url){ | |
| if( !$vimeo_url ) return false; | |
| $data = json_decode( file_get_contents( 'http://vimeo.com/api/oembed.json?url=' . $vimeo_url ) ); |
| <?php namespace App\Database; | |
| use Config; | |
| use DB; | |
| class OTF { | |
| /** | |
| * The name of the database we're connecting to on the fly. | |
| * |
| /* Small Devices, Tablets */ | |
| @media only screen and (max-width : 768px) { | |
| .animated { | |
| /*CSS transitions*/ | |
| -o-transition-property: none !important; | |
| -moz-transition-property: none !important; | |
| -ms-transition-property: none !important; | |
| -webkit-transition-property: none !important; | |
| transition-property: none !important; | |
| /*CSS transforms*/ |
| (function() { | |
| var FavEmoji = function(unicode) { | |
| 'use strict'; | |
| var | |
| canvas = document.createElement('canvas'), | |
| getContext = function(w) { | |
| canvas.width = canvas.height = w; | |
| context = canvas.getContext('2d'); | |
| context.font = 'normal normal normal 32px/' + w + 'px sans'; | |
| context.textBaseline = 'middle'; |
| #!/bin/bash | |
| # A simple script to backup an organization's GitHub repositories. | |
| #------------------------------------------------------------------------------- | |
| # NOTES: | |
| #------------------------------------------------------------------------------- | |
| # * User @jimklimov (and probably some others called out in the long comment | |
| # thread below) have modified this script to make it more robust and keep | |
| # up with various changes in the GitHub API and response format at: | |
| # https://github.com/jimklimov/github-scripts |
| <?php | |
| define('MY_POST_TYPE', 'my'); | |
| define('MY_POST_SLUG', 'gallery'); | |
| function my_register_post_type () { | |
| $args = array ( | |
| 'label' => 'Gallery', | |
| 'supports' => array( 'title', 'excerpt' ), | |
| 'register_meta_box_cb' => 'my_meta_box_cb', |