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';
class EarlyStopping(object): | |
def __init__(self, mode='min', min_delta=0, patience=10, percentage=False): | |
self.mode = mode | |
self.min_delta = min_delta | |
self.patience = patience | |
self.best = None | |
self.num_bad_epochs = 0 | |
self.is_better = None | |
self._init_is_better(mode, min_delta, percentage) |
""" Python 3 implementation of Deep Learning book early stop algorithm. | |
@book{Goodfellow-et-al-2016, | |
title={Deep Learning}, | |
author={Ian Goodfellow and Yoshua Bengio and Aaron Courville}, | |
publisher={MIT Press}, | |
note={\url{http://www.deeplearningbook.org}}, | |
year={2016} | |
} | |
""" |
Work in Progress: More testing to be done. | |
At a glance Authentication, Activation, Throttle, Groups & Permissions seem to | |
be working. | |
Downside: Copy and modify files. | |
Upside: Not really much work to get it up and running. | |
Assumes you have Laravel 5.1, jenssegers/laravel-mongodb + session addon set up | |
and your app is namespaced to App/ |
import {Routes, Route} from "@angular/router"; | |
import {Injectable} from "@angular/core"; | |
@Injectable() | |
export class RouteLinkProviderService { | |
protected routes: Routes; | |
protected routesByComponents = new Map<any, any>(); | |
constructor(routes: Routes) { |
import android.util.Base64; | |
import com.google.gson.Gson; | |
import com.hpsaturn.robotsanta.Config; | |
import com.hpsaturn.robotsanta.models.MailGunResponse; | |
import retrofit.Callback; | |
import retrofit.RestAdapter; | |
import retrofit.converter.GsonConverter; | |
import retrofit.http.Field; |
gulpfile.js | |
const elixir = require('laravel-elixir'); | |
require('laravel-elixir-vue'); | |
require('laravel-elixir-vueify'); | |
elixir.config.sourcemaps = false; | |
elixir(mix => { |
parameters | |
--level=psr2 --verbose fix $FileDir$/$FileName$ | |
working directory | |
$ProjectFileDir$ |
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
# | |
# Copyright (c) 2016, Alexis Nootens <me@axn.io> | |
# | |
# Permission to use, copy, modify, and/or distribute this software for any | |
# purpose with or without fee is hereby granted, provided that the above | |
# copyright notice and this permission notice appear in all copies. | |
# | |
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH |
#!/bin/sh | |
ADB_PATH="/Users/medyo/Library/Android/sdk/platform-tools" | |
PACKAGE_NAME="com.mobiacube.elbotola.debug" | |
DB_NAME="default.realm" | |
DESTINATION_PATH="/Users/Medyo/Desktop/" | |
NOT_PRESENT="List of devices attached" | |
ADB_FOUND=`${ADB_PATH}/adb devices | tail -2 | head -1 | cut -f 1 | sed 's/ *$//g'` | |
if [[ ${ADB_FOUND} == ${NOT_PRESENT} ]]; then | |
echo "Make sure a device is connected" | |
else |