I hereby claim:
- I am whtsky on github.
- I am whtsky (https://keybase.io/whtsky) on keybase.
- I have a public key whose fingerprint is 849B C953 6873 EFB9 E491 0C11 7E46 916F 1A78 0568
To claim this, I am signing this object:
import os | |
import shutil | |
import glob | |
WORKING_PATH = '/Volumes/Kindle/documents' | |
os.chdir(WORKING_PATH) | |
for n in glob.glob('*.sdr'): | |
name = n[:-4] |
import random | |
s = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789^!\\$%&/()=?{[]}+~#-_.:,;<>|\\' | |
def create(): | |
return ''.join([random.choice(s) for _ in range(16)]) |
I hereby claim:
To claim this, I am signing this object:
function xxxci() { | |
$('.commit').map(function () { | |
if ($(this).find('.ci-failed')) { | |
try { | |
$(this).find('.js-pipelines-retry-button')[0].click() | |
$('.js-primary-button.btn-danger')[0].click() | |
} catch (e) { | |
} | |
} | |
}) |
Process: mu [74693] | |
Path: /Applications/mu.app/Contents/MacOS/mu | |
Identifier: org.kreogist.mu | |
Version: 1.0b5 (1.0.0 Beta 5) | |
Code Type: X86-64 (Native) | |
Parent Process: ??? [1] | |
Responsible: mu [74693] | |
User ID: 501 | |
Date/Time: 2018-07-13 13:07:33.421 +0800 |
Process: mu [16367] | |
Path: /Users/USER/Documents/*/mu.app/Contents/MacOS/mu | |
Identifier: org.kreogist.mu | |
Version: 1.0b5 (1.0.0 Beta 5) | |
Code Type: X86-64 (Native) | |
Parent Process: ??? [1] | |
Responsible: mu [16367] | |
User ID: 501 | |
Date/Time: 2018-07-16 15:34:32.554 +0800 |
// 批量删除广播 | |
function ff(){ | |
var list = $$('#talkList>li'); | |
var count = list.length | |
console.log('list length', count); | |
var t = 0 | |
var idx = 0 | |
list.forEach(function(i){ | |
setTimeout(function() { | |
console.log("delete id", i.id, 'idx:', idx++); |
Get-ChildItem -Path 'D:\PATH' -Filter *pptx -Recurse | | |
ForEach-Object -Begin { | |
$null = Add-Type -AssemblyName Microsoft.Office.Interop.powerpoint | |
$SaveOption = [Microsoft.Office.Interop.PowerPoint.PpSaveAsFileType]::ppSaveAsPDF | |
$PowerPoint = New-Object -ComObject "PowerPoint.Application" | |
} -Process { | |
$Presentation = $PowerPoint.Presentations.Open($_.FullName) | |
$PdfNewName = $_.FullName -replace '\.pptx$','.pdf' | |
$presentation.SaveAs($PdfNewName,$SaveOption) | |
$presentation.close() |
#!/bin/bash | |
clean_sdr_in_current_folder () { | |
find . -maxdepth 1 ! -path . -type d -print0 | while read -d $'\0' FOLDER | |
do | |
FOLDER=$(basename "$FOLDER") | |
if [[ $FOLDER == *".sdr" ]]; then | |
if [ -d "$FOLDER" -a ! -n "$(find . -maxdepth 1 -type f -name "${FOLDER%.sdr}*" -print -quit)" ] | |
then | |
echo "Remove $FOLDER" |