// variable
int x = 1;
// constant
final int y = 2;
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
| 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 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
| 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 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
| package main | |
| import "fmt" | |
| type Student struct { | |
| id string | |
| name string | |
| age int | |
| } |
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
| 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 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
| 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 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
| 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 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
| #!/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 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
| let sum = 0; | |
| $("html body app-root app-layouts div app-history div div table tbody tr").each((d,i)=>{ | |
| sum += +i.lastElementChild.textContent | |
| }) | |
| console.log(sum) |
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
| function deleteAllTrigger() { | |
| var triggers = ScriptApp.getProjectTriggers(); | |
| for (var i = 0; i < triggers.length; i++) { | |
| ScriptApp.deleteTrigger(triggers[i]); | |
| } | |
| } |