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
| package main | |
| import "fmt" | |
| import "math/rand" | |
| import "time" | |
| func main(){ | |
| const n = 10000000 | |
| var arr [n]int | |
| var counter [100]int |
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
| ```groovy | |
| // http://poi.apache.org/encryption.html | |
| import org.apache.poi.poifs.filesystem.POIFSFileSystem | |
| import org.apache.poi.poifs.crypt.EncryptionInfo | |
| import org.apache.poi.poifs.crypt.Encryptor | |
| import org.apache.poi.poifs.crypt.EncryptionMode | |
| import org.apache.poi.openxml4j.opc.OPCPackage |
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
| def executeCommand(String command) { | |
| println('executing commands:') | |
| println(command) | |
| StringBuffer output = new StringBuffer(); | |
| Process p; | |
| try { | |
| p = Runtime.getRuntime().exec(command); | |
| p.waitFor(); | |
| BufferedReader reader = | |
| new BufferedReader(new InputStreamReader(p.getInputStream())); |
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
| table = Dev::Account.arel_table | |
| stmt = Arel::UpdateManager.new | |
| stmt.table table | |
| stmt.where(table[:sfid].eq('0010H00002Ez1waQAB')) | |
| stmt.set("name='Tracy'") | |
| stmt.to_sql |
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
| import re | |
| import os | |
| from collections import defaultdict | |
| import json | |
| import pydot | |
| def parse_relationships_from_sql_files(sql_folder_path): | |
| full_relationships = [] | |
| for root, _, files in os.walk(sql_folder_path): |