Skip to content

Instantly share code, notes, and snippets.

View Chris2011's full-sized avatar

Chrizzly Chris2011

View GitHub Profile
@Chris2011
Chris2011 / createVersionFile.js
Created September 5, 2019 07:14
create version file.
const git = require('git-rev'),
package = require('./package.json'),
fs = require('fs');
console.log('\n------------------- create version.json file -------------------\n');
Promise.all([
new Promise((resolve, reject) => {
git.short(hash => {
if(hash) {
declare module 'tiptap' {
import Vue from 'vue';
export class Editor {
public constructor({});
public setOptions({}): void;
public setContent(content: string, emitUpdate?: boolean): void;
public getHTML(): string;
public destroy(): void;
}
@Chris2011
Chris2011 / ComboListener.java
Created January 18, 2023 17:27 — forked from resarahadian/ComboListener.java
ComboBox AutoComplete Java Swing
import java.awt.event.KeyAdapter;
import java.awt.event.KeyEvent;
import java.util.Vector;
import javax.swing.DefaultComboBoxModel;
import javax.swing.JComboBox;
import javax.swing.JTextField;
public class ComboListener extends KeyAdapter
{
@SuppressWarnings("rawtypes")