Skip to content

Instantly share code, notes, and snippets.

@thejayden
thejayden / README.md
Created June 21, 2020 07:22 — forked from roachhd/README.md
EMOJI cheatsheet 😛😳😗😓🙉😸🙈🙊😽💀💢💥✨💏👫👄👃👀👛👛🗼🔮🔮🎄🎅👻

EMOJI CHEAT SHEET

Emoji emoticons listed on this page are supported on Campfire, GitHub, Basecamp, Redbooth, Trac, Flowdock, Sprint.ly, Kandan, Textbox.io, Kippt, Redmine, JabbR, Trello, Hall, plug.dj, Qiita, Zendesk, Ruby China, Grove, Idobata, NodeBB Forums, Slack, Streamup, OrganisedMinds, Hackpad, Cryptbin, Kato, Reportedly, Cheerful Ghost, IRCCloud, Dashcube, MyVideoGameList, Subrosa, Sococo, Quip, And Bang, Bonusly, Discourse, Ello, and Twemoji Awesome. However some of the emoji codes are not super easy to remember, so here is a little cheat sheet. ✈ Got flash enabled? Click the emoji code and it will be copied to your clipboard.

People

:bowtie: 😄

@thejayden
thejayden / sampleREADME.md
Created June 21, 2020 07:11 — forked from FrancesCoronel/sampleREADME.md
A sample README for all your GitHub projects.

FVCproductions

INSERT GRAPHIC HERE (include hyperlink in image)

Repository Title Goes Here

Subtitle or Short Description Goes Here

var fgImage = new SimpleImage("usain.jpg");
var bgImage = new SimpleImage("palm-and-beach.png");
var newImage = new SimpleImage(fgImage.getWidth(),fgImage.getHeight());
for (var fgPx of fgImage.values()){
if (fgPx.getGreen() > 180 && fgPx.getRed()<180 && fgPx.getBlue()<180){
var x = fgPx.getX();
var y = fgPx.getY();
var bgPx = bgImage.getPixel(x,y);
newImage.setPixel(x,y,bgPx);
@thejayden
thejayden / Advanced Modifying Images Part 3
Created May 22, 2020 09:55
Write a function named setBlack that has one parameter pixel (representing a single pixel) and returns pixel with its red, green, and blue components changed so that the pixel’s color is black. Now you will write another function named addBorder. This function will add a black border to an image that is 10 pixels thick.
var img = new SimpleImage("SmallPanda.png");
var xBound = img.getWidth()-10;
var yBound = img.getHeight()-10;
function setBlack (p){
p.setRed(0);
p.setBlue(0);
p.setGreen(0);
}
@thejayden
thejayden / Modifying Images Part 3
Created May 22, 2020 08:56
Write code to change the Duke blue devil to be yellow
var img = new SimpleImage("duke_blue_devil.png");
function setYellow (p){
p.setGreen(255);
p.setRed(255);
p.setBlue(0);
}
function checkBlue (p){
if (p.getRed()==0 && p.getGreen()==51 && p.getBlue()==227){
@thejayden
thejayden / Modifying Images Part 2
Last active May 22, 2020 08:48
Write a JavaScript function named swapRedGreen with one parameter pixel (representing a single pixel). This function should swap the red and green values of the pixel. For example, if you have a pixel with red = 255, green = 100, blue = 150, after calling swapRedGreen on that pixel its new RGB values would be red = 100, green = 255, blue = 150.
var img = new SimpleImage("duvall.jpg");
function swapRedGreen (p){
var green = p.getGreen();
var red = p.getRed();
p.setGreen(red);
p.setRed(green);
}
for (var pixel of img.values()){
@thejayden
thejayden / Modifying Images Part 1
Last active May 22, 2020 09:00
JavaScript program that modifies an image by putting three vertical stripes on it - a red stripe on the left one third, a green stripe in the middle, and a blue stripe on the right one third.
var img = new SimpleImage("duvall.jpg");
var section = img.getWidth()/3;
for (var pixel of img.values()){
var imgWidth = pixel.getX();
if (imgWidth<=section){
pixel.setRed(255);
}
if (imgWidth>section && imgWidth<=section*2){