Skip to content

Instantly share code, notes, and snippets.

View awave1's full-sized avatar

Artem Golovin awave1

  • Vancouver, Canada
  • 10:13 (UTC -07:00)
View GitHub Profile
@awave1
awave1 / .vimrc
Created July 8, 2016 01:01 — forked from simonista/.vimrc
A basic .vimrc file that will serve as a good template on which to build.
" Don't try to be vi compatible
set nocompatible
" Helps force plugins to load correctly when it is turned back on below
filetype off
" TODO: Load plugins here (pathogen or vundle)
" Turn on syntax highlighting
syntax on
/**
* Created by awave on 2016-07-27.
*/
public class BitmapWorkers {
public static class BitmapWorkerFile extends AsyncTask<String, Void, Bitmap> {
private WeakReference<ImageView> imageViewReference = null;
private Activity mActivity;
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:card_view="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/card_object"
android:layout_width="match_parent"
android:layout_height="wrap_content">
@awave1
awave1 / app.js
Created June 7, 2017 21:56 — forked from sogko/app.js
gulp + expressjs + nodemon + browser-sync
'use strict';
// simple express server
var express = require('express');
var app = express();
var router = express.Router();
app.use(express.static('public'));
app.get('/', function(req, res) {
res.sendfile('./public/index.html');
while true; do /c/MinGW/msys/1.0/bin/rsync.exe -avhr --filter=':- .gitignore' --exclude='.git' certainteed-remote/ certainteed; done
@awave1
awave1 / first.c
Last active October 26, 2017 04:04
so, uh...
/*
Name: Artem Golovin
Email: agolo124@mtroyal.ca
Course: COMP 2655-001
Instructor: ppospisil
Assignment: 3
Due Date: October, 6th
Source: first.c
*/
#include <stdio.h>
@awave1
awave1 / A4.S
Created November 6, 2017 03:14 — forked from anonymous/A4.S
; ========================================================================
; Name: Artem Golovin
; Email: agolo124@mtroyal.ca
; Course: COMP2655-001
; Due Date: November 5th
; Assignment: 4
; Instructor: ppospisil
; Source: A4.S
; Purpose: To gain experience with branching and to implement
; "snaking" column representation for sorted data
@awave1
awave1 / A4.S
Created November 6, 2017 04:15 — forked from anonymous/A4.S
; ========================================================================
; Name: Artem Golovin
; Email: agolo124@mtroyal.ca
; Course: COMP2655-001
; Due Date: November 5th
; Assignment: 4
; Instructor: ppospisil
; Source: A4.S
; Purpose: To gain experience with branching and to implement
; "snaking" column representation for sorted data
@awave1
awave1 / main.c
Created November 21, 2017 08:15
remove element from array
#include<stdio.h>
#define SIZE 12
int main() {
int arr[SIZE] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12};
int size = SIZE;
int i = 0;
@awave1
awave1 / pre-commit
Created February 7, 2018 02:17
pre-commit script
#!/bin/bash
js_files=$(git diff --name-only | grep "\.js\?$")
eslint=""
check_failed=0
for file in $js_files; do
if [[ $file == app* ]]; then
eslint="./app/node_modules/eslint/bin/eslint.js"
else