For the scenario, imagine posts has a foreign key user_id referencing users.id
public function up()
{
Schema::create('posts', function(Blueprint $table) {
$table->increments('id');
$table->string('title');
$table->text('body');| def combo_scrolling(combobox, event): | |
| """Prevent the comboboxes from scrolling.""" | |
| combobox.emit_stop_by_name("scroll-event") | |
| values = ['item 1', 'item 2', 'item 3'] | |
| combo = gtk.combo_box_new_text() | |
| # Fill with part type options | |
| for val in values: |
| { | |
| /* ~/Library/KeyBindings/DefaultKeyBinding.dict | |
| See https://gist.github.com/zsimic/1367779, prefix cheatsheet: | |
| Char Short Key | |
| $ S- Shift ⇧ | |
| ^ C- CTRL ⌃ | |
| ~ O- Option ⌥ (⊞ Win key position on PC) | |
| @ M- Command ⌘ (Alt position on PC) | |
| # Numeric Keypad |
| #!/usr/bin/env python2 | |
| from gi.repository import Gtk | |
| class Grid(Gtk.Window): | |
| widget_list = [] | |
| WIDGET_SIZE = 140 | |
| COLS = 1 | |
| NUM = 100 | |
| def calcule_columns(self, scroll, grid): |
| #!/usr/bin/python3 | |
| from gi.repository import Gtk, Gdk | |
| import sys | |
| class MyWindow(Gtk.Window): | |
| def __init__(self): | |
| Gtk.Window.__init__(self, title="Hello World") | |
| self.set_name('MyWindow') |
For the scenario, imagine posts has a foreign key user_id referencing users.id
public function up()
{
Schema::create('posts', function(Blueprint $table) {
$table->increments('id');
$table->string('title');
$table->text('body');| #!/usr/bin/python | |
| from gi.repository import Gtk, GObject | |
| from datetime import datetime | |
| class MainWindow(Gtk.Window): | |
| def __init__(self): | |
| Gtk.Window.__init__(self, title="app") | |
| self.box = Gtk.Box(spacing=6) | |
| self.add(self.box) |
EDIT: You can find this same updated tutorial here -> Medium
Now I'm going to list how to publish an Android libray to jCenter and then syncronize it with Maven Central:
<hash> with your gist's hash):
# with ssh
git clone git@gist.github.com:<hash>.git mygist
# with httpsgit clone https://gist.github.com/.git mygist