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 imgs = document.getElementById('slideshow').getElementsByTagName('img'); | |
var currIdx = 0; | |
setInterval(function() { | |
imgs[currIdx].style.display = 'none'; | |
currIdx = (currIdx + 1 == imgs.length) ? 0 : currIdx + 1; | |
imgs[currIdx].style.display = ''; | |
}, 3000); |
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
setInterval(function(imgs, currIdx) { | |
return function() { | |
imgs[currIdx].style.display = 'none'; | |
currIdx = (currIdx + 1 == imgs.length) ? 0 : currIdx + 1; | |
imgs[currIdx].style.display = ''; | |
}; | |
}(document.getElementById('slideshow').getElementsByTagName('span'), 0), 3000); |
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
#!/bin/sh | |
echo "What would you like the title of your post to be?" | |
read post_name | |
echo "What categories would you like this post to be under?(space seperated list)" | |
read categories | |
today=$( date "+%Y-%m-%d" ) | |
rawpost="$today-$post_name.md" | |
post=${rawpost// /-} |
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
from rauth import OAuth1Service | |
# Get an API Key in your SmugMug Account Settings. | |
API_KEY = None | |
API_KEY_SECRET = None | |
OAUTH_ORIGIN = 'https://secure.smugmug.com' | |
REQUEST_TOKEN_URL = OAUTH_ORIGIN + '/services/oauth/1.0a/getRequestToken' | |
ACCESS_TOKEN_URL = OAUTH_ORIGIN + '/services/oauth/1.0a/getAccessToken' |
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
--- | |
linters: | |
BorderZero: # border : 0 is preferred over border: none | |
enabled: false | |
CapitalizationInSelector: # all class names should be in lowercase | |
enabled: false | |
ColorKeyword: # use color in hex rather than name | |
enabled: false | |
DeclarationOrder: #Rule sets should start with @extend declarations, followed by properties and nested rule sets, in that order | |
enabled: false |
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
Show hidden characters
{ | |
"browser": true, | |
"jquery": true, | |
"node": true, | |
"camelcase": true, | |
"eqeqeq": true, |
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
--- | |
linters: | |
BorderZero: # border : 0 is preferred over border: none | |
enabled: false | |
CapitalizationInSelector: # all class names should be in lowercase | |
enabled: false | |
ColorKeyword: # use color in hex rather than name | |
enabled: false | |
DeclarationOrder: #Rule sets should start with @extend declarations, followed by properties and nested rule sets, in that order | |
enabled: true |
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
git branch -D `git branch | grep -E arcpatch-D[0-9]+` |
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
module.exports = function(file, api) { | |
const j = api.jscodeshift; | |
const root = j(file.source); | |
let importPropTypes = false; | |
const modifyPropTypes = (path) => { | |
if (!importPropTypes) importPropTypes = true; | |
return { | |
type: 'Identifier', | |
name: 'PropTypes', |
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
export default testComponent(components, ) { | |
class ComponentUnderTest { | |
render() {} | |
} | |
} |
OlderNewer