Since Chrome apps are now being deprecated. Download postman from https://dl.pstmn.io/download/latest/linux
Although I highly recommend using a snap
sudo snap install postman
tar -xzf Postman-linux-x64-5.3.2.tar.gz| Dim objShell, lngMinutes, boolValid | |
| Set objShell = CreateObject("WScript.Shell") | |
| lngMinutes = InputBox("How long you want to keep your system awake?" & Replace(Space(5), " ", vbNewLine) & "Enter minutes:", "Awake Duration") 'we are replacing 5 spaces with new lines | |
| If lngMinutes = vbEmpty Then 'If the user opts to cancel the process | |
| 'Do nothing | |
| Else | |
| On Error Resume Next | |
| Err.Clear | |
| boolValid = False |
| <PropertyGroup> | |
| <PathMap>$([System.IO.Path]::GetFullPath('$(MSBuildThisFileDirectory)'))=./</PathMap> | |
| </PropertyGroup> |
| Simple contract or interface, call as you wish: | |
| interface UnitOfWork | |
| { | |
| public function begin(); | |
| public function commit(); | |
| public function rollback(); | |
| } |
| <div id="example"> | |
| <div> | |
| <h4>Choose products</h4> | |
| <select id="products" style="width: 100%;"></select> | |
| </div> | |
| <script> | |
| $(document).ready(function () { |
Since Chrome apps are now being deprecated. Download postman from https://dl.pstmn.io/download/latest/linux
Although I highly recommend using a snap
sudo snap install postman
tar -xzf Postman-linux-x64-5.3.2.tar.gz| const AWS = require('aws-sdk'); | |
| const Busboy = require('busboy'); | |
| const BUCKET_NAME = ''; | |
| const IAM_USER_KEY = ''; | |
| const IAM_USER_SECRET = ''; | |
| function uploadToS3(file) { | |
| let s3bucket = new AWS.S3({ | |
| accessKeyId: IAM_USER_KEY, |
| // the main app file | |
| import express from "express"; | |
| import loadDb from "./loadDb"; // dummy middleware to load db (sets request.db) | |
| import authenticate from "./authentication"; // middleware for doing authentication | |
| import permit from "./authorization"; // middleware for checking if user's role is permitted to make request | |
| const app = express(), | |
| api = express.Router(); | |
| // first middleware will setup db connection |
| <?php | |
| //https://github.com/laravel/framework/issues/2093#issuecomment-39154456 | |
| use Illuminate\Database\Eloquent\Model as Eloquent; | |
| use Illuminate\Database\Eloquent\Relations\Pivot; | |
| class User extends Eloquent { | |
| public function groups() { | |
| return $this->belongsToMany('Group'); |
| // JS array equivalents to C# LINQ methods - by Dan B. | |
| // First: This version using older JavaScript notation for universal browser support (scroll down for ES6 version): | |
| // Here's a simple array of "person" objects | |
| var people = [ | |
| { name: "John", age: 20 }, | |
| { name: "Mary", age: 35 }, | |
| { name: "Arthur", age: 78 }, | |
| { name: "Mike", age: 27 }, |