Skip to content

Instantly share code, notes, and snippets.

View julianjca's full-sized avatar
🎯
Focusing

Julian Christian Anderson julianjca

🎯
Focusing
View GitHub Profile
@julianjca
julianjca / license-badges.md
Created April 12, 2022 07:52 — forked from lukas-h/license-badges.md
Markdown License Badges for your Project

Markdown License badges

Collection of License badges for your Project's README file.
This list includes the most common open source and open data licenses.
Easily copy and paste the code under the badges into your Markdown files.

Notes

  • The badges do not fully replace the license informations for your projects, they are only emblems for the README, that the user can see the License at first glance.

Translations: (No guarantee that the translations are up-to-date)

@julianjca
julianjca / solution.jsx
Created January 28, 2021 03:25
Suspense Solution
/*
1. using suspense means we don't need useEffect
2. because we use const UserProfile then we need UserProfile component to be on top of SuspensefulUserProfile
3. Suspense needs fallback.
*/
import { Suspense } from 'react';
const UserProfile = ({ resource }) => {
const data = resource.read()
import React, { Component } from 'react';
class App extends Component {
state = {
email : '',
password : ''
}
submit = () =>{
console.log('email :', this.state.email)
<template>
<div id="app">
<input type="email" v-model="email" placeholder="email">
<input type="password" v-model="password" placeholder="password">
<button @click="submit">Submit</button>
</div>
</template>
<script>
import HelloWorld from './components/HelloWorld.vue'
<template>
<div class="home">
<MainHeader></MainHeader>
<div class="container">
<div class="container-card">
<KanbanCard v-for="(data,index) in taskLists" :key="index" :data="data"></KanbanCard>
</div>
</div>
</div>
</template>
@julianjca
julianjca / variablename.js
Last active September 18, 2018 01:44
Creating Variable Name
var a = [];
var b = [2,4,6,8,11,13];
for(let i = 0; i<b.length;i++){
if(b[i]%2!==0){
a.push(b[i]);
}
}
console.log(a)
var oddNumber = [];