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';
The count of contributions (summary of Pull Requests, opened issues and commits) to public repos at GitHub.com from Wed, 29 Jul 2015 01:52:41 GMT till Fri, 29 Jul 2016 01:52:41 GMT.
Only first 1000 GitHub users according to the count of followers are taken. This is because of limitations of GitHub search. Sorting algo in pseudocode:
githubUsers
.filter(user => user.followers > 6)| package com.locationupdates.event; | |
| import android.app.AlertDialog; | |
| import android.content.DialogInterface; | |
| import android.os.Bundle; | |
| import android.support.v7.app.AppCompatActivity; | |
| import android.text.TextUtils; | |
| import android.util.Log; | |
| import android.view.View; | |
| import android.widget.Button; |
| /* | |
| ##Device = Desktops | |
| ##Screen = 1281px to higher resolution desktops | |
| */ | |
| @media (min-width: 1281px) { | |
| //CSS | |
| import java.util.*; | |
| /** | |
| * | |
| * @author Shohan | |
| * Bank Account Class | |
| * // Main ClassName -- "Main" | |
| * // Add interest feature by @korrio | |
| */ | |
| class Account{ |
| Solidity lets you program on Ethereum, a blockchain-based virtual machine that allows the creation and execution of smart contracts, without needing centralized or trusted parties. | |
| Solidity is a statically typed, contract programming language that has similarities to Javascript and C. Like objects in OOP, each contract contains state variables, functions, and common data types. Contract-specific features include modifier (guard) clauses, event notifiers for listeners, and custom global variables. | |
| Some Ethereum contract examples include crowdfunding, voting, and blind auctions. | |
| As Solidity and Ethereum are under active development, experimental or beta features are explicitly marked, and subject to change. Pull requests welcome. | |
| // First, a simple Bank contract | |
| // Allows deposits, withdrawals, and balance checks | |
| // simple_bank.sol (note .sol extension) | |
| /* **** START EXAMPLE **** */ |
This is a collection of information on PostgreSQL and PostGIS for what I tend to use most often.
| const express = require('express'); | |
| const server = express(); | |
| const request = require('request'); | |
| const proxy = require('http-proxy-middleware'); | |
| server.set('view engine', 'ejs'); | |
| const createProxy = (path, target) => | |
| server.use(path, proxy({ target, changeOrigin: true, pathRewrite: {[`^${path}`]: ''} })); |
| // Copy paste this script on your console | |
| var disabled = false; | |
| var r = confirm('Start the Autolike on this page?'); | |
| var min_time_to_decide = 300; | |
| var max_additional_time_to_decide = 1000; | |
| var time_to_decide = function() { | |
| additional_time_to_decide = Math.floor(Math.random() * max_additional_time_to_decide); | |
| return min_time_to_decide + additional_time_to_decide; |
| pragma solidity >= 0.7.0; | |
| contract FoodToken { | |
| uint256 constant public totalSupply = 10_000_000 * 10**18; | |
| mapping (address => uint256) public balanceOf; | |
| mapping (address => mapping (address => uint256)) public allowance; | |
| string constant public symbol = "FOOD"; | |
| uint8 constant public decimals = 18; | |
| string constant public name = "Food Token"; |