Skip to content

Instantly share code, notes, and snippets.

View amykangweb's full-sized avatar
🔋
recharging

Amy Kang amykangweb

🔋
recharging
View GitHub Profile
@amykangweb
amykangweb / keybase.md
Created July 25, 2018 22:06
keybase.md

Keybase proof

I hereby claim:

  • I am amykangweb on github.
  • I am amyestately (https://keybase.io/amyestately) on keybase.
  • I have a public key ASBbjhy175F7CaiO_5cV_Gs86cjiJJsEg3PNK3nD6oZ2mAo

To claim this, I am signing this object:

@amykangweb
amykangweb / Gradle SpringMVC.md
Created April 9, 2018 23:37 — forked from somecuitears/Gradle SpringMVC.md
Spring MVC from Gradle in IntelliJ

Creating Gradle Project

  1. Create New Project

  2. Select Java and Web from the Option

  3. You will be asked to provide GroupID and ArtifactID

  • GroupID: it will identify your project uniquely across all projects. (E.g. com.project.model | com.project.plugins)
@amykangweb
amykangweb / install-comodo-ssl-cert-for-nginx.rst
Created May 8, 2017 20:49 — forked from bradmontgomery/install-comodo-ssl-cert-for-nginx.rst
Steps to install a Comodo PositiveSSL certificate with Nginx.

Setting up a SSL Cert from Comodo

I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.

These are the steps I went through to set up an SSL cert.

Purchase the cert

<!DOCTYPE HTML>
<html>
<head>
<title>
Simply JavaScript
</title>
</head>
<body>
<h1>Add Stuff Below Here</h1>
var removeText = function() {
var paraElement = this;
container.removeChild(paraElement);
}
var bindElementEvents = function(element) {
element.onclick = removeText;
}
newButton.onclick = addText;
var addText = function() {
var paragraph = document.createElement("p");
var newContent = newInput.value;
paragraph.innerText = newContent;
container.appendChild(paragraph);
bindElementEvents(paragraph);
inputValue.value = "";
}
@amykangweb
amykangweb / javascript_todo_part_1.js
Last active October 29, 2015 07:13
Grab Elements from DOM with JavaScript
var container = document.getElementById("container");
var newInput = document.getElementById("new-content");
var newButton = document.getElementsByTagName("button")[0];
@amykangweb
amykangweb / gist:c4c2b00a23580d77e838
Created October 14, 2015 07:14
Controller Patch Method
def published
@post.update(published: true)
redirect_to :back, notice: "This post has been published!"
end
resources :posts do
member do
patch :published
end
end
@amykangweb
amykangweb / gist:9e53a713fc2f87bbf4ac
Created October 14, 2015 07:01
Rails Patch Link
<%= link_to "Publish this Post", published_post_path(@post), method: :patch %>