Skip to content

Instantly share code, notes, and snippets.

@artronics
artronics / events
Created May 28, 2015 19:04
A simple code to demonstrate how events work on C#. this is based on a great video by Mosh Hamedanian: https://www.youtube.com/watch?v=jQgwEsJISy0
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace @event
{
class Program
{
@artronics
artronics / .vimrc
Last active August 29, 2015 14:26 — forked from andyfowler/.vimrc
Swap iTerm2 cursors in vim insert mode when using tmux
" tmux will only forward escape sequences to the terminal if surrounded by a DCS sequence
" http://sourceforge.net/mailarchive/forum.php?thread_name=AANLkTinkbdoZ8eNR1X2UobLTeww1jFrvfJxTMfKSq-L%2B%40mail.gmail.com&forum_name=tmux-users
if exists('$TMUX')
let &t_SI = "\<Esc>Ptmux;\<Esc>\<Esc>]50;CursorShape=1\x7\<Esc>\\"
let &t_EI = "\<Esc>Ptmux;\<Esc>\<Esc>]50;CursorShape=0\x7\<Esc>\\"
else
let &t_SI = "\<Esc>]50;CursorShape=1\x7"
let &t_EI = "\<Esc>]50;CursorShape=0\x7"
endif
module ChildOne exposing (..)
import Ports exposing (..)
import Html exposing (Html, button, text)
import Html.Events exposing (onClick)
type alias Model = String
@artronics
artronics / ideavimrc
Last active January 25, 2018 03:22
new linux setup
"""""KEY BINDINGS
let mapleader = ","
imap jj <Esc>
nnoremap ; :
"nsert a new-line after the current line by pressing Enter (Shift-Enter for inserting a line before the current line)
nmap <S-Enter> O<Esc>
nmap <CR> o<Esc>
"be coool!
set nocompatible
filetype plugin indent on
syntax on
"Colorscheme
set background=dark
"""""""""""" Key Map
imap jj <Esc>
" shortcut to save
call plug#begin()
Plug 'scrooloose/nerdtree'
Plug 'Xuyuanp/nerdtree-git-plugin'
Plug '907th/vim-auto-save'
Plug 'blueshirts/darcula', { 'as': 'darcula' }
Plug 'dracula/vim', { 'as': 'dracula' }
Plug 'tpope/vim-fugitive'
set nocompatible
filetype plugin indent on
syntax on
"colorscheme darcula
"""""""""""" Key Map
let mapleader = ","
let maplocalleader="\<space>"
type: object
description: |
Outcome of an operation that does not result in a resource or bundle being returned (e.g. error, async/batch submission).
There are a number of possible error codes that can be returned along with a more detailed description in the `display` field.
There are general outcomes:
| Code | Response Code | Description |
| -------------------------- | ------------- | --------------------------------------------- |
| ACCESS_DENIED | 401 | Used when the user does not have permission for a particular request. e.g. when their ASID does not have the correct interactions attached to it. |
type: object
description: Internal error code.
properties:
coding:
type: array
items:
type: object
readOnly: true
properties:
system:
package com.example.hellodemo;
import org.apache.http.HttpEntity;
import org.apache.http.NameValuePair;
import org.apache.http.client.entity.UrlEncodedFormEntity;
import org.apache.http.client.methods.CloseableHttpResponse;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.impl.client.CloseableHttpClient;
import org.apache.http.impl.client.HttpClients;