Skip to content

Instantly share code, notes, and snippets.

key binding
[
{ "keys": ["alt+r"], "command": "reindent", "args": {"single_line": false}},
{ "keys": ["alt+z"], "command": "duplicate_line" },
{ "keys": ["alt+q"], "command": "run_macro_file", "args": {"file": "Packages/Default/Add Line.sublime-macro"} },
{ "keys": ["alt+e"], "command": "run_macro_file", "args": {"file": "res://Packages/Default/Delete Line.sublime-macro"} },
{ "keys": ["alt+w"], "command": "scroll_lines", "args": {"amount": 5.0 } },
{ "keys": ["alt+s"], "command": "scroll_lines", "args": {"amount": -5.0 } },
{ "keys": ["alt+`"], "command": "show_overlay", "args": {"overlay": "goto", "show_files": true} },
{ "keys": ["alt+a"], "command": "move_to", "args": {"to": "bol", "extend": false} },
https://stackoverflow.com/questions/37505709/how-do-i-download-the-android-sdk-without-downloading-android-studio
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>decrypter</title>
<link rel="stylesheet" href="">
</head>
<body>
<div id="encryptResult"></div>
<template>
<StackLayout>
<ScrollView v-if="!emptyOrder">
<FlexboxLayout flexDirection="column" marginTop="25" marginRight="25" marginLeft="25">
<GridLayout v-for="(order,index) in orderList" marginBottom="15" columns="200,50,50" rows="*,auto">
<Label class="order-name" :text="order.name" row="0" col="0"/>
<TextField keyboardType="number" v-model:value="order.qty" row="0" col="1" hint="Qty" />
<Button text="x" class="delete" ripple="true" @tap="removeOrder(index)" row="0" col="2" />
</GridLayout>
<TextView v-model="message" :hint="hint" />
const state = {
billing: [],
message: ''
}
const mutations = {
addingBilling: (state,item) =>{
state.billing.push(item)
},
removeBilling: (state,index) =>{
<html>
<head>
<style>
header {
background: red;
padding: 10px;
text-align: center;
font-size: 5vw;
position: fixed;
width: 100%;
<template>
<Page>
<ActionBar>
<GridLayout width="100%" columns="auto, *">
<!-- <Label text="MENU" @tap="$refs.drawer.nativeView.showDrawer()" col="0"/> -->
<Label class="title" text="Attendance App" align="center" col="1"/>
</GridLayout>
</ActionBar>
<RadSideDrawer ref="drawer">
import 'package:flutter/material.dart';
import 'package:flutter_svg/flutter_svg.dart';
class MainBottomBar extends StatelessWidget {
int index;
dynamic changeIndex;
MainBottomBar(this.index, this.changeIndex);
SvgPicture definePic(int i) {
//main dashboard
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(),
resizeToAvoidBottomPadding: false,
drawer: new Drawer(
child:SideDrawer()
),
def create
begin
@merchant = Merchant.find_by!(:username => params[:username])
if @merchant
render json: {error: 'duplicate', message: "Username anda sudah terdaftar"}, status: :unprocessable_entity
end
rescue Mongoid::Errors::DocumentNotFound
@merchant = Merchant.new()
@merchant.name = params[:name]
@merchant.username = params[:username]