Skip to content

Instantly share code, notes, and snippets.

View beshkenadze's full-sized avatar

Aleksandr Beshkenadze beshkenadze

View GitHub Profile
@beshkenadze
beshkenadze / CallLog.java
Created April 7, 2015 11:08
Example for get history calls.
String[] projection = new String[]{
CallLog.Calls._ID,
CallLog.Calls.DATE,
CallLog.Calls.NUMBER,
CallLog.Calls.CACHED_NAME,
CallLog.Calls.DURATION,
CallLog.Calls.TYPE
};
String where = "";
adb shell am start -n com.google.android.apps.gcs/com.google.android.apps.gcs.WifiAssistantOptInActivity
var gulp = require('gulp'),
concat = require('gulp-concat'),
rename = require('gulp-rename'),
gzip = require('gulp-gzip'),
uglify = require('gulp-uglify'),
del = require('del');
var minifyCompress = function (from, to, name) {
gulp.src(from)

Я считаю, что курсы должны быть свободными и открытыми, если это обучение общего значения, в таких курсах в первую очередь заинтересованы компании, если составителю курсов так сильно нужны деньги, то можно найти спонсоров, не думаю, что это большая проблема.

Главная проблема в том, что для поддержания свободных курсов нужно человеческие ресурсы, не все такие альтруисты, как Антон ;)

@beshkenadze
beshkenadze / 0_reuse_code.js
Last active August 29, 2015 14:16
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
$("a[href*='http://']:not([href*='"+location.hostname+"']),[href*='https://']:not([href*='"+location.hostname+"'])")
.addClass("external_link")
.attr("target", "_blank")
.attr("title", "Открыть в новом окне");
package com.example.android;
import android.support.multidex.MultiDexApplication;
import com.crashlytics.android.Crashlytics;
import io.fabric.sdk.android.Fabric;
public class ExampleApplication extends MultiDexApplication {
@beshkenadze
beshkenadze / app.md
Last active May 1, 2017 17:44
Mobile apps for travelers
// ============================================================================================
// Code
//
// Example showing how to set a View's background to a tiled bitmap.
// assumes: res/drawable/pattern01.png - The bitmap representing an individual tile
public void setViewTiledBackground(View view, Resources resources) {
Bitmap tile = BitmapFactory.decodeResource(resources, R.drawable.pattern02);
BitmapDrawable tiledBitmapDrawable = new BitmapDrawable(resources, tile);
tiledBitmapDrawable.setTileModeX(Shader.TileMode.REPEAT);
-dontoptimize
-dontobfuscate
#-optimizationpasses 5
-dontusemixedcaseclassnames
-dontskipnonpubliclibraryclasses
-dontpreverify
-keepattributes SourceFile,LineNumberTable
-keepattributes *Annotation*
#Project