Skip to content

Instantly share code, notes, and snippets.

View asyzdykov's full-sized avatar

A S asyzdykov

View GitHub Profile
@asyzdykov
asyzdykov / Confirm.vue
Created November 21, 2018 18:19 — forked from hluz/Confirm.vue
Vuetify Confirm Dialog component that can be used locally or globally
<template>
<v-dialog v-model="dialog" :max-width="options.width" @keydown.esc="cancel()">
<v-toolbar dark :color="options.color" dense>
<v-toolbar-title class="white--text">{{ title }}</v-toolbar-title>
</v-toolbar>
<v-card tile>
<v-card-text v-show="!!message">{{ message }}</v-card-text>
<v-card-actions>
<v-spacer></v-spacer>
<v-btn color="primary darken-1" flat="flat" @click.native="agree()">Yes</v-btn>
@asyzdykov
asyzdykov / JSON2Java.java
Created September 14, 2017 03:22 — forked from wendal/JSON2Java.java
JSON to Java (Use ScriptEngine in JDK6)
public class JSON2Java {
private static final ScriptEngine jsonParser;
static {
try {
String init = read(JSON2Java.class.getResource("json2java.js"));
ScriptEngine engine = new ScriptEngineManager().getEngineByName("JavaScript");
engine.eval(init);
jsonParser = engine;
@asyzdykov
asyzdykov / XMLAdapter.java
Last active August 29, 2015 14:14
XMLAdapter
package kz.bas.sop.ved.commons;
/**
* Created by tacit on 04.02.2015.
*/
import java.text.SimpleDateFormat;
import java.util.Date;
import javax.xml.bind.annotation.adapters.XmlAdapter;
@asyzdykov
asyzdykov / 0_reuse_code.js
Last active August 29, 2015 14:10
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console