Skip to content

Instantly share code, notes, and snippets.

@cstuncsik
cstuncsik / docker-compose.yml
Created February 23, 2020 05:22
Wordpress playground
version: '3.3'
services:
db:
image: mysql
restart: always
command: --default-authentication-plugin=mysql_native_password
environment:
MYSQL_ROOT_PASSWORD: ${DB_ROOT_PASSWORD}
MYSQL_DATABASE: ${DB_NAME}
@cstuncsik
cstuncsik / app.js
Created November 21, 2017 13:11
Decorating Angular Strap Modal service with controller lifecycle events
angular.module('app', ['mgcrea.ngStrap']).config(['$provide', $provide => {
$provide.decorator('$modal', $delegate => config => {
const createConfigMethodDecorator = (orignalMethod, lifeCycleEventName) => $m => {
if (config.controllerAs) {
const modalPromise = $m.$promise
if (modalPromise) {
modalPromise.then(val => {
if (val && val.locals) {
@cstuncsik
cstuncsik / Linux Mint 18.2
Last active October 20, 2017 06:44 — forked from anonymous/-
System: Host: GL752VW Kernel: 4.10.0-37-generic x86_64 (64 bit gcc: 5.4.0)
Desktop: Cinnamon 3.4.6 (Gtk 3.18.9-1ubuntu3.3) dm: lightdm Distro: Linux Mint 18.2 Sonya
Machine: System: ASUSTeK (portable) product: GL752VW v: 1.0
Mobo: ASUSTeK model: GL752VW v: 1.0 Bios: American Megatrends v: GL752VW.207 date: 11/03/2015
CPU: Quad core Intel Core i5-6300HQ (-MCP-) cache: 6144 KB
flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 18432
clock speeds: min/max: 800/3200 MHz 1: 2962 MHz 2: 2956 MHz 3: 2967 MHz 4: 2977 MHz
Graphics: Card-1: Intel Skylake Integrated Graphics bus-ID: 00:02.0 chip-ID: 8086:191b
Card-2: NVIDIA GM107M [GeForce GTX 960M] bus-ID: 01:00.0 chip-ID: 10de:139b
Display Server: X.Org 1.18.4 driver: nvidia Resolution: 1920x1080@60.00hz
@cstuncsik
cstuncsik / Linux Mint 18.1
Created October 20, 2017 06:41 — forked from anonymous/-
System: Host: GL752VW Kernel: 4.4.0-97-generic x86_64 (64 bit gcc: 5.4.0)
Desktop: Cinnamon 3.2.7 (Gtk 3.18.9-1ubuntu3.3) dm: mdm Distro: Linux Mint 18.1 Serena
Machine: System: ASUSTeK (portable) product: GL752VW v: 1.0
Mobo: ASUSTeK model: GL752VW v: 1.0 Bios: American Megatrends v: GL752VW.207 date: 11/03/2015
CPU: Quad core Intel Core i5-6300HQ (-MCP-) cache: 6144 KB
flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 18432
clock speeds: min/max: 800/3200 MHz 1: 3113 MHz 2: 1087 MHz 3: 2978 MHz 4: 1999 MHz
Graphics: Card-1: Intel Skylake Integrated Graphics bus-ID: 00:02.0 chip-ID: 8086:191b
Card-2: NVIDIA GM107M [GeForce GTX 960M] bus-ID: 01:00.0 chip-ID: 10de:139b
Display Server: X.Org 1.18.4 driver: nvidia Resolution: 1920x1080@60.00hz
@cstuncsik
cstuncsik / introrx.md
Created September 3, 2017 14:49 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
@cstuncsik
cstuncsik / rxjs_operators_by_example.md
Created September 3, 2017 14:49 — forked from btroncone/rxjs_operators_by_example.md
RxJS 5 Operators By Example
<!DOCTYPE html>
<html>
<head>
<script src="https://unpkg.com/react@15.2.1/dist/react.min.js"></script>
<script src="https://unpkg.com/react-dom@15.2.1/dist/react-dom.min.js"></script>
<script src="https://unpkg.com/redux@^3.5.2/dist/redux.min.js"></script>
<script src="https://unpkg.com/react-redux@4.4.5/dist/react-redux.min.js"></script>
<script src="https://unpkg.com/@reactivex/rxjs/dist/global/Rx.js"></script>
<script src="https://unpkg.com/redux-observable/dist/redux-observable.min.js"></script>
<meta charset="utf-8">
@cstuncsik
cstuncsik / Main.elm
Created July 27, 2017 04:07 — forked from anonymous/Main.elm
Forms
module Main exposing (..)
import String
import Regex
import Html exposing (..)
import Html.Attributes exposing (..)
import Html.Events exposing (onInput)
main : Program Never Model Msg
@cstuncsik
cstuncsik / Main.elm
Created July 26, 2017 19:51 — forked from anonymous/Main.elm
Text Fields
module Main exposing (..)
import Html exposing (Html, Attribute, div, input, text)
import Html.Attributes exposing (..)
import Html.Events exposing (onInput)
main : Program Never Model Msg
main =
Html.beginnerProgram { model = model, view = view, update = update }
@cstuncsik
cstuncsik / Main.elm
Created July 26, 2017 19:46 — forked from anonymous/Main.elm
Buttons
module Main exposing (..)
import Html exposing (Html, button, div, text)
import Html.Events exposing (onClick)
main : Program Never Model Msg
main =
Html.beginnerProgram { model = model, view = view, update = update }