-
https://fred.stlouisfed.org/series/PERMIT - levelingoff/dropping
-
https://fred.stlouisfed.org/series/UNRATE - flatlining or starting to curve up
-
https://fred.stlouisfed.org/series/T10Y2Y - going past zero (first time gives you about 18 months, second time is GTFO)
-
https://fred.stlouisfed.org/series/RECPROUSM156N - if youre in the market when this thing is rising omae wa mou shindeiru and it will not get better soon so grab qqq puts ASAP and ride it down for a year and cash out.
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
export const AV_REAL_TIME = "Rank A: Real-Time Performance"; | |
export const AV_1D = "Rank B: 1 Day Performance"; | |
export const AV_5D = "Rank C: 5 Day Performance"; | |
export const AV_1M = "Rank D: 1 Month Performance"; | |
export const AV_3M = "Rank E: 3 Month Performance"; | |
export const AV_YTD = "Rank F: Year-to-Date (YTD) Performance"; | |
export const AV_1Y = "Rank G: 1 Year Performance"; | |
export const AV_3Y = "Rank H: 3 Year Performance"; | |
export const AV_5Y = "Rank I: 5 Year Performance"; | |
export const AV_10Y = "Rank J: 10 Year Performance"; |
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
https://draftjs.org/ |
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
const timeout = ms => new Promise(res => setTimeout(res, ms)) | |
function convinceMe (convince) { | |
let unixTime = new Date().getTime() | |
console.log(`Delay ${convince} at ${unixTime}`) | |
return unixTime | |
} | |
async function delay () { |
SQ is currently $68 and I own 100 shares. Say I will sell you the right to buy 100 SQ from me for $10. The deal is you buy 100 SQ at $70/share next Friday.
SQ over 70 ->
Buyer (you): You get to buy 100 SQ from me at $70. Wit a $10 premium, your effective price is
SQ under 70 but above initial price -> Buyer: Call is worthless. (loses value initially paid) Seller: Keep premium and the 100 shares of SQ. (this is best outcome)
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
@Bean | |
public ObjectMapper includeTransientObjectMapper() { | |
Hibernate5Module hibernate5Module = new Hibernate5Module(); | |
hibernate5Module.disable(Hibernate5Module.Feature.USE_TRANSIENT_ANNOTATION); | |
ObjectMapper mapper = new ObjectMapper(); | |
mapper.registerModule(hibernate5Module); | |
return mapper; | |
} |
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
@Entity | |
public class ExamplePojo { | |
@Transient | |
private static final String type = "SomethingToInclude"; | |
@Id | |
@GeneratedValue(strategy = GenerationType.IDENTITY) | |
private Long id; | |
public void setId(Long id) { |
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
@Repository | |
public interface PersonRepository extends CrudRepository<Person, Long> { | |
List<Person> findByAddressZipCode(String zipCode); | |
} |
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
@Repository | |
public interface PersonRepository extends CrudRepository<Person, Long> { | |
@Query( value = "select * from person p " + | |
"join person_addresses b " + | |
" on p.id = b.person_id " + | |
"join address c " + | |
" on c.id = b.addresses_id " + | |
"where c.zip = :zip", nativeQuery = true) | |
Iterable<Person> getPeopleWithZip(@Param("zip") String zip); |
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
@Entity | |
public class Person { | |
@OneToMany(targetEntity = com.data.Address.class, fetch = FetchType.EAGER, cascade = CascadeType.ALL) | |
private List<Address> addresses; | |
... | |
} |