Skip to content

Instantly share code, notes, and snippets.

@yclim95
yclim95 / README.md
Last active June 23, 2022 03:22
C01

Ex00

main.c

/* ************************************************************************** */
/*                                                                            */
/*                                                        :::      ::::::::   */
/*   main.c                                             :+:      :+:    :+:   */
/*                                                    +:+ +:+         +:+     */
/*   By: lyao-che <[email protected]>    +#+  +:+       +#+        */
@yclim95
yclim95 / README.md
Last active April 11, 2022 01:45
42 Piscine Rush 00

main.c

/* ************************************************************************** */
/*                                                                            */
/*                                                        :::      ::::::::   */
/*   main.c                                             :+:      :+:    :+:   */
/*                                                    +:+ +:+         +:+     */
/*   By: lyao-che <[email protected]>    +#+  +:+       +#+        */
/*                                                +#+#+#+#+#+   +#+           */
@yclim95
yclim95 / cucukmyaz.js
Created May 26, 2021 14:53 — forked from jecfish/cucukmyaz.js
Prefill for AstraZeneca vaccination
const gid = (id) => document.getElementById(id);
gid('idtype').value = "1"; // 1=IC
gid('nric').value = "Replace_your_IC";
gid('ic-numbern').value = "Replace_your_IC";
checkic();
gid('msid').value = "Replace_your_MySejahteraID";
gid('phone').value = "Replce_your_phone";
gid('phone-numbern').value = "Replace_your_phone";
boxclickppv('kl'); // or replace with "selangor"
@yclim95
yclim95 / README.md
Created March 18, 2021 08:28
FREE CodeCamp: JavaScript Algorithms and Data Structures
@yclim95
yclim95 / README.md
Last active December 18, 2020 11:17
Introduction to Basic Algorithm Scripting: FreeCodeCamp

Introduction to Basic Algorithm Scripting

1. Basic Algorithm Scripting: Convert Celsius to Fahrenheit

function convertToF(celsius) {
  let fahrenheit = celsius * (9/5) + 32;
  return fahrenheit;
}

convertToF(30);
@yclim95
yclim95 / README.md
Last active December 16, 2020 11:35
Basic Data Structure: FreeCodeCamp

Basic Data Structure

1. Basic Data Structures: Use an Array to Store a Collection of Data

let yourArray = [1,2,3,true,false,"a","b","C"]; // Change this line

2. Basic Data Structures: Access an Array's Contents Using Bracket Notation

let myArray = ["a", "b", "c", "d"];
@yclim95
yclim95 / README.md
Last active December 12, 2020 11:29
Debugging: FreeCodeCamp

Debugging

1. Debugging: Use the JavaScript Console to Check the Value of a Variable

let a = 5;
let b = 1;
a++;
// Only change code below this line
console.log(a); //Debug purpose
@yclim95
yclim95 / README.md
Last active August 7, 2024 18:30
ES6: FreeCodeCamp

ES6: Use the Rest Parameter with Function Parameters

const sum = (...args) => {
  return args.reduce((a, b) => a + b, 0);
}

ES6: Use Destructuring Assignment to Extract Values from Objects

@yclim95
yclim95 / lie-body-language-microexpression.md
Last active May 17, 2021 04:27
Why people Lie? Body Language & Microexpression

1. Why to people Lie?

- Natural things to do in this situation 自然界最基本现象之
- Example: Fox lie to escape from death

2. Why you want to study people expression?

@yclim95
yclim95 / psychology-intro.md
Last active October 7, 2020 05:44
Intro to psychology

Intro to Psychology

1. 绪论 (Introduction and Research Methods of Psychology)

2. 心理学历史(History of Psychology)