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
@ECHO OFF | |
SET "TIDY=C:\php\phptidy\phptidy.php" | |
SET "PHP=C:\php\php.exe" | |
SET opts=%1 | |
SET filename=%2 | |
SHIFT | |
SHIFT |
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
;;; .emacs --- Surajit Basak | |
;;; Commentary: | |
;; This file contains my Emacs configation | |
;; | |
;;; Code: | |
(require 'package) | |
(add-to-list 'package-archives '("gnu" . "http://elpa.gnu.org/packages/")) | |
(add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/") t) | |
(add-to-list 'package-archives '("org" . "http://orgmode.org/elpa/") t) |
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
set runtimepath+=~/.vim_runtime | |
call plug#begin() | |
Plug 'terryma/vim-multiple-cursors' | |
Plug 'editorconfig/editorconfig-vim' | |
"Prettier | |
Plug 'prettier/vim-prettier', { 'do': 'yarn install', 'for': ['javascript', 'typescript', 'css', 'less', 'scss', 'json', 'graphql', 'markdown', 'vue', 'yaml', 'html'] } | |
let g:prettier#autoformat = 0 | |
autocmd BufWritePre *.js,*.jsx,*.mjs,*.ts,*.tsx,*.css,*.less,*.scss,*.json,*.graphql,*.md,*.vue,*.yaml,*.html PrettierAsync |
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
<?php | |
$config['database'] = [ | |
'dbname' => 'data', | |
'dbhost' => 'localhost', | |
'dbdriver' => 'mysql', | |
'username' => 'root', | |
'password' => 'password' | |
]; |
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
{ | |
"items": [ | |
{ | |
"code": "001", | |
"name": "Pan Cake", | |
"unit": "Pcs", | |
"rate": "50.00" | |
}, | |
{ | |
"code": "002", |
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
import React from "react"; | |
const SearchItemsList = ({ searchItems, cursor, selectItem }) => { | |
return ( | |
<ul className="list-group"> | |
{searchItems.map((item, idx) => ( | |
<li | |
className={ | |
cursor === idx ? "active list-group-item" : "list-group-item" | |
} |
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
import React from "react"; | |
import "./App.css"; | |
import SearchItemsList from "./components/SearchItemsList"; | |
class App extends React.Component { | |
constructor(props) { | |
super(props); | |
this.state = { | |
item: { | |
code: "", |
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
<div className="form-group"> | |
<label htmlFor="code">Code</label> | |
<input | |
type="text" | |
name="code" | |
id="code" | |
value={code} | |
onChange={this.handleChange} | |
readOnly | |
className="custom-input form-control" |
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
<ul className="list-group"> | |
{searchItems.map((item, idx) => ( | |
<li | |
className={cursor === idx ? "active list-group-item" : "list-group-item"} | |
key={idx} | |
onClick={() => selectItem(item.code)} | |
> | |
{item.name} | |
</li> | |
))} |
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
import React from "react"; | |
| |
const SearchItemsList = ({ searchItems, cursor, selectItem }) => { | |
// ... more code ... | |
} |