Skip to content

Instantly share code, notes, and snippets.

View BunnyCinnamon's full-sized avatar
😭
😭

Cinnamon BunnyCinnamon

😭
😭
  • Behind you
View GitHub Profile
import org.springframework.batch.core.*
@Grab('org.springframework.batch:spring-batch-core:3.0.6.RELEASE')
import org.springframework.batch.core.configuration.annotation.*
import org.springframework.batch.core.job.builder.FlowBuilder
import org.springframework.batch.core.job.flow.Flow
import org.springframework.batch.core.launch.JobLauncher
import org.springframework.batch.core.listener.ExecutionContextPromotionListener
import org.springframework.batch.core.partition.support.Partitioner
import org.springframework.batch.core.scope.context.ChunkContext
import org.springframework.batch.core.scope.context.StepSynchronizationManager
@BunnyCinnamon
BunnyCinnamon / ..scriptlet
Created December 9, 2017 02:24 — forked from Vazkii/..scriptlet
Discord emoji downloader. To use: be an admin on a server, go to the Emoji section of the settings, and run the scriptlet
javascript:function download(o){var e=document.createElement("a");e.href=o,e.download=o,e.click()}function downloadEmoji(o){const e=/url\(\"https:\/\/cdn.discordapp.com\/emojis\/(\d+)\.png\"\)/;var r=o.querySelectorAll(".emoji-image"),t=getComputedStyle(r[0])["background-image"];t=t.replace(e,"$1");var l=o.querySelectorAll(".position-relative > .emoji-alias-placeholder"),a=l[0].textContent;download("https://vazkii.us/discordemoji/"+t+"/"+a+".png")}var rows=document.querySelectorAll(".emoji-row");Array.prototype.forEach.call(rows,function(o,e){downloadEmoji(o)});