Article → http://www.nxworld.net/tips/css-image-hover-effects.html
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 selenium | |
from selenium import webdriver | |
from bs4 import BeautifulSoup | |
import numpy as np | |
import time | |
import csv | |
chrome_options = webdriver.ChromeOptions() | |
prefs = {"profile.default_content_setting_values.notifications" : 2} | |
chrome_options.add_experimental_option("prefs",prefs) |
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
asdfasfasd |
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
console.log('hello world') |
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
//https://leetcode.com/problems/basic-calculator/description/ | |
var calculate = function(s) { | |
var positiveArr = s.replace(/\s|\(|\)|\-\d{1}/g,"").split(/\+/); | |
var positiveNum = positiveArr.reduce( (x,y) => parseInt(x) + parseInt(y) ); | |
var hasNegative = s.replace(/\s|\(|\)/g,"").replace(/^\d{1}|\+\d{1}/g, ""); | |
var negativeNum, negativeArr; | |
if (hasNegative) { | |
negativeArr = hasNegative.split(/\-/).filter(x=>x); |
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
function isSubset(wrap, sub) { | |
var result = true; | |
sub.map(function(letter){ | |
if (wrap.indexOf(letter) == -1) { result = false; } | |
}); | |
return result; | |
} |
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
<script type="text/javascript"> | |
window.fbAsyncInit = function() { | |
FB.init({ | |
appId : {{yourFacebookId}}, | |
xfbml : true, | |
version : 'v2.6' | |
}); | |
checker = setInterval(function(){ | |
if (!document.querySelector(".fb-comments iframe")) { | |
spinner.setAttribute("class", "show"); |
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
<div id="class"></div> |
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 operate = (function(){ | |
// num is local variable, and we can via return api to manipulate num, no other external methods to manipulate num. | |
var num; | |
function createNum() { | |
var num = new Number(0); | |
return num; | |
} |
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
<script type="text/javascript"> | |
var TCGA = TCGA || {}; | |
TCGA.cthouseProductId = $(".c5").text().match(/\d*/g).join(""); | |
TCGA.cthouseProductName = $(".c5").text().split(/\(/)[0]; | |
TCGA.time = new Date(); | |
TCGA.timeStamp = TCGA.time.getFullYear() + '/' + (TCGA.time.getMonth() + 1) + '/' + TCGA.time.getDate() + '::' + (TCGA.time.getHours()); | |
var _gaq = _gaq || []; |
NewerOlder