-
Install the React Developer Tools Chrome Extension.
-
Go to the egghead website, i.e. Getting Started with Redux
-
Click
View -> Developer -> Javascript Console
, then theReact
tab, then the<NextUpLessonList ...>
tag. -
Click back to the
Console
tab, then run:
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
<?php | |
function getSum($first, $second){ | |
// reverse the inputs | |
$reversed_first = strrev($first); | |
$reversed_second = strrev($second); | |
// get the max string length | |
$length = strlen($reversed_first) > strlen($reversed_second) ? strlen($reversed_first) : strlen($reversed_second); | |
// carry will be zero initially | |
$carry = 0; | |
// sum array for storing the |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Simple calculator</title> | |
<link rel="stylesheet" type="text/css" href="bootstrap.min.css"> | |
</head> | |
<body> | |
<div class="container"> | |
<div class="col-md-12" style="margin-top: 70px;"> | |
<div class="col-md-offset-3 col-md-6"> |
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
<?php | |
$template =[ | |
'@name@' => [ | |
'User name', | |
'Anik', | |
], | |
'@email@' => [ | |
'Email', | |
'[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
<?php | |
$template =[ | |
'@name@' => [ | |
'User name', | |
'Anik', | |
], | |
'@email@' => [ | |
'Email', | |
'[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
DIPLOBLASTIC | |
DEFIGURE | |
LOMBARD | |
BAHAISM | |
FUMERELL | |
ROYALET | |
TROPHIED | |
ZEQUIN | |
MILLWRIGHT | |
PHOTOGRAPHOMETER |
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
#include<stdio.h> | |
#include<string.h> | |
int main(){ | |
freopen("graph-representation.txt", "r", stdin); | |
int graph[100][100]; | |
int node, edge; | |
memset(graph, 0, sizeof(graph)); | |
scanf("%d %d", &node, &edge); | |
int i, j; |
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
alias html="cd /var/www/html" | |
alias phpunit="./vendor/bin/phpunit" | |
alias tinker="$HOME/.config/composer/vendor/bin/psysh" | |
alias psysh="$HOME/.config/composer/vendor/bin/psysh" | |
alias szsh=". ~/.zshrc" | |
alias activate=activate_python_virtualenv | |
alias py3=python3 | |
#". /var/www/html/python/env1/bin/activate" | |
alias sshorder="ssh [email protected]" | |
alias pbcopy='xclip -selection clipboard' |
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
<?php | |
class StudentController extends Controller{ | |
public function __construct(FormRepository $formRepository, StudentRepository $studentRepository){ | |
$this->studentRepository = $studentsRepository; | |
$this->formRepository = $formRepository; | |
} | |
public function libraryMethod(Request $request, LibraryRepository $libraryRepository){ | |
$this->studentRepository($libraryRepository); |
The git command-line utility has plenty of inconsistencies http://steveko.wordpress.com/2012/02/24/10-things-i-hate-about-git/
A GUI like http://sourcetreeapp.com is often helpful, but staying on the command line usually quicker. This is a list of the commands I use most frequently, listed by funcional category:
git status
list which (unstaged) files have changed