Download and install Atom Editor:
cd ~/Downloads
public static void main(String[] args) { | |
int [] data = {3, 2, 0, 8, 10, 15, 13, 6}; | |
int max = 0, min = 0, total = 0; | |
for(int i = 0; i < data.length; i++) | |
{ | |
if (max < data[i]) { | |
max = data[i]; | |
} | |
if (min > data[i]) { | |
min = data[i]; |
# Copyright 2014-2017 Bert Carremans | |
# Author: Bert Carremans <bertcarremans.be> | |
# | |
# License: BSD 3 clause | |
import os | |
import random | |
from shutil import copyfile |
var a = document.querySelectorAll('input[type=radio]'); | |
for (var i=0; i<a.length; i++) | |
// from https://stackoverflow.com/a/18066088/8148848 | |
a[i].checked = ( (Math.random()*10) > 5) ? true : false; |
{{ $var }} - Echo content | |
{{ $var or 'default' }} - Echo content with a default value | |
{{{ $var }}} - Echo escaped content | |
{{-- Comment --}} - A Blade comment | |
@extends('layout') - Extends a template with a layout | |
@if(condition) - Starts an if block | |
@else - Starts an else block | |
@elseif(condition) - Start a elseif block | |
@endif - Ends a if block |
Sub ListSheetNamesInNewWorkbook() | |
Dim objWorkbook As Workbook | |
Dim objWorksheet As Worksheet | |
Set objWorkbook = ActiveWorkbook | |
Set objWorksheet = objWorkbook.Sheets("daftar_isi") | |
For i = 1 To ThisWorkbook.Sheets.Count | |
objWorksheet.Cells(i, 1) = i | |
objWorksheet.Cells(i, 2) = ThisWorkbook.Sheets(i).Name |
$config['base_url'] = "http://".$_SERVER['HTTP_HOST']; | |
$config['base_url'] .= preg_replace('@/+$@', '', dirname($_SERVER['SCRIPT_NAME'])).'/'; |
from flask import Flask, request | |
from flask_restful import Resource, Api | |
app = Flask(__name__) | |
api = Api(app) | |
class data_api(Resource): | |
def post(self): | |
json_data = request.get_json() | |
print(json_data['data']) |
function login() { | |
if (checker()) { | |
axios | |
.post('/api/login', { | |
username: username.value, | |
password: password.value | |
}) | |
.catch(function (error) { | |
console.log(error); | |
alert(error) |