Skip to content

Instantly share code, notes, and snippets.

View cocomice's full-sized avatar

Yu Li cocomice

  • Beijing Normal University
  • China
View GitHub Profile
*.pdf
*.eps
*.svg
*.png
*.jpg
# LaTeX auxiliary files
*.aux
*.lof
*.log
(I) I have written an abstract (or another section??) for a research article (or a PhD thesis??), but I feel that it may not be written effectively in terms of grammar, syntax, and readability. Could you please assist me in polishing and refining the text to improve its flow and correctness?
(II) I have written a section for a scientific article, but I feel it may not be engaging and readable enough to meet the standards of top academic journals in the field of environmental science and technology. Could you please assist me by rewriting the content with higher-level vocabulary, a more logical and concise structure, and better organization to make it more engaging, readable, and meet the required standards of publication?
(III) I have written an abstract (or another section??) for a research article (or a PhD thesis??). Could you please assist me by polishing the language while making minimal changes and ensuring consistency throughout the text? Additionally, I would appreciate it if you could ensur

My route:

  1. curl -Lo- https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB | sudo gpg --dearmor -o /usr/share/keyrings/oneapi-archive-keyring.gpg
  2. sudo tee /etc/apt/sources.list.d/oneAPI.list <<< "deb [signed-by=/usr/share/keyrings/oneapi-archive-keyring.gpg] https://apt.repos.intel.com/oneapi all main"
  3. sudo apt update
Sub DeleteUnusedStyles()
Dim doc As Document
Dim s As Style
Dim styleInUse As Boolean
Dim rng As Range
Set doc = ActiveDocument
For Each s In doc.Styles
If Not s.BuiltIn Then
// Function to calculate CSI index
function calculateCSI(image) {
var csi = image.normalizedDifference(['B7', 'B5']).rename('csi');
return image.addBands(csi);
}
// Function to calculate the area [m2] given a region
function calculateArea(image, region, scale, varName) {
var areaImage = image.clip(region).multiply(ee.Image.pixelArea());
var area = areaImage.reduceRegion({
import numpy as np
def calc_urban_wasteWat(N, Fc, eta):
"""
年城镇生活污水原位产生量计算
Args:
N (float): 人口数量,万人
Fc (float): 人均用水量系数,L/(人·d)
from osgeo import gdal
from osgeo.gdalconst import GDT_Float32
import sys
import numpy as np
def fix_dem_nodata(raster_input, raster_output, nodata=0, threshold=-900):
try:
@cocomice
cocomice / dygraph_plot.r
Created May 31, 2017 08:53 — forked from MarkEdmondson1234/dygraph_plot.r
An example of rendering a Dygraph plot in Shiny
## in server.r
output$null_plot <- renderDygraph({
## don't output anything unless you have the data ready
validate(
need(casualImpactData(), "Model Working")
)
## the data for the plot is in here
ci <- casualImpactData()$series
@cocomice
cocomice / print_progress.py
Created May 24, 2016 16:17
print the progress bar during execution
import sys as Sys
# Print iterations progress
def printProgress (iteration, total, prefix = '', suffix = '', decimals = 2, barLength = 100):
"""
Call in a loop to create terminal progress bar
@params:
iteration - Required : current iteration (Int)
total - Required : total iterations (Int)
prefix - Optional : prefix string (Str)
suffix - Optional : suffix string (Str)
@cocomice
cocomice / array_job.pbs
Last active September 25, 2015 10:15
HPC cluster job submission scripts
#!/bin/sh
#this is a minimal example. To submit an array job
#100 times with a maximum of 10 task run at same time,
#use the command "qsub array_job.pbs -t 1-100%10";
#'-t' activate the array job submission with '1-100'
#specify the lower and upper bound of job ID. "%10"
#means the maximum task number to be run at same time
#is 10. One can also use the buildin variable $PBS_ARRAYID
#to associate particular input with corrisponding job;