Skip to content

Instantly share code, notes, and snippets.

@i5on9i
i5on9i / MoneyTableTemplate.vue
Last active Feb 15, 2021
Vuejs virtual-table Test
View MoneyTableTemplate.vue
<template>
<div class="d-flex w-100 align-center">
<!--
for v-money
the event is called three times
if the `@change.native` or `@input` is used,
so the @blur.native is used instead.
https://github.com/vuejs-tips/v-money/issues/42
-->
<input
View aes-ctr.py
#!/usr/bin/env python
#
# AES cryptography algorithm implementation in Counter mode
#
# Author: Radek Domanski
# email: radek.domanski # gmail.com
# original source url : https://github.com/rdomanski/AES-CTR/blob/master/aes-ctr.py
# ported to python 3 : namh
import binascii
View TermsViewController.php
<?php
namespace App\Http\Controllers\Info\Terms;
use Illuminate\Http\Request;
use DB;
use App\Lib\Info\Terms;
use App\Http\Controllers\App\BaseViewController;
View BaseViewController.php
<?php
namespace App\Http\Controllers\App;
use App\Http\Controllers\Controller;
use App\Lib\CorpValues;
use Illuminate\Support\Facades\View;
class BaseViewController extends Controller
{
View settings.json
{
"files.watcherExclude": {
"**/.bloop": true,
"**/.metals": true,
"**/.ammonite": true
},
"telemetry.enableCrashReporter": false,
"telemetry.enableTelemetry": false,
"terminal.integrated.shell.windows": "C:\\WINDOWS\\System32\\cmd.exe",
View keybindings.json
// Place your key bindings in this file to overwrite the defaults
[
{
"key": "ctrl+r",
"command": "workbench.action.gotoSymbol"
},
{
"key": "ctrl+k ctrl+b",
"command": "workbench.action.toggleSidebarVisibility"
},
View custom radio button.scss
/**
<label className="radio_label">
<input type="radio"
value={item.value}
checked={item.value === this.state.selectedValue}
onChange={this.onOptionClick.bind(this)} />
<span className="checkmark"></span>
{item.label}
</label>
View how_to_use_popbill.php
<?php
require_once '../Popbill/PopbillCashbill.php';
define('LINKHUB_COMM_MODE','CURL');
$LinkID = 'LINKID';
$SecretKey = 'fjkdjslEFEJKLJFKDSLGdfjksl';
$CashbillService = new CashbillService($LinkID, $SecretKey);
// 연동환경 설정값, 개발용(true), 상업용(false)
$CashbillService->IsTest(true);
@i5on9i
i5on9i / vscode.code-snippets
Last active Mar 15, 2018
- path : c:\Users\<user_name>\AppData\Roaming\Code\User\snippets\mysnippet.code-snippets
View vscode.code-snippets
{
// Place your global snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and
// description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope
// is left empty or omitted, the snippet gets applied to all languages. The prefix is what is
// used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders.
// Placeholders with the same ids are connected.
// Example:
// "Print to console": {
// "scope": "javascript,typescript",
@i5on9i
i5on9i / aes.py
Created Feb 11, 2018
ported aes.py to use python3
View aes.py
#!/usr/bin/python
# -*- coding: utf8 -*-
"""
This is a port of Chris Veness' AES implementation: http://www.movable-type.co.uk/scripts/aes.html
Copyright2005-2008 Chris Veness. Right of free use is granted for all
commercial or non-commercial use. No warranty of any form is offered.
Ported in 2009 by Markus Birth <markus@birth-online.de>
2018-02 by namh