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
/* | |
* To change this license header, choose License Headers in Project Properties. | |
* To change this template file, choose Tools | Templates | |
* and open the template in the editor. | |
*/ | |
package com.consumiqate.controllers; | |
import static com.consumiqate.controllers.BasicController.logger; | |
import com.consumiqate.scheduler.telegram.BotInfoRunnable; | |
import com.consumiqate.scheduler.telegram.TelegramBotRunnable; |
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
gsettings set org.gnome.settings-daemon.plugins.cursor active false |
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
<apex:page controller="TestDriveCtrl"> | |
<script> | |
window.onload = function() { | |
console.log('{!$Profile.Name}'); | |
var t = '{!$User.UIThemeDisplayed}'; | |
if ('Theme4t' == t){ | |
alert('Salesforce1'); | |
} | |
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
public class TestDriveCtrl { | |
public TestDrive__c drive {get; set;} | |
public List<SelectOption> makes { get; set; } | |
public List<SelectOption> models { get; set; } | |
public String selectedMake { set; get; } | |
public String selectedModel {get;set;} | |
public TestDriveCtrl(){ | |
makes = new List<SelectOption>(); | |
models = new List<SelectOption>(); |
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
public class CustomEventHelper { | |
public Boolean timeAv(DateTime s, DateTime e, Id accId, Id cid) { | |
Boolean allowed = false; | |
try { | |
Long c = [SELECT count() FROM CustomEvent__c WHERE Account__c=:accId | |
AND | |
( | |
(StartDate__c <=:s AND EndDate__c >=:s) OR | |
(StartDate__c <=:e AND EndDate__c >=:e) OR |
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
trigger Inventory on Account(before insert, before update) { | |
List<Account> newList = trigger.new; | |
for (Account a : newList){ | |
if (a.Country__c != null && a.AccountNumber != null){ | |
AccountCustomSetting__c s = AccountCustomSetting__c.getValues(a.Country__c); | |
if (s!= null){ | |
String fieldName = s.Field__c; | |
a.put(fieldName, a.AccountNumber); | |
a.AccountNumber = null; |
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
trigger CustomEvent on CustomEvent__c(before insert, before update) { | |
CustomEventHelper h = new CustomEventHelper(); | |
for (CustomEvent__c e : trigger.new){ | |
if (e.StartDate__c == null || e.EndDate__c == null || (e.EndDate__c.getTime() - e.StartDate__c.getTime()) <=0){ | |
e.addError('Укажите корректные даты (непустые и дата окончания должна быть больше даты начала)'); | |
return; | |
} | |
if (!h.timeAv(e.StartDate__c, e.EndDate__c, e.Account__c, e.Id)){ | |
e.addError('Dates are already taken'); |
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
shuf -i 79001111111-79999999999 -n 4000000 > 23.txt |
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
"to":"cjFZhREpxz8:APA91bG_WmuMpNWQ3xTMR9mzVEM2GEYHHkG2O3Ye-XFLBFsAlt6ZlYd_ZHIiqi0raTWUBlDNBTS453gFMbrgpiiBiBAbtSc7eUpoe03_IwZWUG5Q6Yz_NlxTXNZ_lHEMIm9dwZVMTfgQ","data":{"sdInfo":{"sdLogin":"atfbanksd","sdUuid":"678d2751-fa39-4c43-86de-c3276b66de24","p":1},"message":"сваваываыв","notId":"678d2751-fa39-4c43-86de-c3276b66de24"},"notification":{"body":"сваваываыв","title":"Atfbank"}} |
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
-Djava.security.egd=file:/dev/urandom |