// variable
int x = 1;
// constant
final int y = 2;
This file contains 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
#!/usr/bin/env bash | |
#inside docker container | |
HOST_IP=$(/sbin/ip route|awk '/default/ { print $3 }') | |
CONTAINER_IP=$(curl "$HOST_IP:8000" 2>/dev/null) | |
echo "container ip is $CONTAINER_IP" |
This file contains 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
let cards = []; | |
let amountOfCard = 7; | |
multiple = 1; | |
cards.push([1]); | |
for (let i = 1; i < amountOfCard; i++) { | |
// create main number | |
// create card | |
multiple = multiple * 2; | |
let prepare = multiple; |
This file contains 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
let data1 = [] | |
let data2 = [] | |
//let data3 = data1.concat(data2); | |
let uqi = data2.filter(data=>{ | |
return !data1.find(x=>x.courseId == data.courseId) | |
}) | |
let data3 = data1.concat(uqi) |
This file contains 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
var header = Array(); | |
var jsonData = {}; | |
var temp_courseId,temp_coureCode,temp_courseName; | |
var courseObject = []; | |
$("html body table tbody tr td table tbody tr td font").each(function (i, v) { | |
if ($(this).attr("size") == "2") { | |
let data = $(this).first().context.textContent; | |
if (data.length < 15) { | |
let url = $(this).context.innerHTML | |
let arrObj = url.split("&"); |
This file contains 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
package main | |
import "fmt" | |
type Student struct { | |
id string | |
name string | |
age int | |
} |
This file contains 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
import React, { Component } from "react"; | |
import "./App.css"; | |
class example extends Component { | |
constructor(props) { | |
super(props); | |
this.state = { data: 0 }; | |
this.run = this.run.bind(this); | |
} |
This file contains 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
import React, { Component } from "react"; | |
import "./App.css"; | |
class example extends Component { | |
constructor(props) { | |
super(props); | |
this.state = { data: 0 }; | |
this.run = this.run.bind(this); | |
} |
This file contains 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
"use strict"; | |
const line = require("@line/bot-sdk"); | |
const express = require("express"); | |
const config = require("./config.json"); | |
const axios = require("axios"); | |
// create LINE SDK client | |
const client = new line.Client(config); | |
const app = express(); |
This file contains 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
#include<string.h> | |
#include<stdio.h> | |
#define true 1 | |
#define flase 0 | |
typedef int bool; | |
bool isPalindrome(char*); | |
void findPalindrome(char * dataInput); | |
int main(){ | |
char * input = "1123456"; | |