Snippets Collections
['\t', '\n', '\r', ' ', '!', '"', '#', '$', '%', '&', "'", '(',
')', '*', '+', ',', '-', '.', '/', '0', '1', '2', '3', '4', '5', '6', '7',
'8', '9', ':', ';', '<', '=', '>', '?', '@', '[', '\\', ']', '^', '_', '`',
'a', 'b', 'c', 'd', 'e','f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o',
'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', '{', '|', '}', '~',
'accept', 'add', 'alt', 'altleft', 'altright', 'apps', 'backspace',
'browserback', 'browserfavorites', 'browserforward', 'browserhome',
'browserrefresh', 'browsersearch', 'browserstop', 'capslock', 'clear',
'convert', 'ctrl', 'ctrlleft', 'ctrlright', 'decimal', 'del', 'delete',
'divide', 'down', 'end', 'enter', 'esc', 'escape', 'execute', 'f1', 'f10',
'f11', 'f12', 'f13', 'f14', 'f15', 'f16', 'f17', 'f18', 'f19', 'f2', 'f20',
'f21', 'f22', 'f23', 'f24', 'f3', 'f4', 'f5', 'f6', 'f7', 'f8', 'f9',
'final', 'fn', 'hanguel', 'hangul', 'hanja', 'help', 'home', 'insert', 'junja',
'kana', 'kanji', 'launchapp1', 'launchapp2', 'launchmail',
'launchmediaselect', 'left', 'modechange', 'multiply', 'nexttrack',
'nonconvert', 'num0', 'num1', 'num2', 'num3', 'num4', 'num5', 'num6',
'num7', 'num8', 'num9', 'numlock', 'pagedown', 'pageup', 'pause', 'pgdn',
'pgup', 'playpause', 'prevtrack', 'print', 'printscreen', 'prntscrn',
'prtsc', 'prtscr', 'return', 'right', 'scrolllock', 'select', 'separator',
'shift', 'shiftleft', 'shiftright', 'sleep', 'space', 'stop', 'subtract', 'tab',
'up', 'volumedown', 'volumemute', 'volumeup', 'win', 'winleft', 'winright', 'yen',
'command', 'option', 'optionleft', 'optionright']
<!--BEGINNING OF NEW CITY SUBSECTION (IMAGE PART)-->
       <div class="grid grid--table single-visit__events__item">
<div class="grid__item push--xxlarge--one-twelfth xxlarge--five-twelfths large--six-twelfths">
<iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3259.198629811858!2d-80.84894282469872!3d35.226425154824696!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x8856a02ee474508d%3A0x18de88a24166286f!2sKimpton%20Tryon%20Park%20Hotel!5e0!3m2!1sen!2sus!4v1667918680238!5m2!1sen!2sus" width="516" height="291" style="border:0;" allowfullscreen=" loading=" lazy referrerpolicy="no-referrer-when-downgrade"></iframe> </div>
<div class="grid__item push--xxlarge--one-twelfth xxlarge--five-twelfths large--six-twelfths">
            <!--END OF NEW CITY SUBSECTION (IMAGE PART)-->
            <!--BEGINNING OF NEW CITY SUBSECTION (TEXT PART)-->
            <div class="single-visit__events__meta">
              <h4>Charlotte</h4>
              <p class="single-visit__events__date">Thursday, 1/5 &amp; Friday, 1/6</p>
              <p class="single-visit__events__content">The Kimpton Tryon Park Hotel<br> 303 S Church St<br> Charlotte, NC 28202<br><i>by appointment only</i></p>
              <p><a href="mailto:ontheroad@sidmashburn.com?subject=Charlotte%20Appointment%20Request%20January%202023" class="ms-link">Book your appointment</a></p>
            </div>
          </div>
        </div>
          <!--END OF NEW CITY SUBSECTION (TEXT PART)-->
          <!--END OF NEW CITY SUBSECTION-->
/** WooCommerce File Upload Allow Start **/

define('ALLOW_UNFILTERED_UPLOADS', true );

/** WooCommerce File Upload Allow End **/
exporter = BasicMayaMeshExporter(options=dict(mesh_name='Sphere001', export_path='my_export_path.fbx'))
exporter.run()
# -- Assuming "base_exporter.py" exists in sys.path
from base_exporter import ExporterBase

# -- import the modules we will need to acquire our mesh, and export it
import pymel.core as pm

class BasicMayaMeshExporter(ExporterBase):

    def validate():
        # -- get all meshes that conform to the name given in the options, under the "mesh_name" key
        mesh = pm.ls(self.options.get('mesh_name'), geometry=True, sl=False)

        # -- fail the export process if no such meshes exist
        if not len(mesh):
            return False

        # -- if they do, continue the export process. This exporter does not enfoce the mesh name to be unique.
        return True
        
    def export():
        # -- acquire the meshes and select them
        meshes = pm.ls(self.options.get('mesh_name'), geometry=True, sl=True)

        # -- perform the export
        pm.exportSelected(self.options.get('export_path'))
exporter = TextureExporter(options=dict(texture='my_texture'))
exporter.run()
class TextureExporter(ExporterBase):
    def validate(self):
        return my_dcc.has_texture(self.options.get('texture'))

    def export(self):
        my_dcc_method.export(self.options.get('texture'))
class ExporterBase(object):
    def __init__(options=None):
    	self.options = options or dict()
import my_dcc

class TextureExporter(ExporterBase):
    def validate(self):
        return my_dcc.has_texture(my_texture)

    def export(self):
        my_dcc_method.export(my_texture)
class ExporterBase(object):
    def validate(self):
        return True

    def export(self):
        raise NotImplementedError

    def run(self):
        if not self.validate():
            return False
        self.export()
class PackerBase(object):
    def process(self, output_file, inputs=None):
    	raise NotImplementedError()
from PIL import Image
import numpy

class RGBAPacker(object):
    def process(self, output_file, inputs=None):
    	# -- we assume "inputs" is a dictionary of image files, with the keys corresponding to the channels they want packing in.
    	inputs = inputs or dict()
    	r = Image.open(inputs.get('mask1')).convert('L')
        g = Image.open(inputs.get('mask2')).convert('L')
        
        # -- our procedurally generated blue channel is the multiplied result of the first and second masks. 
        # -- This is a super simple operation, but you can make this as complex as you like.
        b = numpy.asarray(r) * numpy.asarray(g)
        b = Image.fromarray(b)
        
        output = Image.merge('RGB', r, g, b)
        output.save(output_file)
from PIL import Image

class RGBAPacker(object):
    def process(self, output_file, inputs=None):
    	# -- we assume "inputs" is a dictionary of image files, with the keys corresponding to the channels they want packing in.
    	inputs = inputs or dict()
    	r = Image.open(inputs.get('r')).convert('L')
        g = Image.open(inputs.get('g')).convert('L')
        b = Image.open(inputs.get('b')).convert('L')
        a = Image.open(inputs.get('a')).convert('L')
        
        output = Image.merge('RGBA', r, g, b, a)
        output.save(output_file)
# -- now we tell unreal that the button we just created is ACTUALLY a menu.
# -- this makes it so that when pressed, unreal does not invoke the button's "actions",
# -- but instead creates a context menu we can populate.
# -- calling this "register_menu" function helpfully also returns a handle on the menu object itself.
# -- Note how we have to register the button by its Name property.
sub_menu = tool_menus.register_menu(
    # the menu name -- this MUST MATCH the name of the combo button we gave
    'LevelEditor.LevelEditorToolBar.MyPythonMenu',
    # parent - we leave this blank in this case
    '',
    # menu type - we just want a normal menu
    unreal.MultiBoxType.MENU,
    # warn_if_already_registered - if False, this will just not do anything if it already exists.
    False
)

# -- now we can create a menu entry. This can be done in a variety of ways.
menu_entry = unreal.ToolMenuEntry()
menu_entry.name = 'MyCustomOption'
menu_entry.set_label('My Custom Option')
menu_entry.type = unreal.MultiBlockType.MENU_ENTRY

sub_menu.add_menu_entry('My Custom Section', menu_entry)

# -- as a final step we need to tell unreal to refresh all menus
tool_menus.refresh_all_widgets()
import unreal

# -- first let's acquire a global instance we'll need - ToolMenus
tool_menus = unreal.ToolMenus.get()

# -- now we need a handle on the main level editor toolbar instance.
# -- we can use ToolMenus' "find_menu" function for this.
toolbar = tool_menus.find_menu('LevelEditor.LevelEditorToolbar')

# -- now let's create a new menu entry
entry = unreal.ToolMenuEntryExtensions.init_menu_entry(
    # owner
    toolbar.menu_name,
    # name
    'MyPythonMenu',
    # label
    'My Python Menu',
    # tooltip
    'This is a custom python menu - you can do cool stuff with it!',
    # command_type
    unreal.ToolMenuStringCommandType.COMMAND,
    # custom command type - we don't need to use this
    '',
    # command string - normally this would be a python command, but we don't need this.
    ''
)

# -- now that we've created the entry, we can tell unreal it's supposed to be a combo button
entry.type = unreal.MultiBlockType.TOOL_BAR_COMBO_BUTTON

# -- and now we can add the button to the toolbar
toolbar.add_menu_entry('PythonExtensions', entry)

# -- as a final step we need to tell unreal to refresh all menus
tool_menus.refresh_all_widgets()
import unreal

# -- first let's acquire a global instance we'll need - ToolMenus
tool_menus = unreal.ToolMenus.get()

# -- now we need a handle on the main level editor toolbar instance.
# -- we can use ToolMenus' "find_menu" function for this.
toolbar = tool_menus.find_menu('LevelEditor.LevelEditorToolbar')

# -- now let's create a new menu entry
entry = unreal.ToolMenuEntryExtensions.init_menu_entry(
    # owner
    toolbar.menu_name,
    # name
    'MyPythonMenu',
    # label
    'My Python Menu',
    # tooltip
    'This is a custom python menu - you can do cool stuff with it!',
    # command_type
    unreal.ToolMenuStringCommandType.COMMAND,
    # custom command type - we don't need to use this
    '',
    # command string - normally this would be a python command, but we don't need this.
    ''
)

# -- now that we've created the entry, we can tell unreal it's supposed to be a combo button
entry.type = unreal.MultiBlockType.TOOL_BAR_COMBO_BUTTON

# -- and now we can add the button to the toolbar
toolbar.add_menu_entry('PythonExtensions', entry)

# -- now we tell unreal that the button we just created is ACTUALLY a menu.
# -- this makes it so that when pressed, unreal does not invoke the button's "actions",
# -- but instead creates a context menu we can populate.
# -- calling this "register_menu" function helpfully also returns a handle on the menu object itself.
# -- Note how we have to register the button by its Name property.
sub_menu = tool_menus.register_menu(
    # the menu name -- this MUST MATCH the name of the combo button we gave
    'LevelEditor.LevelEditorToolBar.MyPythonMenu',
    # parent - we leave this blank in this case
    '',
    # menu type - we just want a normal menu
    unreal.MultiBoxType.MENU,
    # warn_if_already_registered - if False, this will just not do anything if it already exists.
    False
)

# -- now we can create a menu entry. This can be done in a variety of ways.
menu_entry = unreal.ToolMenuEntry()
menu_entry.name = 'MyCustomOption'
menu_entry.set_label('My Custom Option')
menu_entry.type = unreal.MultiBlockType.MENU_ENTRY

sub_menu.add_menu_entry('My Custom Section', menu_entry)

# -- as a final step we need to tell unreal to refresh all menus
tool_menus.refresh_all_widgets()
background-image: url(/images/header-bg.png);
background-repeat: no-repeat;
background-size: cover;
background-position: center;
function art_woocommerce_sorting_attributes_list( $attr ) {

	return wp_list_sort( $attr, 'attribute_label', 'ASC' );
}


add_filter( 'woocommerce_attribute_taxonomies', 'art_woocommerce_sorting_attributes_list' );
SELECT
  teams.team_name AS team_name,
  projects.project_name AS project_name
FROM TABLE teams
INNER JOIN matches
  ON teams.id = matches.team_id
INNER JOIN matches
  ON matches.project_id = projects.id
ORDER BY teams.id;
syncUserPermissions('0058d0000020p2jAAA','0058d000005QinC');


/**
 * Method to sync permission sets between users
 */
void syncUserPermissions(Id sourceUserId, Id targetUserId){
	
	// Get the users details
	User sourceUser = [SELECT Id, Profile.UserLicense.Name FROM User WHERE Id =:sourceUserId];
	User targetUser = [SELECT Id, Profile.UserLicense.Name FROM User WHERE Id =:targetUserId];
	
	// This solves a lot of headaches
	if(sourceUser.Profile.UserLicense.Name != targetUser.Profile.UserLicense.Name ){
		throw new StringException('You can only sync users are of the same licence type.');
	}

	// Query PSAs for source user
	PermissionSetAssignment[] sourceUserAssignments = [SELECT PermissionSetId, IsActive FROM PermissionSetAssignment WHERE  
													  	AssigneeId = :sourceUser.Id AND 
													  	PermissionSet.IsOwnedByProfile = false AND 
													  	PermissionSet.License.Name IN(null, :sourceUser.Profile.UserLicense.Name)
													  ];
	// Query PSA's for the target user
	PermissionSetAssignment[] targetUserAssignments = [SELECT PermissionSetId FROM PermissionSetAssignment WHERE AssigneeId = :targetUser.Id AND PermissionSet.IsOwnedByProfile = false ];


	// Clean target user
	delete targetUserAssignments;

	/**
	 * Create the new assignments
	 */
	targetUserAssignments = new PermissionSetAssignment[]{};
	for(PermissionSetAssignment psa : sourceUserAssignments){
		targetUserAssignments.add(
			new PermissionSetAssignment(
				AssigneeId = targetUser.Id,
				PermissionSetId = psa.PermissionSetId
			)
		);
	}
	insert targetUserAssignments;
}
1. createState(): When the Framework is instructed to build a StatefulWidget, it immediately calls createState()

2. mounted is true: When createState creates your state class, a buildContext is assigned to that state. buildContext is, overly simplified, the place in the widget tree in which this widget is placed. Here's a longer explanation. All widgets have a bool this.mounted property. It is turned true when the buildContext is assigned. It is an error to call setState when a widget is unmounted.

3. initState(): This is the first method called when the widget is created (after the class constructor, of course.) initState is called once and only once. It must call super.initState().

4. didChangeDependencies(): This method is called immediately after initState on the first time the widget is built.

5. build(): This method is called often. It is required, and it must return a Widget.

6. didUpdateWidget(Widget oldWidget): If the parent widget changes and has to rebuild this widget (because it needs to give it different data), but it's being rebuilt with the same runtimeType, then this method is called. This is because Flutter is re-using the state, which is long lived. In this case, you may want to initialize some data again, as you would in initState.

7. setState(): This method is called often from the framework itself and from the developer. Its used to notify the framework that data has changed

8. deactivate(): Deactivate is called when State is removed from the tree, but it might be reinserted before the current frame change is finished. This method exists basically because State objects can be moved from one point in a tree to another.

9. dispose(): dispose() is called when the State object is removed, which is permanent. This method is where you should unsubscribe and cancel all animations, streams, etc.

10. mounted is false: The state object can never remount, and an error is thrown is setState is called.
import 'dart:isolate';

import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        body: BodyWidget(),
      ),
    );
  }
}

class BodyWidget extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Center(
      child: Column(
        mainAxisSize: MainAxisSize.min,
        children: <Widget>[
          CircularProgressIndicator(),
          ElevatedButton(
            child: Text('start'),
            onPressed: () async {

              //ReceivePort is to listen for the isolate to finish job
              final receivePort = ReceivePort();
              // here we are passing method name and sendPort instance from ReceivePort as listener
              await Isolate.spawn(
                  computationallyExpensiveTask, receivePort.sendPort);

              //It will listen for isolate function to finish
              receivePort.listen((sum) {
                print(sum);
              });
            },
          )
        ],
      ),
    );
  }
}

// this function should be either top level(outside class) or static method
void computationallyExpensiveTask(SendPort sendPort) {
  print('heavy work started');
  var sum = 0;
  for (var i = 0; i <= 1000000000; i++) {
    sum += i;
  }
  print('heavy work finished');
  //Remember there is no return, we are sending sum to listener defined defore.
  sendPort.send(sum);
}
GET:
https://login.weixin.qq.com/cgi-bin/mmwebwx-bin/login?
loginicon=true
&uuid=odcptUu2JA==&tip=0
&r=491986618
&_=1455501912000

參數:
_	          1455501912000
loginicon	  true
r	          491986618
tip	          0
uuid	      odcptUu2JA==


響應:
window.code=200;
window.redirect_uri="https://wx.qq.com/cgi-bin/mmwebwx-bin/webwxnewloginpage?
ticket=AeWPQvkt58OOsMey6KvDGecs@qrticket_0
&uuid=odcptUu2JA==
&lang=zh_CN
&scan=1455502017";

https://wx.qq.com/cgi-bin/mmwebwx-bin/webwxnewloginpage?ticket=Afm9OYSI2ZdZT0AupiTRICoI
@qrticket_0&uuid=ocQsGxRrVQ==&lang=zh_CN&scan=1455589608
//Disable Astra Google Fonts

add_filter('astra_google_fonts_selected', function($fonts) {
    return [];
});
//How to Disable Gutenberg & Return to the Classic WordPress Editor Without any Plugins

add_filter( 'use_block_editor_for_post', '__return_false' );
/* Plus and minus Astra theme
	Hebrew Fix
*/
html[lang="he_IL"] .woocommerce form .quantity .plus {
	border-left-width: 1px;
	border-right-width: 0px;
	margin-right: 2px;
}
	/* cart page */
html[lang="he_IL"] .woocommerce form .quantity .minus {
	border-right-width: 1px;
	border-left-width: 0px;
	margin-left: 2px;
}
 //发送快捷方式到桌面
mqq.invoke("system","addShortcut",{
        'scheme': location.href,
        'title':'快捷方式测试',
        'icon':'http://i.gtimg.cn/open/app_icon/05/58/35/77/1105583577_100_m.png'
    },function(evt){
        alert(JSON.stringify(evt));
    }
);
/**
 * 定制接口
 * @param opts 定制内容
 */
setShareInfo({
    title:          '父爱,在你看不到的地方', // 分享标题
    summary:        '父爱如山,感觉不到只因身在此山中', // 分享内容
    pic:            'http://qzonestyle.gtimg.cn/aoi/sola/20150617094556_OvfOpoRKRB.png', // 分享图片
    url:            'http://qzs.qzone.qq.com/qzone/qzact/act/2015/father-day-m/index.html', // 分享链接
    // 微信权限验证配置信息,若不在微信传播,可忽略
    WXconfig: {
        swapTitleInWX: true, // 是否标题内容互换(仅朋友圈,因朋友圈内只显示标题)
        appId: appId, // 公众号的唯一标识
        timestamp: timestamp, // 生成签名的时间戳
        nonceStr: nonceStr, // 生成签名的随机串
        signature: signature // 签名
    }
});
require(['http://qzonestyle.gtimg.cn/qzone/qzact/common/share/share.js'], function(setShareInfo) {
    setShareInfo({
        title:          '父爱,在你看不到的地方',
        summary:        '父爱如山,感觉不到只因身在此山中',
        pic:            'http://qzonestyle.gtimg.cn/aoi/sola/20150617094556_OvfOpoRKRB.png',
        url:            'http://qzs.qzone.qq.com//qzone/qzact/act/2015/father-day-m/index.html',
        WXconfig:       {
            swapTitleInWX: true,
            appId: '',
            timestamp:'',
            nonceStr: '',
            signature: ''
        }
    });
});
require(['http://qzonestyle.gtimg.cn/qzone/qzact/common/share/share.js'], function(setShareInfo) {
    setShareInfo({
        title:          '父爱,在你看不到的地方',
        summary:        '父爱如山,感觉不到只因身在此山中',
        pic:            'http://qzonestyle.gtimg.cn/aoi/sola/20150617094556_OvfOpoRKRB.png',
        url:            'http://qzs.qzone.qq.com//qzone/qzact/act/2015/father-day-m/index.html',
        WXconfig:       {
            swapTitleInWX: true,
            appId: '',
            timestamp:'',
            nonceStr: '',
            signature: ''
        }
    });
});
<script>
var check_marketing = document.querySelector('#advanced-cookies .cookie-switch input').checked;
  
if(check_marketing){
  var cookies_marketing = 'granted';
} else{
  var cookies_marketing = 'denied';
}

 
var check_analitica = document.querySelector('#third_party_cookies .cookie-switch input').checked;
  
if(check_analitica){
  var cookies_analitica = 'granted';
} else{
  var cookies_analitica = 'denied';
}  



dataLayer.push({
  'event': 'guardar_cookies',
  'cookies_analitica': cookies_analitica,
  'cookies_marketing': cookies_marketing
})
</script>
<script>
dataLayer.push({
  'event': 'guardar_cookies',
  'cookies_analitica': 'granted',
  'cookies_marketing': 'granted'
})
</script>
/*Función GDPR*/
if (!is_admin()){
if ( function_exists( 'gdpr_cookie_is_accepted' ) ) {
/* supported types: 'strict', 'thirdparty', 'advanced' */

/*Analítica*/
if ( gdpr_cookie_is_accepted( 'thirdparty' ) ) {
?>
<script>
dataLayer = [{
'cookies_analitica': 'granted'
}];
</script>
<?php
} else {
?>
<script>
dataLayer = [{
'cookies_analitica': 'denied'
}];
</script>
<?php
}

/*Marketing*/
if ( gdpr_cookie_is_accepted( 'advanced' ) ) {
?>
<script>
dataLayer.push({
'cookies_marketing': 'granted'
});
</script>
<?php
} else {
?>
<script>
dataLayer.push({
'cookies_marketing': 'denied'
});
</script>
<?php
}
}
}
add_action('wp_head','add_datalayer');

/*Código de GTM en el head*/
function dcms_add_google_tag_manager_head() { ?>

<!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-XXXXX');</script>
<!-- End Google Tag Manager -->

<?php }
add_action('wp_head', 'dcms_add_google_tag_manager_head');

/*Código de GTM en el body*/
function dcms_add_google_tag_manager_body() { ?>

<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-XXXXX" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->

<?php }
add_action( 'wp_body_open', 'dcms_add_google_tag_manager_body' );
//The fastest option would be to put this into the terminal:

gsettings reset org.gnome.shell app-picker-layout

// Logout and Login to see the changes or, if you're in a hurry, restart the window manager by pressing Alt+F2, then enter r into the command input (and press Enter)

// Alternatively, you can use dconf-editor to control a number of aspects of Gnome. If you don’t already have it installed, you can:

sudo apt install dconf-editor
class Solution
{   
    public:
    //Function to modify the matrix such that if a matrix cell matrix[i][j]
    //is 1 then all the cells in its ith row and jth column will become 1.
    void booleanMatrix(vector<vector<int> > &matrix)
    {
       
        int n1=matrix.size();
        int n2=matrix[0].size();
        vector<pair<int,int>> v;
        for(int i=0;i<n1;i++)
        {
            for(int j=0;j<n2;j++)
            {
                if(matrix[i][j]==1) 
                {
                    v.push_back({i,j});
                    
                }
            }
        }
        int n3=v.size();
        for(int i=0;i<n3;i++)
        {
            for(int j=0;j<n2;j++)
            {
                matrix[v[i].first][j]=1;
            }
            for(int j=0;j<n1;j++)
            {
                matrix[j][v[i].second]=1;
            }
        }
    }
};
function elMax(){
let max = Math.max(4,987,8,9,4,87,85,26);
return max;
}
elMax()
let a = prompt('sonni kirit'), b = prompt('sonni kirit'), sum = 0;
function summ(a, b){
return sum = a + b;
}
summ(a-0,b-0)
const loading = `<div class="spinner spinner-border text-white" role="status">
                <span class="sr-only">Loading...</span>
            </div> Loading`

beforeSend: function () {
    $("#btn-submit").html(loading);
    $("#btn-submit").attr('disabled', true);
},
success: function (response) {
  $("#btn-submit").removeAttr('disabled');
  $("#btn-submit").html("Proses");
}
class Solution
{   
    public: 
    //Function to return a list of integers denoting spiral traversal of matrix.
    vector<int> spirallyTraverse(vector<vector<int> > matrix, int r, int c) 
    {
        
        int l=0;
        int ri=c-1;
        int u=0;
        int d=r-1;
        
        vector<int>v;
        while(l<=ri && u<=d)
        {
            for(int i=l;i<=ri;i++)
            {
                v.push_back(matrix[u][i]);
            }
            u++;
            
            for(int i=u;i<=d;i++)
            {
                v.push_back(matrix[i][ri]);
            }
            ri--;
            
            if(u<=d)
            {
                for(int i=ri;i>=l;i--)
                {
                    v.push_back(matrix[d][i]);
                }
                
                d--;
            }
            
            if(l<=ri)
            {
                for(int i=d;i>=u;i--)
                {
                    v.push_back(matrix[i][l]);
                }
                l++;
            }
        }
        return v;
    }
};
#include<stdio.h>  
  
long factorial(int n)  
{  
  if (n == 0)  
    return 1;  
  else  
    return(n * factorial(n-1));  
}  
   
void main()  
{  
  int number;  
  long fact;  
  printf("Enter a number: ");  
  scanf("%d", &number);   
   
  fact = factorial(number);  
  printf("Factorial of %d is %ld\n", number, fact);  
  return 0;  
}  
#include<stdio.h>
void TOH(int n,char x,char y,char z) {
   if(n>0) {
      TOH(n-1,x,z,y);
      printf("
%c to %c",x,y);
      TOH(n-1,z,y,x);
   }
}
int main() {
   int n=3;
   TOH(n,'A','B','C');
}
"The Chromium network stack uses the system network settings so that users and administrators can control the network settings of all applications easily. The network settings include:

 - proxy settings
 - SSL/TLS settings
 - certificate revocation check settings
 - certificate and private key stores"
C:\Users\TestProUser> java -jar selenium-server-4.7.2.jar node

05:26:15.112 INFO [NodeServer.execute] - Started Selenium node 4.7.2 (revision 79f1c02ae20): http://192.168.55.100:5555
05:26:15.123 INFO [NodeServer$1.lambda$start$1] - Sending registration event...
05:26:15.477 INFO [NodeServer.lambda$createHandlers$2] - Node has been added

C:\Users\TestProUser> java -jar selenium-server-4.7.2.jar standalone

06:09:51.094 INFO [LocalDistributor.add] - Added node de4f0f9b-bf52-46d0-94a4-2dd3167b0e17 at http://192.168.55.100:4444. Health check every 120s
06:09:51.299 INFO [Standalone.execute] - Started Selenium Standalone 4.7.2 (revision 79f1c02ae20): http://192.168.55.100:4444
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Aptech Orangi</title>
    <link rel="icon" type="image/x-icon"  
    
    href="WIN_20220715_19_31_36_Pro (2).ico">
</head>
<body>
    <h1>This is a Heading 1</h1>
    <h2>This is a Heading 2</h2>
    <h4>This is a Heading 3</h3>
    <h4>This is a Heading 4</h4>
    <h5>This is a Heading 5</h5><hr><hr>
    <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Praesentium maxime iusto esse numquam sit! Itaque doloribus voluptas veritatis aperiam quo quasi beatae neque fuga aspernatur ipsum cumque repudiandae sit totam, reprehenderit hic error rerum assumenda, repellendus in impedit nihil harum! Atque corporis sunt consequuntur maiores sed repellat natus voluptatibus sequi qui sapiente ipsum, maxime inventore cumque repudiandae nobis consequatur quas modi? Inventore culpa, facilis ex nisi similique, aut quidem ipsam, quod cumque animi earum quo numquam laborum tempore! Ad rerum debitis,<br><br> hic modi reiciendis dolorum harum vitae beatae minima. Dolore quis nihil aperiam. Sequi accusamus officia excepturi ut blanditiis, aliquid, mollitia itaque sunt cum illo aliquam dolorem beatae! Eaque dolorem, fuga quidem cum officia eligendi voluptatum, mollitia earum ad, repudiandae asperiores dignissimos consectetur reiciendis dicta. Rem nihil exercitationem possimus adipisci, inventore sed, beatae consequuntur labore corporis mollitia repudiandae soluta excepturi cum saepe cumque vero? Deserunt nulla ex atque? Sit iure, nisi similique, modi deserunt illo omnis fugit culpa temporibus quod eius velit maiores aliquam quibusdam fuga officiis labore? Officiis itaque, non culpa aspernatur, eos deleniti veniam necessitatibus aliquid quae perferendis incidunt distinctio similique quia voluptate molestias unde magnam iure consequuntur pariatur? Eum consequatur quae rem fugit repellendus quod ea laudantium iste nihil. Distinctio, ratione harum ex dolor nemo labore repellat? Suscipit, eius corporis. Commodi unde doloribus id, eius itaque dignissimos praesentium nemo nobis distinctio possimus enim, delectus quo esse quod quidem beatae recusandae! Odit dolore totam harum ullam laboriosam laudantium minima iure repellendus expedita assumenda ipsa optio at vero facere quod placeat debitis maiores non commodi, delectus mollitia temporibus pariatur sequi. Enim, est sequi nihil repellat corrupti id quisquam illo eligendi, cumque officia totam itaque <br><br>necessitatibus vitae numquam quia commodi. Aliquid odit eaque rerum doloremque eum facilis quo libero, dolor qui quisquam, porro velit unde. Odio tenetur reprehenderit officiis temporibus laborum rem provident? Ratione amet doloremque aliquid ipsam ducimus aperiam qui similique praesentium ea, error veniam veritatis voluptas deserunt esse excepturi voluptates repellat quis tenetur sunt officiis ab quo pariatur! Fugiat molestias a cupiditate autem ab repellat, molestiae optio at? Soluta cum modi quisquam enim aliquam sint nam velit quasi facere molestiae repellendus placeat dolores nulla eius optio quia sit alias necessitatibus vitae, magnam quis temporibus ut? Error, nihil optio minus laborum saepe minima possimus ducimus illum provident ad! Pariatur reprehenderit quas natus dicta at, odit optio quasi. Omnis dicta officia molestiae quam esse iste sapiente eos, totam veritatis adipisci corrupti. Quo nemo sed a suscipit beatae incidunt, quidem nostrum expedita earum quas nulla commodi rem aut necessitatibus fugiat pariatur, veniam ut eius ipsa quam blanditiis voluptatem inventore? Magni quibusdam architecto expedita temporibus, maiores quae aliquid modi. Vel quos cupiditate dolore, dolorem voluptates earum possimus fugit repellendus corporis velit nam, eveniet id iusto neque distinctio inventore quo soluta totam. Dignissimos cupiditate ut ea nisi animi culpa, incidunt sit autem odit ex quam suscipit accusantium voluptatem quae illum fugiat dolorem sapiente quod veritatis. Sed ullam quos doloremque voluptatibus voluptate natus quod ea fugit praesentium, repellendus ipsum ratione molestias quas laborum accusamus.</p>
    
    <hr><hr>

    <!-- Example of Absolute Link -->
    <a href="http://www.youtube.com"> Click Here to Web Page</a><br><br>

    <!-- Example of Relative Link -->
    <a href="demo 123.html"> Download Now</a>

    <img src="https://cdn.pixabay.com/photo/2015/04/23/22/00/tree-736885_960_720.jpg" border="5">

    <img src="/joker.jpg" height="500px" width="900px" border="10">

    <!-- Bold text italic and underline -->
    <b>This is Bold Text</b><br>
    <i>This is Italic</i><br>
    <u>This is Underline</u><br>

    <br>
    <big>This is a Big</big>
<br><br><br>
    <small>This is a Samll
    </small>

    <pre>
        svg width="100" height="100">
  circle cx="50" cy="50" r="40" stroke="green" stroke-width="4" fill="yellow" />
/svg>

/body>
/html>

/body>
/html>
        h1>This is a Heading/h1>
    p>This is a Paragraph/p>
    

     -
     !-- Improve below paragreph  -->
hr>/body>
    
    
        <!-- subscript and superscript -->

        <p>CO<sub>2</sub></p>

        <p>a<sup>2</sup>+ br + c</p>
</body>
</html>
/**
 * @snippet       Product Images @ Woo Checkout
 * @how-to        Get CustomizeWoo.com FREE
 * @author        Rodolfo Melogli
 * @compatible    WooCommerce 5
 * @donate $9     https://businessbloomer.com/bloomer-armada/
 */
 
add_filter( 'woocommerce_cart_item_name', 'bbloomer_product_image_review_order_checkout', 9999, 3 );
 
function bbloomer_product_image_review_order_checkout( $name, $cart_item, $cart_item_key ) {
    if ( ! is_checkout() ) return $name;
    $product = $cart_item['data'];
    $thumbnail = $product->get_image( array( '50', '50' ), array( 'class' => 'alignleft' ) );
    return $thumbnail . $name;
}
star

Tue Nov 08 2022 15:46:00 GMT+0000 (Coordinated Universal Time) https://pyautogui.readthedocs.io/en/latest/keyboard.html

@super

star

Tue Nov 08 2022 15:43:08 GMT+0000 (Coordinated Universal Time) https://stackoverflow.com/questions/43167871/how-to-trigger-a-windows-and-l-key-python-hotkey

@super

star

Tue Nov 08 2022 14:46:55 GMT+0000 (Coordinated Universal Time)

@selizabethms

star

Tue Nov 08 2022 14:41:23 GMT+0000 (Coordinated Universal Time) https://blog.wpbox.kr/how-to-upload-files-restricted-by-wordpress/

@ncia

star

Tue Nov 08 2022 14:15:51 GMT+0000 (Coordinated Universal Time)

@MaVCArt #python

star

Tue Nov 08 2022 14:15:23 GMT+0000 (Coordinated Universal Time)

@MaVCArt #python

star

Tue Nov 08 2022 14:14:56 GMT+0000 (Coordinated Universal Time)

@MaVCArt #python

star

Tue Nov 08 2022 14:14:18 GMT+0000 (Coordinated Universal Time)

@MaVCArt #python

star

Tue Nov 08 2022 14:13:47 GMT+0000 (Coordinated Universal Time)

@MaVCArt #python

star

Tue Nov 08 2022 14:13:14 GMT+0000 (Coordinated Universal Time)

@MaVCArt #python

star

Tue Nov 08 2022 14:12:29 GMT+0000 (Coordinated Universal Time)

@MaVCArt #python

star

Tue Nov 08 2022 14:10:59 GMT+0000 (Coordinated Universal Time)

@MaVCArt #python

star

Tue Nov 08 2022 14:10:11 GMT+0000 (Coordinated Universal Time)

@MaVCArt #python

star

Tue Nov 08 2022 14:09:27 GMT+0000 (Coordinated Universal Time)

@MaVCArt #python

star

Tue Nov 08 2022 14:08:19 GMT+0000 (Coordinated Universal Time)

@MaVCArt #python

star

Tue Nov 08 2022 14:07:42 GMT+0000 (Coordinated Universal Time)

@MaVCArt #python

star

Tue Nov 08 2022 14:06:11 GMT+0000 (Coordinated Universal Time)

@MaVCArt #python

star

Tue Nov 08 2022 14:01:26 GMT+0000 (Coordinated Universal Time) https://database.guide/6-ways-to-check-if-a-table-exists-in-sql-server-t-sql-examples/

@p83arch #table #exists

star

Tue Nov 08 2022 13:12:32 GMT+0000 (Coordinated Universal Time)

@Muhmmad_Jawad

star

Tue Nov 08 2022 13:07:00 GMT+0000 (Coordinated Universal Time) https://gist.github.com/artikus11/1d2b2459474154fd27d4e01cb4391e7a

@netropol #php

star

Tue Nov 08 2022 12:39:12 GMT+0000 (Coordinated Universal Time) https://www.freecodecamp.org/news/sql-inner-join-how-to-join-3-tables-in-sql-and-mysql/

@rajkumar515 #mysql

star

Tue Nov 08 2022 11:30:02 GMT+0000 (Coordinated Universal Time)

@Justus #apex

star

Tue Nov 08 2022 10:57:04 GMT+0000 (Coordinated Universal Time)

@yashmakan #flutter

star

Tue Nov 08 2022 10:52:17 GMT+0000 (Coordinated Universal Time) https://codingwithtashi.medium.com/isoltate-flutter-dart-multithreading-cf5f67de9b46

@yashmakan #flutter #dart

star

Tue Nov 08 2022 09:44:36 GMT+0000 (Coordinated Universal Time) https://www.itdaan.com/tw/2a5c5bfece078894ac40497c76721a81

@lingleinanhai

star

Tue Nov 08 2022 08:50:48 GMT+0000 (Coordinated Universal Time)

@yosk #theme #disable #astra

star

Tue Nov 08 2022 08:49:28 GMT+0000 (Coordinated Universal Time)

@yosk #astra #theme #woocomerce

star

Tue Nov 08 2022 08:48:13 GMT+0000 (Coordinated Universal Time) https://open.mobile.qq.com/api/qzone/index

@lingleinanhai

star

Tue Nov 08 2022 08:36:02 GMT+0000 (Coordinated Universal Time) https://www.cnblogs.com/qianduanjingying/p/5150975.html

@lingleinanhai #none

star

Tue Nov 08 2022 08:35:54 GMT+0000 (Coordinated Universal Time) https://www.cnblogs.com/qianduanjingying/p/5150975.html

@lingleinanhai #none

star

Tue Nov 08 2022 08:35:46 GMT+0000 (Coordinated Universal Time) https://www.cnblogs.com/qianduanjingying/p/5150975.html

@lingleinanhai #none

star

Tue Nov 08 2022 07:43:57 GMT+0000 (Coordinated Universal Time) https://www.itxasojocano.com/blog/como-configurar-el-consent-mode-de-google-para-cumplir-con-la-ley-de-cookies-en-wordpress/

@edujca

star

Tue Nov 08 2022 07:43:19 GMT+0000 (Coordinated Universal Time) https://www.itxasojocano.com/blog/como-configurar-el-consent-mode-de-google-para-cumplir-con-la-ley-de-cookies-en-wordpress/

@edujca

star

Tue Nov 08 2022 07:38:15 GMT+0000 (Coordinated Universal Time) https://www.itxasojocano.com/blog/como-configurar-el-consent-mode-de-google-para-cumplir-con-la-ley-de-cookies-en-wordpress/

@edujca

star

Tue Nov 08 2022 07:37:04 GMT+0000 (Coordinated Universal Time) https://www.itxasojocano.com/blog/como-configurar-el-consent-mode-de-google-para-cumplir-con-la-ley-de-cookies-en-wordpress/

@edujca

star

Tue Nov 08 2022 06:23:41 GMT+0000 (Coordinated Universal Time) https://askubuntu.com/questions/1303367/how-do-i-sort-the-gnome-3-38-show-applications-menu-into-alphabetical-order

@sahilchraya

star

Tue Nov 08 2022 05:54:38 GMT+0000 (Coordinated Universal Time) https://practice.geeksforgeeks.org/problems/boolean-matrix-problem-1587115620/1?utm_source=gfg&utm_medium=article&utm_campaign=bottom_sticky_on_article

@Ranjan_kumar #c++

star

Tue Nov 08 2022 05:22:47 GMT+0000 (Coordinated Universal Time)

@ULUGBEK #javascript

star

Tue Nov 08 2022 05:06:09 GMT+0000 (Coordinated Universal Time)

@ULUGBEK #javascript

star

Tue Nov 08 2022 03:42:20 GMT+0000 (Coordinated Universal Time)

@GodFather #javascript

star

Tue Nov 08 2022 03:34:36 GMT+0000 (Coordinated Universal Time) https://practice.geeksforgeeks.org/problems/spirally-traversing-a-matrix-1587115621/1?utm_source=gfg&utm_medium=article&utm_campaign=bottom_sticky_on_article

@Ranjan_kumar #c++

star

Tue Nov 08 2022 03:03:03 GMT+0000 (Coordinated Universal Time) https://www.javatpoint.com/factorial-program-in-c

@SonGoku003

star

Tue Nov 08 2022 02:56:53 GMT+0000 (Coordinated Universal Time) https://www.tutorialspoint.com/c-program-for-tower-of-hanoi

@SonGoku003

star

Tue Nov 08 2022 02:34:52 GMT+0000 (Coordinated Universal Time) https://alvinalexander.com/blog/post/postgresql/log-in-postgresql-database/

@mvieira

star

Mon Nov 07 2022 21:53:54 GMT+0000 (Coordinated Universal Time) https://code.visualstudio.com/docs/setup/network

@j3rjohnson

star

Mon Nov 07 2022 21:29:02 GMT+0000 (Coordinated Universal Time)

@TestProSupport

star

Mon Nov 07 2022 21:12:26 GMT+0000 (Coordinated Universal Time)

@TestProSupport

star

Mon Nov 07 2022 21:10:48 GMT+0000 (Coordinated Universal Time) http://127.0.0.1:5500/hash tag.html

@Mahamud123@

star

Mon Nov 07 2022 20:48:29 GMT+0000 (Coordinated Universal Time) https://www.businessbloomer.com/woocommerce-show-product-images-checkout-page/

@ncia

Save snippets that work with our extensions

Available in the Chrome Web Store Get Firefox Add-on Get VS Code extension