- Does the code work?
- Description of the project status is included.
- Code is easily understand.
- Code is written following the coding standarts/guidelines (React in our case).
- Code is in sync with existing code patterns/technologies.
- DRY. Is the same code duplicated more than twice?
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 doStep1(init, callback) { | |
const result = init + 1 | |
callback(result) | |
} | |
function doStep2(init, callback) { | |
const result = init + 2 | |
callback(result) | |
} |
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
// Converts an ArrayBuffer directly to base64, without any intermediate 'convert to string then | |
// use window.btoa' step. According to my tests, this appears to be a faster approach: | |
// http://jsperf.com/encoding-xhr-image-data/5 | |
/* | |
MIT LICENSE | |
Copyright 2011 Jon Leighton | |
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: |
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() { | |
function getRgbArray(color, alpha) { | |
// Always return an array, either empty or filled. | |
var rgb = []; | |
var hex; | |
// Get an array of rgb(a) values. | |
if (color.substr(0, 1) === '#') { | |
/* HEX STRING */ | |
// If the first character is # we're dealing with a hex string. Get |
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
#!/sbin/openrc-run | |
depend() { | |
need localmount | |
need bootmisc | |
} | |
start() { | |
ebegin "Mounting chroot directories" | |
mount -o rbind /dev /mnt/mychroot/dev > /dev/null & |
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
SPC s c remove highlight | |
**** Files manipulations key bindings | |
Files manipulation commands (start with ~f~): | |
| Key Binding | Description | | |
|-------------+----------------------------------------------------------------| | |
| ~SPC f c~ | copy current file to a different location | | |
| ~SPC f C d~ | convert file from unix to dos encoding | | |
| ~SPC f C u~ | convert file from dos to unix encoding | |
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
/** | |
* Adapted from https://gist.github.com/hdragomir/8f00ce2581795fd7b1b7 | |
* This version tries to load the font from localStorage. If it's not there it simply adds a link to the stylesheet | |
* and ajaxes the contents in on load. This makes an extra request. But adding the stylesheet link renders quicker than | |
* waiting for a response to the ajax request and then injecting the contents into a style tag, hopefully minimising the | |
* FOUT you get when you view http://www.theguardian.com/ and http://www.smashingmagazine.com. | |
*/ | |
(function () { | |
"use strict"; | |
// Once cached the css file is stored on the client forever. To invalidate the cache change this URL. |
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
[user] | |
name = Pavan Kumar Sunkara | |
email = [email protected] | |
username = pksunkara | |
[core] | |
editor = vim | |
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol | |
excludesfile = ~/.gitignore | |
[sendemail] | |
smtpencryption = tls |
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
Name: hahah | |
Architecture: x86_64 | |
Created: 2016/09/01 13:28 UTC | |
Status: Stopped | |
Type: persistent | |
Profiles: default | |
Log: | |
lxc 20160901231830.049 INFO lxc_start - start.c:lxc_check_inherited:251 - closed inherited fd 3 |
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
# iptables --list | |
Chain INPUT (policy ACCEPT) | |
num target prot opt source destination | |
1 RH-Firewall-1-INPUT all -- 0.0.0.0/0 0.0.0.0/0 | |
Chain FORWARD (policy ACCEPT) | |
num target prot opt source destination | |
1 RH-Firewall-1-INPUT all -- 0.0.0.0/0 0.0.0.0/0 | |
Chain OUTPUT (policy ACCEPT) |
NewerOlder