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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <stdint.h> | |
#include <inttypes.h> | |
#include <sys/types.h> | |
#include <unistd.h> | |
#define ERROR_ON_SBRK (void *)-1 | |
// Store info about block |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <stdint.h> | |
#include <inttypes.h> | |
#include <sys/types.h> | |
#include <unistd.h> | |
#include "ex1.h" | |
#define ERROR_ON_SBRK (void *)-1 |
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
npm install --save js-convert-case | |
yarn add js-convert-case |
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
<!-- Download from NPM --> | |
<script src="./node_modules/js-convert-case/dist/js-convert-case.js"></script> | |
<!-- Or use minified --> | |
<script src="./node_modules/js-convert-case/dist/js-convert-case.min.js"></script> | |
<!-- Download directly --> | |
<script src="path/to/js-convert-case"></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
const jsConvert = require('js-convert-case'); |
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
(() => { | |
console.log(jsConvert.toCamelCase('param-case')); // paramCase | |
console.log(jsConvert.toSnakeCase('param-case')); // param_case | |
console.log(jsConvert.toPascalCase('param-case')); // ParamCase | |
console.log(jsConvert.toDotCase('param-case')); // param.case | |
console.log(jsConvert.toPathCase('param-case')); // param/case | |
console.log(jsConvert.toTextCase('param-case')); // param case | |
console.log(jsConvert.toSentenceCase('param-case')); // Param case | |
console.log(jsConvert.toHeaderCase('param-case')); // Param Case | |
console.log(jsConvert.toLowerCase('param-case')); // param-case |
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 clone https://github.com/huynhsamha/js-convert-case.git |
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
console.log(jsConvert.toCamelCase('param-case')); // paramCase | |
console.log(jsConvert.toCamelCase('camelCase')); // camelCase | |
console.log(jsConvert.toCamelCase('Title Case')); // titleCase | |
console.log(jsConvert.toSnakeCase('param-case')); // param_case | |
console.log(jsConvert.toSnakeCase('camelCase')); // camel_case | |
console.log(jsConvert.toSnakeCase('Title Case')); // title_case | |
console.log(jsConvert.toPascalCase('param-case')); // ParamCase | |
console.log(jsConvert.toPascalCase('camelCase')); // CamelCase |
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
// Specific values | |
console.log(jsConvert.toCamelCase('')); // => '' | |
console.log(jsConvert.toSnakeCase(null)); // => '' | |
console.log(jsConvert.toPascalCase(undefined)); // => '' |
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
#pragma once | |
namespace shama { | |
enum BalanceFactor { LH = -1, EH = 0, RH = 1 }; | |
template <class T> | |
struct AVLNode { | |
T data; | |
AVLNode* L = nullptr; |
OlderNewer