NOTE: I want disclaimer that this work is not complete mine. Most of the work here is comming from: https://dhwaneetbhatt.com/blog/run-docker-without-docker-desktop-on-macos
$ brew doctor
$ brew update
NOTE: I want disclaimer that this work is not complete mine. Most of the work here is comming from: https://dhwaneetbhatt.com/blog/run-docker-without-docker-desktop-on-macos
$ brew doctor
$ brew update
╔══════════╦═══════════════════╦══════════════════════════════════════════════════════════════════════════╦════════════════════════╦════════════════════════════════════╦════════════════════════╗ | |
║ Operator ║ Tipe Data Operand ║ Deskripsi ║ Contoh Data ║ Contoh penggunaan Operator ║ Hasil ║ | |
╠══════════╬═══════════════════╬══════════════════════════════════════════════════════════════════════════╬════════════════════════╬════════════════════════════════════╬════════════════════════╣ | |
║ @> ║ jsonb ║ Apakah nilai x ada di data JSON? ║ {"a":1, "b":2}' ║ ::jsonb @> '{"b":2}'::jsonb ║ {"a":1, "b":2}' ║ | |
║ <@ ║ jsonb ║ Apakah nilai data JSON mengandung nilai x ? ║ {"b":2}' ║ ::jsonb <@ '{"a":1, "b":2}'::jsonb ║ {"b":2}' ║ | |
║ ? ║ text ║ Apakah key terat |
window.Echo = new Echo({ | |
broadcaster: 'pusher', | |
key: process.env.MIX_PUSHER_APP_KEY, | |
wsHost: window.location.host, | |
wsPort: 80, | |
wssPort: 443, | |
disableStats: true, | |
enabledTransports: ['ws', 'wss'], | |
cluster: process.env.MIX_PUSHER_APP_CLUSTER, | |
}); |
{ | |
"env": { | |
"es6": true | |
}, | |
"extends": [ | |
"plugin:react/recommended", | |
"plugin:@typescript-eslint/recommended", | |
"airbnb", | |
"plugin:import/errors", | |
"plugin:import/warnings", |
<?php | |
use Illuminate\Pagination\Paginator; | |
//This example is a bit more comlex since I have columns that are foreign keys of the Ticket table. | |
public function index(Request $request) | |
{ | |
if($request->ajax()) { | |
$columns = ['tickets.id', 'client_name', 'location', 'priority_name', 'status_name', 'date']; | |
$draw = $request->draw; | |
$start = $request->start; //Start is the offset | |
$length = $request->length; //How many records to show |
""" Radon Transform as described in Birkfellner, Wolfgang. Applied Medical Image Processing: A Basic Course. [p. 344] """ | |
from scipy import misc | |
import numpy as np | |
import matplotlib.pyplot as plt | |
def discrete_radon_transform(image, steps): | |
R = np.zeros((steps, len(image)), dtype='float64') | |
for s in range(steps): | |
rotation = misc.imrotate(image, -s*180/steps).astype('float64') | |
R[:,s] = sum(rotation) |
$ uname -r
package naive_bayes; | |
import java.util.*; | |
public class NaiveBayesBinary { | |
// lists containing training data | |
private List<Boolean> training_mumPresent = new ArrayList<Boolean>(); | |
private List<Boolean> training_dadPresent = new ArrayList<Boolean>(); | |
private List<Boolean> training_babyPresent = new ArrayList<Boolean>(); | |
private List<Boolean> training_outcome = new ArrayList<Boolean>(); | |