#Adding an existing project to GitHub using the command line
Simple steps to add existing project to Github.
In Terminal, change the current working directory to your local project.
##2. Initialize the local directory as a Git repository.
git init
git clean -fdx
| // for detailed comments and demo, see my SO answer here http://stackoverflow.com/questions/8853396/logical-operator-in-a-handlebars-js-if-conditional/21915381#21915381 | |
| /* a helper to execute an IF statement with any expression | |
| USAGE: | |
| -- Yes you NEED to properly escape the string literals, or just alternate single and double quotes | |
| -- to access any global function or property you should use window.functionName() instead of just functionName() | |
| -- this example assumes you passed this context to your handlebars template( {name: 'Sam', age: '20' } ), notice age is a string, just for so I can demo parseInt later | |
| <p> | |
| {{#xif " name == 'Sam' && age === '12' " }} | |
| BOOM |
| /// <summary> | |
| /// Using this class for base will default the primary key of the entity to be int. | |
| /// </summary> | |
| public class EntityBase : EntityBase<int> | |
| { | |
| } | |
| /// <summary> | |
| /// The base entity. | |
| /// </summary> |
| // https://www.gyrocode.com/articles/how-to-reset-file-input-with-javascript/ | |
| var $el = $('#example-file'); | |
| $el.wrap('<form>').closest('form').get(0).reset(); | |
| $el.unwrap(); |
| @paramName IS NULL OR columnName = @paramName |
| function htmlSpecialChars(unsafe) { | |
| return unsafe | |
| .replace(/&/g, "&") | |
| .replace(/</g, "<") | |
| .replace(/>/g, ">") | |
| .replace(/'/g, "'") | |
| .replace(/"/g, """); | |
| } |
| /*===================================================== | |
| Twitter Bootstrap | |
| =====================================================*/ | |
| /* Large desktop */ | |
| @media (min-width: 1200px) { ... } | |
| /* Portrait tablet to landscape and desktop */ | |
| @media (min-width: 768px) and (max-width: 979px) { ... } | |
| /* Landscape phone to portrait tablet */ |
| find /path/to/base/dir -type d -exec chmod 755 {} + |