Skip to content

Instantly share code, notes, and snippets.

View Feroz-Istar's full-sized avatar
🎯
Focusing

Feroz Siddiqui Feroz-Istar

🎯
Focusing
View GitHub Profile
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
<script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
</head>
<body>
<div class="container-fluid salesken_container">
<div class="position-relative">
<canvas class="" id="myCanvas" width=" 900px" height="300px" style="border:1px solid #d3d3d3; ">
{"draw":1,"recordsTotal":57,"recordsFiltered":57,"data":[{"first_name":"Airi","last_name":"Satou","position":"Accountant","office":"Tokyo","start_date":"28th Nov 08","salary":"$162,700","DT_RowId":"row_5"},{"DT_RowId":"row_25","first_name":"Angelica","last_name":"Ramos","position":"Chief Executive Officer (CEO)","office":"London","start_date":"9th Oct 09","salary":"$1,200,000"},{"DT_RowId":"row_3","first_name":"Ashton","last_name":"Cox","position":"Junior Technical Author","office":"San Francisco","start_date":"12th Jan 09","salary":"$86,000"},{"DT_RowId":"row_19","first_name":"Bradley","last_name":"Greer","position":"Software Engineer","office":"London","start_date":"13th Oct 12","salary":"$132,000"},{"DT_RowId":"row_28","first_name":"Brenden","last_name":"Wagner","position":"Software Engineer","office":"San Francisco","start_date":"7th Jun 11","salary":"$206,850"},{"DT_RowId":"row_6","first_name":"Brielle","last_name":"Williamson","position":"Integration Specialist","office":"New York","start_date":"2nd De
FirebaseStorage storage = FirebaseStorage.getInstance("gs://istar-user-images");
StorageMetadata metadata = new StorageMetadata.Builder()
.setContentType(mimetype)
.build();
StorageReference storageRef = storage.getReference();
String file_name = UUID.randomUUID().toString();
Log.d(TAG,"file name "+file_name);
StorageReference imagesRef = storageRef.child("files/"+file_name);
UploadTask uploadTask = imagesRef.putFile(Uri.fromFile(local_profile.pathFile()),metadata);
var replaceTextInNode = function (parentNode) {
for (var i = parentNode.childNodes.length - 1; i >= 0; i--) {
var node = parentNode.childNodes[i];
// Make sure this is a text node
if (node.nodeType == Element.TEXT_NODE && (node.parentNode.tagName == undefined || !/SCRIPT|STYLE/.test(node.parentNode.tagName))) {
if (node.textContent && node.textContent.trim()) {
console.log(node.textContent);
import android.app.Service;
import android.content.Context;
import android.content.Intent;
import android.media.AudioAttributes;
import android.media.AudioFocusRequest;
import android.media.AudioManager;
import android.media.MediaPlayer;
import android.media.ToneGenerator;
import android.os.Build;
VBoxManage.exe modifyvm "macOS Catalina" --cpuidset 00000001 000106e5 00100800 0098e3fd bfebfbff
VBoxManage setextradata "macOS Catalina" "VBoxInternal/Devices/efi/0/Config/DmiSystemProduct" "iMac11,3"
VBoxManage setextradata "macOS Catalina" "VBoxInternal/Devices/efi/0/Config/DmiSystemVersion" "1.0"
VBoxManage setextradata "macOS Catalina" "VBoxInternal/Devices/efi/0/Config/DmiBoardProduct" "Iloveapple"
VBoxManage setextradata "macOS Catalina" "VBoxInternal/Devices/smc/0/Config/DeviceKey" "ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc"
VBoxManage setextradata "macOS Catalina" "VBoxInternal/Devices/smc/0/Config/GetKeyFromRealSMC" 1
1. Creating Functional Component -------------- rfce
1. Creating class Component -------------- rce
1. Creating Constructor Component -------------- rconst
@Feroz-Istar
Feroz-Istar / Jquery
Last active December 18, 2019 14:49
1. How to create Promise
var promise=promiseTest(mydata);
promise.done(function (data){})
function promiseTest(mydata){
var senddata={teamdata:JSON.stringify(mydata)};
return $.post("url",senddata);
}
@Feroz-Istar
Feroz-Istar / WPF
Last active November 25, 2019 22:33
1. Dropdown is combobox.
<ComboBox SelectedIndex="0" Padding="2">
<ComboBoxItem>Painted</ComboBoxItem>
<ComboBoxItem>Not Painted</ComboBoxItem>
</ComboBox>
2. In case of Text Box name attribute is used so that we get its text user name attribut .get Text in code
<TextBox Name="description_box" />
3. for checking string null check in code use
package convert;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;