Skip to content

Instantly share code, notes, and snippets.

View Ornataweaver's full-sized avatar
🎯
Focusing

Ehsan Mohammadi Ornataweaver

🎯
Focusing
View GitHub Profile
@Dv92
Dv92 / styles.less
Last active November 12, 2018 10:36
Atom: how to show invisibile characters on selected text like sublime text does
atom-text-editor::shadow {
.editor-contents--private {
.invisible-character {
visibility: hidden;
}
&.has-selection {
.invisible-character {
visibility: visible;
@odysseas
odysseas / QuoteGenerator.markdown
Last active June 28, 2017 15:35
Random Quote Generator
contract Bank{
/*Contract that stores user balances. This is the vulnerable contract. This contract contains
the basic actions necessary to interact with its users, such as: get balance, add to balance,
and withdraw balance */
mapping(address=>uint) userBalances;/*mapping is a variable
type that saves the relation between the user and the amount contributed to
this contract. An address (account) is a unique indentifier in the blockchain*/
function getUserBalance(address user) constant returns(uint) {
@lmcarreiro
lmcarreiro / grid-columns.js
Last active March 26, 2018 10:31
Grid Columns Column-Indented
const columns = [
{ name: 'id' , index: 'id' , width: 55 },
{ name: 'invdate', index: 'invdate' , width: 90 },
{ name: 'name' , index: 'name asc, invdate', width: 100 },
{ name: 'amount' , index: 'amount' , width: 80 , align: "right" },
{ name: 'tax' , index: 'tax' , width: 80 , align: "right" },
{ name: 'total' , index: 'total' , width: 80 , align: "right" },
{ name: 'note' , index: 'note' , width: 150, sortable: false }
];