Skip to content

Instantly share code, notes, and snippets.

Vova kurunve

  • student
Block or report user

Report or block kurunve

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View QuickPerformanceCheck
// IF case
DateTime dt = DateTime.now();
Integer j = 0;
for(Integer i = 0; i < 100000; i++) {
String s = 'str' + i*i + '-' + (i-12);
String s2 = 'str' + (i+(i-1)*i)+ '-' + (i-3*4);
if(s == s2) {}
if(i == j) {}
j++;
View keybase.md

Keybase proof

I hereby claim:

  • I am kurunve on github.
  • I am kurunve (https://keybase.io/kurunve) on keybase.
  • I have a public key ASC1DkzCUPSY6NyvuHlPxYbj6agPWoWH_E7uosITfPDLUAo

To claim this, I am signing this object:

View gist:24322de8df1b85b7a45c956c52ab0016
// Usecase -- 1000 accounts with different ids
// Procedure of testing. Basically a define [1000/a] records in first set, and b define [1000/b] records in second set
public static void doMagic(Integer a, Integer b) {
Map<Id, Account> accs = new Map<Id, Account>([SELECT Id FROM Account]);
system.debug(accs.size());
Set<Id> account_ids = accs.keySet();
Set<Id> set1 = new Set<id>();
Set<Id> set2 = new Set<Id>();
Set<Id> set1_a = new Set<id>();
View promise_playground_2.js
"use strict";
var Promise = require('bluebird');
class ChainThing {
constructor(param1, param2) {
this.time = param1;
this.message = param2;
}
step1() {
console.log('['+this.message+'] STEP 1 ');
return new Promise((resolve, reject) => {
View promise_playground.js
"use strict";
var Promise = require('bluebird');
class ChainThing {
constructor(param1, param2) {
this.time = param1;
this.message = param2;
}
step1() {
console.log('['+this.message+'] STEP 1 ');
return new Promise((resolve, reject) => {
View Some apex
public class MegaQueueable implements Queueable, Database.AllowsCallouts {
public Map<Id, String> AssetData;
public MegaQueueable (Map<Id,String> asset_data){
AssetData = asset_data;
}
public void execute(QueueableContext context) {
Map<Id, Asset> asset_map = new Map<Id, Asset>([SELECT Id, assetLastValidatedLogicHistory__c FROM Asset WHERE Id in :AssetData.keySet()]);
View style.css
/* Reset */
html, body, h1, h2, h3, h4, h5, h6, p, ol, ul, li, dl,
dt, dd, blockquote, address{
margin: 0;
padding: 0;
}
article,aside,details,figcaption,figure,
footer,header,hgroup,menu,nav,section,form {
View HTML Task Kottans
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Some Abstract Page</title>
</head>
<body>
<header>
<nav>
<a href="#about">About</a>
You can’t perform that action at this time.