This file contains 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 standardController="Account" extensions="AccountApprovalCloneExtension" > | |
<apex:pageBlock title="Approval History Clone"> | |
<table class="list" border="0" cellspacing="0"> | |
<tbody> | |
<tr class="headerRow"> | |
<th class="actionColumn" scope="col">Action</th> | |
<th scope="col" class=" zen-deemphasize">Date</th> | |
<th scope="col" class=" zen-deemphasize">Status</th> | |
<!--<th scope="col" class=" zen-deemphasize">Assigned To</th>--> |
This file contains 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
package com.emoran; | |
import java.io.IOException; | |
import java.net.URISyntaxException; | |
import java.nio.file.Files; | |
import java.nio.file.Paths; | |
import java.security.KeyFactory; | |
import java.security.NoSuchAlgorithmException; | |
import java.security.PrivateKey; | |
import java.security.Signature; |
This file contains 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
using System.Diagnostics; | |
using System.Data; | |
using System.Collections; | |
using Microsoft.VisualBasic; | |
using System.Collections.Generic; | |
using System; | |
using System.Net; | |
using System.IO; | |
using System.Text.RegularExpressions; |
This file contains 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
output application/java --- readUrl('classpath://sample_data/gsheet_date.json') |
This file contains 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
%dw 2.0 | |
output application/java | |
--- | |
flatten(valuesOf(payload) map ((item, index) -> item.*payload)) |
This file contains 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 cl_pruebas { | |
public cl_pruebas() { | |
} | |
public void init(){ | |
String my_json='{"account":"01ti0000006s5I4AAI","products":[{"id":"01ti0000006s5I8AAI","qty":"8","price":"1.00","name":"cebolla cambray c/rabano"},{"id":"01ti0000006s5I4AAI","qty":"10","price":"1.00","name":"carambola"}]}'; | |
//Deserialize from the original type, in this case Object |
This file contains 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
package com.moran; | |
import java.io.File; | |
import java.io.FileInputStream; | |
import java.io.InputStream; | |
import java.util.ArrayList; | |
import java.util.Enumeration; | |
import java.util.List; | |
import java.util.zip.ZipEntry; | |
import java.util.zip.ZipFile; |
This file contains 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 showHeader="true" sidebar="true"> | |
<style> | |
#map-canvas { | |
width:100%; | |
height:500px; | |
} | |
#map_canvas { | |
width:100%; | |
height:500px; | |
} |
This file contains 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 RestServiceConsumerDW { | |
public static void consume(){ | |
Http http = new Http(); | |
HttpRequest request = new HttpRequest(); | |
request.setEndpoint('https://techcrunch.com/wp-json/wp/v2/posts?per_page=2&context=embed'); | |
request.setMethod('GET'); | |
HttpResponse response = http.send(request); | |
// If the request is successful, parse the JSON response. | |
if(response.getStatusCode() == 200) { |
This file contains 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
List<String> listWords = new List<String>{'bored','robed','cat','act','tac','eme'}; | |
Map<String,List<String>> mapWords = new Map<String,List<String>>(); | |
for(String word: listWords){ | |
List<String> splittedWord = word.split(''); | |
splittedWord.sort(); | |
String wordNew = ''; | |
for(String newWord:splittedWord){ |
NewerOlder