(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
[ | |
{name: 'Afghanistan', code: 'AF'}, | |
{name: 'Åland Islands', code: 'AX'}, | |
{name: 'Albania', code: 'AL'}, | |
{name: 'Algeria', code: 'DZ'}, | |
{name: 'American Samoa', code: 'AS'}, | |
{name: 'AndorrA', code: 'AD'}, | |
{name: 'Angola', code: 'AO'}, | |
{name: 'Anguilla', code: 'AI'}, | |
{name: 'Antarctica', code: 'AQ'}, |
import java.security.SecureRandom; | |
import javax.crypto.spec.PBEKeySpec; | |
import javax.crypto.SecretKeyFactory; | |
import java.math.BigInteger; | |
import java.security.NoSuchAlgorithmException; | |
import java.security.spec.InvalidKeySpecException; | |
/* | |
* PBKDF2 salted password hashing. | |
* Author: havoc AT defuse.ca |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
/*Use case | |
Define styles for before floating and when floating as below. | |
.panel-static { | |
position: relative; | |
left: 0px; | |
z-index: 200; | |
width: 260px; | |
height: 500px; | |
float: left; |
import org.junit.Test; | |
import org.junit.runner.RunWith; | |
import org.openqa.selenium.support.FindBy; | |
import org.openqa.selenium.WebElement; | |
import com.github.webdriverextensions.junitrunner.WebDriverRunner; | |
import com.github.webdriverextensions.junitrunner.annotations.*; | |
import static com.github.webdriverextensions.Bot.*; | |
import static java.util.concurrent.TimeUnit.SECONDS; |
var exp1 = "(true && true || false) && (true || (false && true))"; | |
var exp2 = "((true && true) || false && !true)"; | |
var exp3 = "(true && !false) && true && !false"; | |
var exp4 = "(a && b) && c && d"; | |
console.log(exp1 + ' = ' + parseBoolStr(exp1)); | |
console.log(exp2 + ' = ' + parseBoolStr(exp2)); | |
console.log(exp3 + ' = ' + parseBoolStr(exp3)); | |
console.log(exp4 + ' = ' + parseBoolStr(exp4)); |
<aura:component implements="flexipage:availableForAllPageTypes" access="global" controller="LightningRecordEditFormController"> | |
<aura:attribute name="disabled" type="Boolean" default="false" /> | |
<aura:attribute name="layoutSections" type="List" /> | |
<aura:attribute name="saved" type="Boolean" default="false" /> | |
<aura:attribute name="showSpinner" type="Boolean" default="true" /> | |
<aura:attribute name="fieldName" type="String" default="StageName" /> | |
<aura:handler name="init" value="{!this}" action="{!c.doInit}"/> | |
<lightning:card title=""> |
public class RSA { | |
private Key key; | |
// Hex digits | |
private static final String DIGITS = '0123456789abcdef'; | |
private static final Decimal HEX_BASE = 16; | |
public abstract class Key { | |
private String modulus; | |
public Key(String modulus) { |
@IsTest | |
public class HttpMock implements HttpCalloutMock { | |
private static final String ANY_URL = null; | |
private Map<String, Map<String, Object>> responses = new Map<String, Map<String, Object>>(); | |
// PUBLIC |