$ echo '.idea' >> .gitignore
$ git rm -r --cached .idea
$ git add .gitignore
$ git commit -m '(some message stating you added .idea to ignored entries)'
$ git push
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
import storage from 'localforage'; | |
const clearStorage = async () => { | |
try { | |
await storage.clear(); | |
await localStorage.clear(); | |
document.cookie.split(';').forEach(function(c) { | |
document.cookie = c | |
.replace(/^ +/, '') | |
.replace(/=.*/, '=;expires=' + new Date().toUTCString() + ';path=/'); |
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 node:8.10.0 | |
#Create app directory | |
RUN mkdir -p /usr/src/app | |
WORKDIR /usr/src/app | |
COPY package.json /usr/src/app |
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
var targetNode = document.querySelectorAll('.validation-message'), i; | |
// Options for the observer (which mutations to observe) | |
var config = { attributes: true, childList: true, subtree: true }; | |
var callback = function(mutationsList, observer) { | |
for(var mutation of mutationsList) { | |
if (mutation.type == 'childList') { | |
//console.log('mutation.nextElementSibling', mutation.target.nextElementSibling.nextElementSibling); | |
if(mutation.target.childNodes[0] && mutation.target.childNodes[0].length != 29){ | |
if(mutation.target.nextElementSibling.className == "screen-reader"){ |
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
(function pollFor() { | |
if (window.jQuery !== undefined && document.readyState === 'complete') { | |
try { | |
} catch (err) { | |
console.log('TRY ERROR: ' + err); | |
} | |
} else { | |
setTimeout(pollFor, 25); | |
} |
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
import Vue from "vue"; | |
import { withHooks, useState, useEffect } from "vue-hooks"; | |
const CounterAPP = withHooks(h => { | |
// state | |
const [count, setCount] = useState(0); | |
// effect | |
useEffect(() => { |
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
export default { | |
name: 'app', | |
data () { | |
return { | |
count: 0 | |
} | |
}, | |
methods: { | |
handleClick () { | |
this.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
import { useState } from 'react'; | |
function Example() { | |
// Declare a new state variable, which we'll call "count" | |
const [count, setCount] = useState(0); | |
return ( | |
<div> | |
<p>You clicked {count} times</p> | |
<button onClick={() => setCount(count + 1)}> |
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
class App extends React.Component { | |
constructor(props) { | |
this.state = { | |
count: 0 | |
} | |
} | |
onClick(e) { | |
this.setState({ | |
count: this.state.count + 1 |
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
var elementCheck = setInterval(function () { | |
if(jQuery('#selector').length > 0) { | |
// Your Code | |
clearInterval(elementCheck); | |
} | |
},1000); |