This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static class Blur { | |
private static final float BLUR_RADIUS = 20.5f; // 25 is maximum radius | |
// returns blur drawable if api >= 17. returns original drawable if not. | |
@Nullable | |
public static Drawable applyBlur(Drawable drawable, Context context) { | |
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1) { | |
Bitmap fromDrawable = drawableToBitmap(drawable); | |
int width = Math.round(fromDrawable.getWidth() * 0.8f); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'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'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
while true; do /c/MinGW/msys/1.0/bin/rsync.exe -avhr --filter=':- .gitignore' --exclude='.git' certainteed-remote/ certainteed; done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Name: Artem Golovin | |
Email: [email protected] | |
Course: COMP 2655-001 | |
Instructor: ppospisil | |
Assignment: 3 | |
Due Date: October, 6th | |
Source: first.c | |
*/ | |
#include <stdio.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; ======================================================================== | |
; Name: Artem Golovin | |
; Email: [email protected] | |
; 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; ======================================================================== | |
; Name: Artem Golovin | |
; Email: [email protected] | |
; 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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; |
OlderNewer