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
{ | |
"version": "2.0.0", | |
"tasks": [ | |
{ | |
"label": "Start Expo dev server", | |
"type": "shell", | |
"command": "cd ./apps/mobile && yarn start", | |
"presentation": { | |
"reveal": "always", | |
"panel": "new", |
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
const gridSize = 8; | |
for(i=1; i <= gridSize; i++) { | |
let times = Math.floor(gridSize / 2); | |
if(i % 2 === 1) console.log(' *'.repeat(times)) | |
else console.log('* '.repeat(times)) | |
} |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="description" content="Redux Course"> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/bonsai/0.4/bonsai.min.js"></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
git config --global alias.myblame 'log -p -M --follow --stat' |
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 requestObject = function(options){ | |
function ajax() { | |
return $.ajax({ | |
method: method, | |
url: options.url, | |
data: data, | |
dataType: 'json' | |
}).done(options.doneCallback).fail(options.failCallback); | |
}; | |
return {ajax: ajax}; |
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 Bulk(){ | |
var foo = ''; | |
function getFoo(){ | |
return foo; | |
} | |
function setFoo(newFoo){ | |
foo = newFoo; | |
} | |
} |
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 Bulk(){ | |
var foo = ''; | |
function getFoo(){ | |
return foo; | |
} | |
function setFoo(newFoo){ | |
foo = newFoo; | |
} | |
} |
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
--ignore-dir=node_modules/ | |
--ignore-dir=coverage/ | |
--ignore-dir=dist/ | |
--ignore-dir=server/tests |
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 React, {PropTypes} from 'react'; | |
import {connect} from 'react-redux'; | |
import {bindActionCreators} from 'redux'; | |
class ${NAME} extends React.Component { | |
constructor(props, context) { | |
super(props, context); | |
} | |
render() { |
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
def recursive_staircase(height): | |
steps = [1,2,3] | |
ways = 0 | |
for step in steps: | |
if step == height: | |
ways += 1 | |
break | |
elif step < height: | |
ways += recursive_staircase(height - step) |
NewerOlder