Download and install ResEx at http://resex.codeplex.com/.
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
| import React from 'react'; | |
| import { | |
| StyleSheet, | |
| Text, | |
| ViewStyle, | |
| } from 'react-native'; | |
| import { TextStyle } from 'react-native'; | |
| import { ViewProps } from 'react-native'; | |
| import { LayoutAnimation } from 'react-native'; | |
| import * as Animatable from 'react-native-animatable'; |
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
| import * as functions from 'firebase-functions'; | |
| import * as admin from 'firebase-admin'; | |
| import { compare } from 'bcryptjs'; | |
| import { Merchant } from '../state'; | |
| interface AuthRequest { | |
| username: string; | |
| password: string; | |
| } |
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
| package main | |
| import ( | |
| "fmt" | |
| "log" | |
| "net/http" | |
| "net/http/httputil" | |
| "os" | |
| "os/exec" | |
| "time" |
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
| import * as React from 'react'; | |
| import * as moment from 'moment'; | |
| import { LocaleUtils, Modifier } from 'react-day-picker'; | |
| import DayPickerInput from 'react-day-picker/lib/src/DayPickerInput'; | |
| const dateFormat = 'DD/MM/YYYY'; | |
| interface YearMonthProps { | |
| date?: Date; |
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
| import * as React from 'react'; | |
| import * as moment from 'moment'; | |
| import { LocaleUtils, Modifier } from 'react-day-picker'; | |
| import DayPickerInput from 'react-day-picker/lib/src/DayPickerInput'; | |
| const dateFormat = 'DD/MM/YYYY'; | |
| interface YearMonthProps { | |
| date?: Date; |
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
| package main | |
| import ( | |
| "encoding/base32" | |
| "encoding/binary" | |
| "fmt" | |
| "math/rand" | |
| "time" | |
| ) |
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
| package main | |
| import "fmt" | |
| func main() { | |
| //nCr | |
| n := 7 | |
| r := 2 | |
| c := BinCoeff(n, r) | |
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
| using System; | |
| using System.Collections.Generic; | |
| using System.Configuration; | |
| using System.Diagnostics; | |
| using System.Diagnostics.CodeAnalysis; | |
| using System.IO; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Text.RegularExpressions; | |
| using System.Threading.Tasks; |
This document is
stolenbased on [nuget coding guidelines][nuget] and microsoft [internal coding guidlines][ms-coding-guidelines].
Let's face it. No matter what coding guidelines we choose, we're not going to make everyone happy. While we would like to embrace everyone's individual style, working together on the same codebase would be utter chaos if we don't enforce some consistency. When it comes to coding guidelines, consistency can be even more important than being "right."
- [Camel case][] is a casing convention where the first letter is lower-case, words are not separated by any character but have their first letter capitalized. Example:
thisIsCamelCased. - [Pascal case][] is a casing convention where the first letter of each word is capitalized, and no separating character is included between words. Example:
ThisIsPascalCased.
