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 java.awt.color.ColorSpace; | |
import java.awt.color.ICC_ColorSpace; | |
import java.awt.color.ICC_Profile; | |
import java.awt.image.BufferedImage; | |
import java.awt.image.ColorConvertOp; | |
import java.io.File; | |
import javax.imageio.ImageIO; | |
/** | |
* |
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
ps -eo size,pid,user,command --sort -size | awk '{ hr=$1/1024 ; printf("%13.2f Mb ",hr) } { for ( x=4 ; x<=NF ; x++ ) { printf("%s ",$x) } print "" }' |
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
class plant{ | |
id: string; | |
damage: int; | |
hp: int; | |
attack: int; | |
attkSpeed: int; | |
static final int maxHp = 10; | |
} | |
class zoombie{ | |
id: string; |
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
class plant{ | |
id: string; | |
damage: int; | |
hp: int; | |
attack: int; | |
attkSpeed: int; | |
static final int maxHp = 10; | |
boolean getSpeed(){ | |
return attkSpeed; |
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
class plant{ | |
id: string; | |
damage: int; | |
hp: int; | |
attack: int; | |
attkSpeed: int; | |
static final int maxHp = 10; | |
int getSpeed(){ | |
return attkSpeed; |
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
// source http://stackoverflow.com/questions/5919663/how-does-photoshop-blend-two-images-together | |
#define ChannelBlend_Normal(A,B) ((uint8)(A)) | |
#define ChannelBlend_Lighten(A,B) ((uint8)((B > A) ? B:A)) | |
#define ChannelBlend_Darken(A,B) ((uint8)((B > A) ? A:B)) | |
#define ChannelBlend_Multiply(A,B) ((uint8)((A * B) / 255)) | |
#define ChannelBlend_Average(A,B) ((uint8)((A + B) / 2)) | |
#define ChannelBlend_Add(A,B) ((uint8)(min(255, (A + B)))) | |
#define ChannelBlend_Subtract(A,B) ((uint8)((A + B < 255) ? 0:(A + B - 255))) | |
#define ChannelBlend_Difference(A,B) ((uint8)(abs(A - B))) | |
#define ChannelBlend_Negation(A,B) ((uint8)(255 - abs(255 - A - B))) |
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 lan.dk.podcastserver.utils.MimeTypeUtils; | |
import org.apache.commons.lang3.StringUtils; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; | |
import javax.servlet.ServletOutputStream; | |
import javax.servlet.http.HttpServletRequest; | |
import javax.servlet.http.HttpServletResponse; | |
import java.io.*; | |
import java.nio.file.Files; |
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
.hr-div { | |
padding: 10px; | |
} | |
.hr-div div { | |
border-top: 1px solid #f68e92; | |
position: absolute; | |
width: 100vw; | |
left: 0; | |
} |
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
public Task SendEmailAsync(string email, string subject, string message) | |
{ | |
var msg = new MimeMessage(); | |
msg.From.Add(new MailboxAddress(EmailConfig.From, EmailConfig.FromEmail)); | |
msg.To.Add(new MailboxAddress("", email)); | |
msg.Subject = subject; | |
var bodyBuilder = new BodyBuilder(); | |
bodyBuilder.HtmlBody = message; |
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 artists=["Justin Bieber", "Justin Bieber", "Drake Featuring WizKid & Kyla", "Rihanna Featuring Drake", "twenty one pilots", "Desiigner", "Adele", "The Chainsmokers Featuring Daya", "Justin Timberlake", "The Chainsmokers Featuring Halsey", "Sia Featuring Sean Paul", "Lukas Graham", "Rihanna", "Flo Rida", "Mike Posner", "Fifth Harmony Featuring Ty Dolla $ign", "Calvin Harris Featuring Rihanna", "DNCE", "G-Eazy x Bebe Rexha", "twenty one pilots", "twenty one pilots", "Zayn", "Shawn Mendes", "Drake", "Major Lazer Featuring Justin Bieber & MO", "Adele", "The Chainsmokers Featuring Rozes", "Shawn Mendes", "Drake Featuring Rihanna", "Future Featuring The Weeknd", "Justin Bieber", "The Weeknd", "P!nk", "D.R.A.M. Featuring Lil Yachty", "Bryson Tiller", "Ariana Grande", "Drake & Future", "gnash Featuring Olivia O'Brien", "Alessia Cara", "Selena Gomez", "Drake", "Meghan Trainor Featuring John Legend", "Charlie Puth", "James Bay", "Meghan Trainor", "Zara Larsson & MNEK", "DJ Snake Featuring Justin Bie |
OlderNewer