Skip to content

Instantly share code, notes, and snippets.

View eloquent.md

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

View seenuld.skema
[{"name":"users","color":"Red","position":{"x":100,"y":100},"increment":true,"timestamp":true,"softdelete":true,"column":[{"name":"name","type":"string","length":"255","defaultvalue":"","enumvalue":"","ai":false,"pk":false,"nu":false,"ui":false,"in":false,"un":false,"fillable":false,"guarded":false,"visible":false,"hidden":false,"colid":"c23","order":0}],"relation":[],"seeding":[]}]
View data.md
id user_id value created_at updated_at
1 1 1329 2016-07-16 21:37:54 2016-07-16 21:37:54
2 2 860 2016-07-16 21:37:55 2016-07-16 21:37:55
3 1 1329 2016-07-16 21:38:53 2016-07-16 21:38:53
4 2 860 2016-07-16 21:38:53 2016-07-16 21:38:53
5 1 1329 2016-07-16 21:39:06 2016-07-16 21:39:06
6 2 860 2016-07-16 21:39:06 2016-07-16 21:39:06
View log
This file has been truncated, but you can view the full file.
==> /var/log/gitlab/alertmanager/current <==
==> /var/log/gitlab/alertmanager/state <==
==> /var/log/gitlab/gitlab-pages/current <==
==> /var/log/gitlab/gitlab-pages/state <==
==> /var/log/gitlab/crond/current <==
@lorvent
lorvent / cloudSettings
Last active Apr 30, 2020
Visual Studio Code Settings Sync Gist
View cloudSettings
{"lastUpload":"2020-04-30T13:19:42.506Z","extensionVersion":"v3.4.3"}
View algo
import freqtrade.vendor.qtpylib.indicators as qtpylib
import numpy as np
import talib.abstract as ta
from freqtrade.strategy.interface import IStrategy
from freqtrade.strategy import (merge_informative_pair,
DecimalParameter, IntParameter, CategoricalParameter)
from pandas import DataFrame
from functools import reduce
from freqtrade.persistence import Trade
from datetime import datetime
View algo v6
import freqtrade.vendor.qtpylib.indicators as qtpylib
import numpy as np
import talib.abstract as ta
from freqtrade.strategy.interface import IStrategy
from freqtrade.strategy import (merge_informative_pair,
DecimalParameter, IntParameter, CategoricalParameter)
from pandas import DataFrame, Series
from functools import reduce
from freqtrade.persistence import Trade
from datetime import datetime