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';
$estadosBrasileiros = array( | |
'AC'=>'Acre', | |
'AL'=>'Alagoas', | |
'AP'=>'Amapá', | |
'AM'=>'Amazonas', | |
'BA'=>'Bahia', | |
'CE'=>'Ceará', | |
'DF'=>'Distrito Federal', | |
'ES'=>'Espírito Santo', | |
'GO'=>'Goiás', |
"dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause" XF86AudioPlay | |
"dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Stop" XF86AudioStop | |
"dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Next" XF86AudioNext | |
"dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Previous" XF86AudioPrevious |
;--------------------------------------- | |
;TEMPORARY SYSTEM CLIPBOARD FOR CLIPJUMP | |
;v0.1 | |
;--------------------------------------- | |
;The shortcuts are Alt+C , X , V | |
!C:: | |
copy("^c") | |
return |
defaults write com.apple.LaunchServices LSHandlers -array-add '{LSHandlerContentType=public.plain-text;LSHandlerRoleAll=com.sublimetext.3;}' |
# remove | |
/usr/libexec/PlistBuddy -c 'Add :LSUIElement bool true' /Applications/iTerm.app/Contents/Info.plist | |
# restore | |
/usr/libexec/PlistBuddy -c 'Delete :LSUIElement' /Applications/iTerm.app/Contents/Info.plist |
Other people's projects:
My projects (tutorials are on my blog at http://maxoffsky.com):
# Resurrection Remix OS - Marshmallow | |
Source Code: http://github.com/ResurrectionRemix | |
G+: https://plus.google.com/communities/109352646351468373340 | |
Resurrection Remix Crowdin : https://crowdin.com/project/resurrectionremix/ | |
For extended changelog, track github activities | |
# The Changelog |