/* A FizzBuzz assignment with DRY and clean code
Not the fastest nor shortest code, but readable for everyone */
$start = 100;
for ($iteration = 1; $iteration <= $start; $iteration++) {
$endOfLine = "</br>";
$dividableByThree = $iteration % 3 === 0;
$dividableByFive = $iteration % 5 === 0;
if ($dividableByThree && $dividableByFive) {
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
{ | |
"description" : "", | |
"name" : "WhatsApp", | |
"rules" : [ | |
{ | |
"action" : "allow", | |
"creationDate" : 1646904968.954586, | |
"modificationDate" : 1646904968.954586, | |
"owner" : "me", | |
"ports" : "3478", |
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
{ | |
"files.autoSave": "onFocusChange", | |
"diffEditor.ignoreTrimWhitespace": false, | |
"terminal.integrated.shell.windows": "C:\\Program Files\\Git\\bin\\bash.exe", | |
"trailing-spaces.trimOnSave": true, | |
"trailing-spaces.saveAfterTrim": true, | |
"window.zoomLevel": -2 | |
} |
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
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQC68l7z8n8sjsabt5ZFYIkKXH78hbVsUMsXlaynagY8P6SpqoKsSaJf81/BKHM//m5B7582QeGzLbR2EaPnMos6t0j/6oY/ZWsan4ldhy9Og5FL+bCDMsim98eig4GXsuQH7u+aSNjj/DvxzEINXBiXWA5VAuIYZw7tVQjH/2rGwFdSPnQf3c8zyz6AAZPtvJPsAqlNbcSPe2uw1xdg6PUa0PDPctsEJV/QZUUfCjxiFrw8Vvadm/Pblpz5zv7PKL/eewPwztScwDPeAOenpgiVbCd/S80j4XdNSGONbWHZc5gKHITwXIOuxqD6c1Ie2z6nPb9dlnR+e+LNvPPYL1YXHQ7x+pCJf4rcjMyONro24ldDyBRmQ45zwf6SXRAE+DxcoML9qGZkXGg1NetfmAU1VrThHoqXbolgGJ/xXbw1CUz15F494pRuma71Pm5YtPeWblLiL4BGxAVBkZbXYGmCaDgzQpLFdID+4NKWT8C2qILmebR30940hLNqj7XfTuw+s5yWwf5h+wA/bkJNnM1/+FJiE2Ec/9frtpj2FCMTvCqkOyd4T0+PKibk+TwlnGQncmLLqCvKE0EuLsWTVHViPkSJJubxBb00GUc7INrnYkk8uldnuFUBX3r+Ee/wuM9228yQX9oz5G/0MweG/9bSwZSnZCK2mMaA88sk585Skw== [email protected] |
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
// Future versions of Hyper may add additional config options, | |
// which will not automatically be merged into this file. | |
// See https://hyper.is#cfg for all currently supported options. | |
module.exports = { | |
config: { | |
// default font size in pixels for all tabs | |
fontSize: 14, | |
// font family with optional fallbacks |
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
s |
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
<snippet> | |
<content><![CDATA[ | |
import React from 'react'; | |
const ${1:this} = () => <div className="${1:this}">Hello</div>; | |
export default ${1:this}; | |
]]></content> | |
<!-- Optional: Set a tabTrigger to define how to trigger the snippet --> |
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
#!/bin/bash | |
cd "$(git rev-parse --show-toplevel)" | |
ESLINT="node_modules/.bin/eslint" | |
pwd | |
if [[ ! -x "$ESLINT" ]]; then | |
printf "\t\033[41mPlease install ESlint\033[0m (npm install eslint)\n" | |
exit 1 | |
fi |
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
<snippet> | |
<content><![CDATA[ | |
${1:Component}.propTypes = { | |
${2:method}: React.PropTypes.${3:type}.isRequired | |
} | |
]]></content> | |
<!-- Optional: Set a tabTrigger to define how to trigger the snippet --> | |
<tabTrigger>proptype</tabTrigger> | |
<!-- Optional: Set a scope to limit where the snippet will trigger --> | |
<scope>source.js</scope> |
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
<snippet> | |
<content><![CDATA[ | |
import React from 'react'; | |
class ${1:componentName} extends React.Component { | |
render() { | |
return( | |
<div className="${1:componentName}"> | |
</div> | |
) |
NewerOlder