Skip to content

Instantly share code, notes, and snippets.

View akoskm's full-sized avatar

Akos Kemives akoskm

View GitHub Profile
react component:
render() {
const { username, password } = this.state.formData;
return (
<div className={style.className}>
<hgroup>
<div className="center">
<h1>Hi</h1>
</div>
@import '~client/shared/scss/typography';
@import '~client/shared/scss/colors';
@import '~client/shared/scss/elements/input-fields';
:local(.className) {
overflow: hidden;
position: fixed;
top: 50%;
transform: translate(0, -50%);
width: 100%;
require "open3"
require "digest/sha1"
class Webpacker::Compiler
# Additional paths that test compiler needs to watch
# Webpacker::Compiler.watched_paths << 'bower_components'
cattr_accessor(:watched_paths) { [] }
# Additional environment variables that the compiler is being run with
# Webpacker::Compiler.env['FRONTEND_API_KEY'] = 'your_secret_key'
@akoskm
akoskm / function.ts
Last active September 12, 2019 14:04
Use TypeScript to DRY up your components
onClick: (event: any) => void
@akoskm
akoskm / index-new.jsx
Last active September 3, 2019 09:02
Use React Context to DRY up your components
<TableContext.Provider value={product}>
<Table
products={products}
onProductChange={handleProductChange}
/>
<Sidebar />
</TableContext.Provider>

Keybase proof

I hereby claim:

  • I am akoskm on github.
  • I am akoskm (https://keybase.io/akoskm) on keybase.
  • I have a public key ASC9xA-7Lyx44Q_s-adaEdvE85fGhMf2MLJkw6FDBRpSxgo

To claim this, I am signing this object:

@akoskm
akoskm / index.html
Last active February 29, 2016 20:22
<!DOCTYPE html>
<html>
<head>
<meta content="width=device-width,initial-scale=1" name="viewport">
<title>Work Description Generator</title>
<style>
body {
margin: 10px;
font-size: 16px;
}
var Array = {
create: function(arr) {
if (arr) {
this.data = arr;
} else {
this.data = [];
}
return this;
},
each: function(func, reverse) {
set nocompatible " be iMproved, required
filetype off " required
set tabstop=4
set shiftwidth=4
set expandtab
set list
set listchars=eol:$,tab:>-,trail:~,extends:>,precedes:<