Defining Eloquent model (will assume that DB table named is set as plural of class name and primary key named "id"):
class Shop extends Eloquent {}
Using custom table name
protected $table = 'my_shops';
-- This code comes from https://gist.github.com/oliveratgithub/ | |
-- Open in AppleScript Editor and save as Application | |
-- ------------------------------------------------------------ | |
--this is required to break the filename into pieces (separate name and extension) | |
set text item delimiters to "." | |
tell application "Finder" | |
set all_files to every item of (choose file with prompt "Choose the Files you'd like to rename:" with multiple selections allowed) as list | |
display dialog "New file name:" default answer "" | |
set new_name to text returned of result | |
--now we start looping through all selected files. 'index' is our counter that we initially set to 1 and then count up with every file. |
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Dummy Page</title> | |
<meta name="description" content="Simple, quick, standalone responsive placeholder Website without any additional resources"> | |
<meta name="author" content="https://gist.github.com/oliveratgithub"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<link rel="stylesheet" href="https://unpkg.com/[email protected]/build/pure-min.css" integrity="sha384-CCTZv2q9I9m3UOxRLaJneXrrqKwUNOzZ6NGEUMwHtShDJ+nCoiXJCAgi05KfkLGY" crossorigin="anonymous"> | |
<!--[if lt IE 9]> |
Basic Requirements: | |
Computer with wired and wireless connection | |
FFmpeg installation: http://www.ffmpeg.org/ | |
GoPro Hero 3+: http://gopro.com/ | |
RTMP server e.g. FMS (http://www.adobe.com/products/adobe-media-server-family.html) or CDN ingest point | |
Overview: | |
GoPro Hero3 cameras produce HLS streams which are consumed by control apps and their removeable monitor. |
.fileContainer { | |
overflow: hidden; | |
position: relative; | |
} | |
.fileContainer [type=file] { | |
cursor: inherit; | |
display: block; | |
font-size: 999px; | |
filter: alpha(opacity=0); |
<?php | |
error_reporting(E_ALL); | |
// BigDump ver. 0.35b from 2012-12-26 | |
// Staggered import of an large MySQL Dump (like phpMyAdmin 2.x Dump) | |
// Even through the webservers with hard runtime limit and those in safe mode | |
// Works fine with Internet Explorer 7.0 and Firefox 2.x | |
// Author: Alexey Ozerov (alexey at ozerov dot de) |
#!/bin/bash | |
sudo apt-get --yes purge xserver* x11-common x11-utils x11-xkb-utils x11-xserver-utils xarchiver xauth xkb-data console-setup xinit lightdm libx{composite,cb,cursor,damage,dmcp,ext,font,ft,i,inerama,kbfile,klavier,mu,pm,randr,render,res,t,xf86}* lxde* lx{input,menu-data,panel,polkit,randr,session,session-edit,shortcut,task,terminal} obconf openbox gtk* libgtk* alsa* nano python-pygame python-tk python3-tk scratch tsconf | |
sudo apt-get -y purge aspell hunspell-en-us iptraf libaspell15 libhunspell-1.2-0 lxde lxsession lxtask lxterminal squeak-vm whiptail zenity gdm gnome-themes-standard python-pygame | |
apt-get --yes purge xdg-tools desktop-file-utils omxplayer python3-numpy python3 | |
sudo apt-get remove xserver-xorg | |
sudo apt-get purge ^lx | |
sudo apt-get --yes autoremove | |
sudo apt-get --yes autoclean | |
sudo apt-get --yes clean |
var directionsService = new google.maps.DirectionsService(); | |
directionsService.route(request, function (response, status) { | |
if (status == google.maps.DirectionsStatus.OK) { | |
var polyline = new google.maps.Polyline(polylineOptions); | |
var path = response.routes[0].overview_path; | |
for (var x in path) { |
/**This is example works with only jQuery | |
* @usecase, if you have an array with empty values (ex: ["I", "", "want", "", "to", "go", "" ]) | |
* but you want to return this array as a string. | |
*/ | |
var myRoom = { | |
myAction: function(array){ | |
garray = $.grep(array,function(n){ | |
return(n); | |
}); |
codestyle.co examples |