This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*************************** | |
******* USER PARAMS ******* | |
**************************/ | |
/* [Resolution Options] */ | |
// Resolution of the mode. | |
// Lower values render faster. | |
// Higher values are smoother. | |
$fn = 100; | |
/* [Global Options] */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import json | |
namespaces_response = requests.get('http://127.0.0.1:8001/api/v1/namespaces').json() | |
for namespace_item in namespaces_response['items']: | |
if namespace_item['status']['phase'] == 'Terminating': | |
url = 'http://127.0.0.1:8001/api/v1/namespaces/%s' % namespace_item['metadata']['name'] | |
namespace_get_data = requests.get(url).json() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
async function sleep(ms) { | |
return new Promise(resolve => setTimeout(resolve, ms)); | |
} | |
async function deleteTopTransaction() { | |
$('.dgrid-row')[0].click(); | |
await sleep(250); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using namespace System.Collections.Generic | |
# Encapsulate an arbitrary command | |
class PaneCommand { | |
[string]$Command | |
PaneCommand() { | |
$this.Command = ""; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ExampleUsage extends Resource | |
{ | |
... | |
public function fieldsIndex(Request $request) | |
{ | |
return [ | |
... | |
]; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Nova; | |
use Illuminate\Http\Request; | |
use Laravel\Nova\Fields\Heading; | |
use Laravel\Nova\Fields\ID; | |
use Laravel\Nova\Resource as NovaResource; | |
use Laravel\Nova\Http\Requests\NovaRequest; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Nova; | |
use Illuminate\Http\Request; | |
use Laravel\Nova\Fields\Heading; | |
use Laravel\Nova\Fields\ID; | |
use Laravel\Nova\Resource as NovaResource; | |
use Laravel\Nova\Http\Requests\NovaRequest; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fs = require('fs'); | |
const SerialPort = require('serialport'); | |
const _ = require('lodash'); | |
const BARCODE_TYPES = { | |
upc_a: 0, | |
epc_e: 1, | |
ean13: 2, | |
ean8: 3, | |
code39: 4, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_addon.name = 'skillup' | |
_addon.author = 'Senotaru (Asura)' | |
_addon.version = '0.0.1' | |
_addon.lastUpdate = "2018.18.03" | |
_addon.commands = {'skillup'} | |
require('luau') | |
require('tables') | |
require('strings') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getVtime(rawVtime) | |
local m = rawVtime % 60 | |
local h = (rawVtime - m)/60 | |
return '%s:%s%s':format(h, (m < 10 and '0' or ''), m) | |
end | |
function getVanadielTime() | |
local basisTime = os.time{year=2002, month=6, day=23, hour=11, min=0} --FFXI epoch | |
local basisDate = os.date('!*t', basisTime) |
NewerOlder