Skip to content

Instantly share code, notes, and snippets.

View razan-rai's full-sized avatar

Rajan Rai razan-rai

View GitHub Profile
@razan-rai
razan-rai / gist:66e908b87adaea85f0f67402ff626023
Created January 9, 2017 06:46
xpath to get data starts with specific character or string
//edtracting Telephone no and other stuff
<div class="inhalt-links">
<h2>
Deutsche Verkehrswacht
<br>
Verkehrswacht Dortmund e. V.
<br>
</h2>
<h3>
Standnummer:&nbsp;
@razan-rai
razan-rai / 0_reuse_code.js
Created January 7, 2017 15:47
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
@razan-rai
razan-rai / eloquent.md
Created September 21, 2016 12:30 — forked from msurguy/eloquent.md
Laravel 4 Eloquent Cheat Sheet.

Conventions:

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';