Skip to content

Instantly share code, notes, and snippets.

View hoangbits's full-sized avatar
🌍
Working from home

Le Gia Hoang hoangbits

🌍
Working from home
View GitHub Profile
Learning How To Learn
Module 1 - What is Learning
Focused/Diffuse Modes Thinking
- Obviously ‘focused’ is when you’re concentrating. Direct approach to solving familiar problems.
- Focused: thoughts move through nicely-paved road of familiar notions (neural pattern looks very tight and directed).
- encompasses rational, sequential, analytical approaches to thinking
- Diffuse: More of a search function neural pattern. Thoughts move widely. More of a broad/big-picture perspective trying to connect ideas from different places.
- We’re always either in focused or diffuse mode of thinking.
// write mql5 code to set SL to entry price of all current position when current price of XAUUSD move more than 20pips.
void OnTick()
{
double XAUUSD_Price = SymbolInfoDouble(_Symbol, SYMBOL_BID);
Print("XAUUSD_Price: ", XAUUSD_Price);
double XAUUSD_Pips = SymbolInfoInteger(_Symbol, SYMBOL_DIGITS);
Print("XAUUSD_Pips: ", XAUUSD_Pips);
double XAUUSD_PipsToSL = 20 * Point();
Print("XAUUSD_PipsToSL: ", XAUUSD_PipsToSL);
double XAUUSD_SL = 0;
import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;
class Main {
public static void main(String[] args) {
String str = "gEeks";
System.out.println(str.charAt(0)); // g
System.out.println(str.charAt(1)); // E
System.out.println(str.charAt(2)); // e
import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;
class Main {
public static void main(String[] args) {
String str = "gEeks";
System.out.println(str.charAt(0));
System.out.println(str.charAt(1));
System.out.println(str.charAt(2));
import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;
class Main {
public static void main(String[] args) {
String str = "gEeks";
// String str = "Geeks";
Boolean isNameUpper = Character.isUpperCase(str.charAt(1));
System.out.println(isNameUpper); // true
import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;
class Main {
public static void main(String[] args) {
String str = "gEeks";
// String str = "Geeks";
Boolean isNameUpper = Character.isUpperCase(str.charAt(1));
System.out.println(isNameUpper);
import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;
class Main {
public static void main(String[] args) {
String str = "gEeks";
// String str = "Geeks";
Boolean isNameUpper = Character.isUpperCase(str.charAt(1));
System.out.println(isNameUpper);
import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;
class Main {
public static void main(String[] args) {
List<Integer> list = Arrays.asList(3, 4, 6, 12, 20);
List<Integer> ket_qua = list.stream()
.filter(num -> {
System.out.println(String.format("Gia tri cua num: %s", num));
import java.util.Arrays;
import java.util.List;
class Main {
public static void main(String[] args) {
// Creating a list of Integers
List<Integer> list = Arrays.asList(3, 4, 6, 12, 20);
list.stream()
.filter(num -> true)
// *********** START DE QUY **************
//
// tuong tuong co nhieu ham add
//
// function add(number){
// if(number <= 0) {
// return 0;
// }