Não use UUID
como PK nas tabelas do seu banco de dados.
from pyspark.sql.functions import col, explode_outer, from_json, lit, concat | |
from pyspark.sql.types import StructType, ArrayType | |
def get_json_df(input_df, primary_partition_column, json_column_name, spark_session): | |
''' | |
Description: | |
This function provides the schema of json records and the dataframe to be used for flattening | |
:param input_df: [type: pyspark.sql.dataframe.DataFrame] input dataframe |
- https://www.justingarrison.com/blog/2020-08-31-remote-onboarding/
- https://twitter.com/rothgar/status/1296911972215058432
- https://twitter.com/rothgar/status/1296911975314677760
The problems I've had on-boarding remotely are
pipeline { agent any tools { maven 'apache-maven-3.3.9' jdk 'jdk1.8' } stages { stage('Build') { steps {
<!-- Instructions: | |
- Download and unzip Mojave dynamic background here: https://files.rb.gd/mojave_dynamic.zip | |
- Rename the extracted folder as "mojave-background" (Excuse the trouble but I renamed it on my machine and already use that path in the XML file) | |
- Save this xml file next to the Mojave background files | |
- Fix the path to the background images below (better using absolute path) | |
- Lastly, either: | |
+ GNOME: Use gnome-tweaks tool to select this XML as wallpaper (as default wallpaper settings won't let you choose wallpaper from custom path) | |
+ MATE: Go to background setting (in Appearance) > Choose +Add... > make sure **All files** filter is selected at the bottom right > Then choose mojave.xml | |
--> | |
<background> |
I was talking to a coworker recently about general techniques that almost always form the core of any effort to write very fast, down-to-the-metal hot path code on the JVM, and they pointed out that there really isn't a particularly good place to go for this information. It occurred to me that, really, I had more or less picked up all of it by word of mouth and experience, and there just aren't any good reference sources on the topic. So… here's my word of mouth.
This is by no means a comprehensive gist. It's also important to understand that the techniques that I outline in here are not 100% absolute either. Performance on the JVM is an incredibly complicated subject, and while there are rules that almost always hold true, the "almost" remains very salient. Also, for many or even most applications, there will be other techniques that I'm not mentioning which will have a greater impact. JMH, Java Flight Recorder, and a good profiler are your very best friend! Mea
"""This module contains all of the necessary PyGame components for | |
running a simplified game loop. | |
Use it for test cases on PyGame-related code. | |
""" | |
import sys | |
import pygame | |
from pygame.locals import * | |
# Import additional modules here. | |
console.log('Loading function'); | |
var AWS = require('aws-sdk'); | |
AWS.config.region = 'us-west-2'; | |
exports.handler = function(event, context) { | |
console.log("\n\nLoading handler\n\n"); | |
var sns = new AWS.SNS(); | |
sns.publish({ |
// Ao [criar o índice][0], especifique um [analyzer customizado][1] responsável por tratar palavras | |
// com caracteres especiais e o plural da lingua Portuguesa. Algumas palavras precisarão de uma | |
// sintonia fina, o que pode ser feito através de [stemmer overrides][2]. Além disso, ao criar um | |
// campo atribua o analyzer a ele. | |
PUT produtos | |
{ | |
"settings": { | |
"analysis": { | |
"analyzer": { |
;SMBDIS.ASM - A COMPREHENSIVE SUPER MARIO BROS. DISASSEMBLY | |
;by doppelganger (doppelheathen@gmail.com) | |
;This file is provided for your own use as-is. It will require the character rom data | |
;and an iNES file header to get it to work. | |
;There are so many people I have to thank for this, that taking all the credit for | |
;myself would be an unforgivable act of arrogance. Without their help this would | |
;probably not be possible. So I thank all the peeps in the nesdev scene whose insight into | |
;the 6502 and the NES helped me learn how it works (you guys know who you are, there's no |