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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
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 Container from 'react-bootstrap/Container' | |
import Row from 'react-bootstrap/Row' | |
import Col from 'react-bootstrap/Col' |
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
@include media-breakpoint-up(md) { | |
} |
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
let allColorData = []; | |
document.querySelectorAll('#colors .color').forEach(colorNode => { | |
const colorData = { | |
name: colorNode.querySelector('.color-info-name').textContent, | |
hex: colorNode.querySelector('.hex input').value, | |
shades: [] | |
} | |
allColorData.push(colorData); | |
}) |
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
// eslint-disable-next-line react/prop-types | |
const AvailableAddress = ({ address }) => { | |
return ( | |
<AddressStatus address={address} status="isAvailable" /> | |
) | |
}; |
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
// simple component test | |
import React from 'react'; | |
import { shallow } from 'enzyme'; | |
import Button from './Button'; | |
function setupComponent (props) { | |
return shallow(<Button {...props} />); | |
} | |
it('should render the button', () => { |
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
// full version | |
(function () { | |
var node = document.createElement('textarea') | |
var selection = document.getSelection() | |
let issue = ''; | |
if(document.querySelector('#issuekey-val')) { | |
issue = document.querySelector('#issuekey-val').textContent; | |
} |
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
on alfred_script(q) | |
tell application "Sequel Pro" to quit | |
tell application "Dash" to quit | |
tell application "Tower" to quit | |
tell application "iTerm" to quit | |
tell application "Sublime Text 2" to quit | |
end alfred_script |
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
tell application "Mail" | |
set theSubject to "Subject" -- the subject | |
set theContent to "Content" -- the content | |
set theAddress to "[email protected]" -- the receiver | |
set theSignatureName to "signature_name"-- the signature name | |
set theAttachmentFile to "Macintosh HD:Users:moligaloo:Downloads:attachment.pdf" -- the attachment path | |
set msg to make new outgoing message with properties {subject: theSubject, content: theContent, visible: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
/** | |
* Window resize event handling | |
*/ | |
angular.element($window).on('resize', function () { | |
console.log($window.innerWidth); | |
}); |
NewerOlder