Skip to content

Instantly share code, notes, and snippets.

View objectivehtml's full-sized avatar

Justin Kimbrell objectivehtml

View GitHub Profile
object(stdClass)[52]
public '_hits' => int 17456
public 'author' => string 'Joshua Yasmeh' (length=13)
public 'authors' =>
array (size=1)
0 => string 'Joshua Yasmeh' (length=13)
public 'image_url' => string 'http://www.dailywire.com/sites/default/files/uploads/2016/04/ap_742898148459.jpg' (length=80)
public 'link' => string 'http://www.dailywire.com/news/4872/remember-rachel-dolezal-white-lady-who-pretended-joshua-yasmeh' (length=97)
public 'metadata' => string '{"nid":"4872","image_style_urls":{"169small":"http://www.dailywire.com/sites/default/files/styles/169small/public/uploads/2016/04/ap_742898148459.jpg?itok=gNtnBHKf","169medium":"http://www.dailywire.com/sites/default/files/styles/169medium/public/uploads/2016/04/ap_742898148459.jpg?itok=5g00eYFT","169large":"http://www.dailywire.com/sites/default/files/styles/169large/public/uploads/2016/04/ap_742898148459.jpg?itok=Lc7KG9ou","11medium":"http://www.dailywire.com/sites/default/files/styles/11medium/public/upl'... (length=706)
pu
$.fn.markerList = function(options) {
var titles = {};
var geocoder = new google.maps.Geocoder();
var _default = {
map: {},
bounds: new google.maps.LatLngBounds(),
lat: false,
lng: false,
location: false,
this.$el.find('.facebook').sharrre({
share: {
facebook: true
},
template:'<span class="icon-facebook-squared"></span><span class="count">{total}</span>',
enableHover: false,
enableTracking: true,
click: function(api, options){
api.simulateClick();
{% if entry.photo | length %}
{% for asset in entry.photo %}{{ asset.getSource().settings.path }}{{ asset.filename }}{% endfor %}
{% endif %}
clock = $('.clock').FlipClock(10, {
clockFace: 'HourlyCounter',
clockFaceOptions: {
countdown: true,
includeSeconds: true
},
onStop: function() {
console.log('Time finished (callback)');
}
});
@objectivehtml
objectivehtml / 0_reuse_code.js
Last active August 29, 2015 14:11
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@objectivehtml
objectivehtml / gist:cfa307e78e0a35a4e52b
Created October 28, 2014 18:50
Difference Between parse_variables_row and parse_variables
ee()->TMPL->parse_variables_row(array(
'var_1' => 1,
'var_2' => 2,
'var_3' => 3
));
ee()->TMPL->parse_variables(array(
array(
'var_1' => 1,
'var_2' => 2,
$timeslots->select(DB::raw($select))
->leftJoin(DB::raw('`profiles` as `host`'), 'timeslots.hostId', '=', 'host.id')
->where('host.deletedAt')
->where('start', '>=', Timeslot::date('Y-m-d 00:00:00', Timeslot::time($start)))
->where('start', '<=', Timeslot::date('Y-m-d 23:59:59', Timeslot::time($end)))
->where('clientId');
$response = array();
{your_map_field parse="true"}
{markers}
{exp:gmap:marker id="map" latitude="{marker:latitude}" longitude="{marker:longitude}" geocode="false"}
{/markers}
{/your_map_field}
// The above code would be the same as...
$(document).ready(function() {
$('.dentist-profile').click(function(e) {
var index = $(this).parent().index();
var marker = map_markers[index];
marker.window.open(map_map, marker);
e.preventDefault();