This file contains hidden or 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
<html class="case-desktop case-chrome case-mac hb-loaded"><head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>JavaScript in 14 minutes by Jeremy Thomas</title> | |
<link rel="stylesheet" href="https://jgthms.com/javascript-in-14-minutes/css/main.min.css?v=201905170834"> | |
<meta property="og:url" content="https://jgthms.com/javascript-in-14-minutes"> | |
<meta property="og:type" content="website"> | |
<meta property="og:title" content="JavaScript in 14 minutes"> | |
<meta property="og:image" content="https://jgthms.com/javascript-in-14-minutes/images/javascript-in-14-minutes.png"> |
This file contains hidden or 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
<select id="rails_version" class="form-control"> | |
<option value="5.2.2"> | |
5.2.2 (Recommended) | |
</option> | |
<option value="5.1.6.1"> | |
5.1.6.1 | |
</option> | |
</select> |
This file contains hidden or 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
.CodeRay { | |
background-color: hsl(0,0%,95%); | |
border: 1px solid silver; | |
color: black; | |
} | |
.CodeRay pre { | |
margin: 0px; | |
} | |
span.CodeRay { white-space: pre; border: 0px; padding: 2px; } |
This file contains hidden or 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
<html> | |
<head> | |
<link rel="stylesheet" href="rainbow.css"> | |
</head> | |
<body> | |
<div class="rainbow"> | |
<div class="bows"> | |
<span></span> | |
<span></span> | |
<span></span> |
This file contains hidden or 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
# ------- from wordcloud.py ------------- | |
# remove stopwords | |
words = [word for word in words if word.lower() not in stopwords] | |
# remove 's | |
words = [word[:-2] if word.lower().endswith("'s") else word | |
for word in words] | |
# remove numbers | |
words = [word for word in words if not word.isdigit()] |
This file contains hidden or 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
.markdown-here-wrapper { | |
font-size: 16px; | |
line-height: 1.8em !important; | |
letter-spacing: 0.1em !important; | |
} | |
pre, code { | |
font-size: 0.85em; | |
font-family: Consolas, Inconsolata, Courier, monospace; | |
} |
This file contains hidden or 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
<h2>Change your password</h2> | |
<%= simple_form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :put }) do |f| %> | |
<%= f.error_notification %> | |
<%= f.input :reset_password_token, as: :hidden %> | |
<%= f.full_error :reset_password_token %> | |
<div class="form-inputs"> | |
<%= f.input :password, label: "New password", required: true, autofocus: true, hint: ("#{@minimum_password_length} characters minimum" if @minimum_password_length) %> |
This file contains hidden or 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
// https://github.com/chetanbissa27/chat/blob/54f670a23343841bddcc046e4358ae250758bc81/app/assets/javascripts/chat.js | |
update_notifications: function(conversation_id){ | |
if($('#chatbox_' + conversation_id + ' .chatboxcontent').css('display') == "block"){ | |
$.post('/conversations/' + conversation_id + '/messages/update_status',function(data){ | |
if($("#notification_"+conversation_id).length > 0) { | |
$("#notification_" + conversation_id).remove(); | |
var count = $("#notifications li").length > 0 ? $("#notifications li").length : ""; | |
$("#notify_count").html(count); | |
} |
This file contains hidden or 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
$('#complain-submit-status-srea').flash_message({ | |
text: "您的吐槽/反馈已经收到,我们会及时通过站内信给您回复", | |
how: 'append', | |
time: 2500 | |
}); |
NewerOlder