Skip to content

Instantly share code, notes, and snippets.

View vickyprastiv's full-sized avatar

Vicky Verdiana vickyprastiv

  • Bandung, Indonesia
View GitHub Profile
@vickyprastiv
vickyprastiv / wsl2-ubuntu-lamp.md
Created May 7, 2023 13:21 — forked from abobija/wsl2-ubuntu-lamp.md
LAMP stack on WSL2 (Ubuntu 20.04) - Apache, MySQL, PHP, PhpMyAdmin

LAMP stack on WSL2 (Ubuntu 20.04) - Apache, MySQL, PHP, PhpMyAdmin

Apache

sudo apt-get update && sudo apt-get upgrade 
sudo apt-get install -y apache2

PHP

@vickyprastiv
vickyprastiv / animate-integer.vue
Created June 29, 2022 03:24 — forked from millerrafi/animate-integer.vue
A Vue component that animates changes to an integer value
<template>
<span>{{ formatted }}</span>
</template>
<script>
import gsap from 'gsap';
/**
* A Vue component that displays a value and animates changes.
*
/*
* This decorates Handlebars.js with the ability to load
* templates from an external source, with light caching.
*
* To render a template, pass a closure that will receive the
* template as a function parameter, eg,
* T.render('templateName', function(t) {
* $('#somediv').html( t() );
* });
* Source: https://github.com/wycats/handlebars.js/issues/82
@vickyprastiv
vickyprastiv / app.css
Last active August 29, 2015 14:19 — forked from rdtsc/app.css
body {
font-family: sans-serif;
}
section {
margin-bottom: 40px;
}
h1 {
font-size: 20px;

Basics

Creating a new PHPExcel Object.

    $this->PHPExcel = new PHPExcel();

Working with sheets

Creating a new sheet:

(function() {
window.frame = require("nw.gui").Window.get();
window.frame.isFocused = true;
var windowFocusHandler = function() {
window.frame.isFocused = true;
}
, windowBlurHandler = function() {
window.frame.isFocused = false;
@vickyprastiv
vickyprastiv / 0_reuse_code.js
Created October 25, 2013 13:24
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