Monday, May 31, 2021

Edward Lance Lorilla

Edward Lance Lorilla


【Visual Studio Visual VB net】User Account

Posted: 30 May 2021 08:22 AM PDT

 Public Class Form1

Dim cmdProcess As Process = New Process() Dim fileArgs As String Dim path As String = "C:\Windows\System32\" Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click fileArgs = "shell32.dll,Control_RunDLL nusrmgr.cpl" cmdProcess.StartInfo.Arguments = fileArgs cmdProcess.StartInfo.WorkingDirectory = path cmdProcess.StartInfo.FileName = "RunDll32.exe" cmdProcess.Start() cmdProcess.WaitForExit() Me.Show() End SubEnd Class

【ANDROID STUDIO】Unstructured Concurrency

Posted: 30 May 2021 08:21 AM PDT

 package com.example.coroutine


import kotlinx.coroutines.*

class UserDataManager {
suspend fun getTotalUserCount(): Int {
var count = 0
CoroutineScope(Dispatchers.IO).launch {
delay(1000)
count = 50
}

val deferred = CoroutineScope(Dispatchers.IO).async {
//its will delay 3 sec
delay(3000)
return@async 70
}

return count + deferred.await()
}
}

【PYTHON】Mean Estimated Accuracy Naive Bayes

Posted: 30 May 2021 08:19 AM PDT

 from pandas import read_csv

from sklearn.model_selection import KFoldfrom sklearn.model_selection import cross_val_scorefrom sklearn.naive_bayes import GaussianNB filename = 'pima-indians-diabetes.csv'names = ['preg', 'plas', 'pres', 'skin', 'test', 'mass', 'pedi', 'age', 'class']dataframe = read_csv(filename, names=names) array = dataframe.values #splitting the array to input and outputX = array[:,0:8]Y = array[:,8] num_folds = 10seed = 7 kfold = KFold(n_splits = num_folds, random_state = seed)model = GaussianNB() results = cross_val_score(model, X, Y, cv=kfold)print("Mean Estimated Accuracy Naive Bayes: %f " % (results.mean()))

【GAMEMAKER】advance Radar

Posted: 30 May 2021 08:16 AM PDT

 Information about object: obj1

Sprite: sprObj1
Solid: false
Visible: true
Depth: 0
Persistent: false
Parent:
Children:
Mask:
No Physics Object
Information about object: objController
Sprite: sprController
Solid: false
Visible: true
Depth: 0
Persistent: false
Parent:
Children:
Mask:
No Physics Object
Draw Event:
execute code:

pen_color=c_black;
pen_size=3;
brush_color=c_green;
draw_rectangle(view_xview[0],view_yview[0],view_xview[0]+100,view_yview[0]+100,false);
brush_color=c_blue;
for (i=0; i<instance_count; i+=1) {
iii = instance_id[i];
if (iii != id && iii.visible = true) {
draw_sprite_ext(iii.object_index,0,view_xview[0]+iii.x/11,view_yview[0]+iii.y/11,0.25, 0.25, 0,-1,1);
}
}


//draw_sprite_scaled(sprPlayer,-1,view_left[0]+objPlayer.x/11,view_top[0]+objPlayer.y/11,0.25);
Information about object: objPlayer
Sprite: sprPlayer
Solid: false
Visible: true
Depth:
0
Persistent: false
Parent:
Children:
Mask:

No Physics Object

Step Event:
execute code:

if keyboard_check(vk_left) then x-=4;
if keyboard_check(vk_right) then x+=4;
if keyboard_check(vk_up) then y-=4;
if keyboard_check(vk_down) then y+=4;

Information about object: object3
Sprite: sprite3
Solid: false
Visible: true
Depth: 0
Persistent:
false
Parent:
Children:
Mask:

No Physics Object

No comments:

Post a Comment