CodePaste Logo
New Snippet New Recent Snippets Recent Snippets My Snippets My Snippets My Favorites Favorites Web Code Search Snippets Search
Sign inor Register
Format:
Recent Snippets
#include <iostream>
#include <algorithm>
#include <string>
#include <map>
using namespace std;


int main()
{
    int number{4711};
Today @ 8:15am
Tags:
20 Views
no comments
 
#include <iostream>
#include <algorithm>
#include <string>
#include <map>
using namespace std;

int number{4711};
// MMMMDCCXI
int main()
{
Today @ 7:54am
Tags:
28 Views
no comments
 
<section class="section">
  <div class="container">
    <header class="section-header">
      <small>Demo</small>
      <h2>Sample Landing Pages</h2>
      <hr>
      <p class="lead">Apart from internal pages, we have designed several single sample pages to get start with.</p>
    </header>

Today @ 6:37am
Tags:
43 Views
no comments
 
compose(
    forEach(({ isCoin, name, count } = {}) => {
      if (isCoin) {
        rightBanknotes.push({ name, count })
      }
      if (!isCoin) {
        leftBanknotes.push({ name, count })
      }
    }),
    sort((a, b) => b.name - a.name),
Today @ 5:36am
Tags:
59 Views
no comments
 
if(multipleClass == false)
         {
             while (!stopped)
             {
                 for (int j = 0; j < data.Count; j++)
                 {
                     net = CalculateNets(data[j].X, data[j].Y);
                     output = activationFunction(net);

                     if (data[j].Class == "X1")
Today @ 5:21am
Tags:
65 Views
no comments
 
clear; clc; 
syms K_t K_e R_m b_f l_w l_b g m_b m_w I_b I_w

%x = [x_w; x_w_d; theta_b; theta_b_d]
%x_d = [x_w_d; x_w_dd; theta_b_d; theta_b_dd]

beta_11 = K_t/R_m;   
beta_12 = -l_w;
beta_21 = -K_t/R_m;
beta_22 = -l_b;
Today @ 5:18am
Tags:
68 Views
no comments
 
int manjsi(int a, int b) {
    if (a > b) {
        return b;
    }
    else {
        return a;
    }
}

int main()
Today @ 5:13am
Tags:
66 Views
no comments
 
sendMsg (string $accesscode, string $userIdentifier, string $title, string $body, string $senderIdentifier, mixed $attachments, [integer $coaccount = 0])

In visual studio -> $attachments is een array van objecten

Handleiding API:
------------------

sendMsg

Via deze methode kan je een bericht naar de hoofdaccount of een co-account van een bepaalde gebruiker sturen. Het opgeven van de verzender en/of bijlage is optioneel.
Today @ 3:27am
Tags:
93 Views
no comments
 
php
<?php 
global $post; 
$logos = roneous_get_logo();
?>
<div class="nav-container">
    <nav class="transparent absolute">
    	<?php get_template_part( 'templates/header/inc', 'top-center' ); ?>
        <div class="nav-bar">
            <div class="module left visible-sm visible-xs inline-block">
                <a href="<?php echo esc_url(home_url('/')); ?>">
Today @ 2:59am
Tags:
95 Views
no comments
 
private void requestGeonames() {
  api.getCities() // это часть ретрофита, за методом кодогенерируемый rest call который вернет ошибку или города
  .subscribeOn(Schedulers.io()) // тут указываем что работу нужно делать отдельно от UI что бы не тормозить
  .observeOn(AndroidSchedulers.mainThread()) // а вот тут что результат нам необходим в UI 
  .map(new Function<CityResponse, List<Geoname>>() { // API вертает немножко не те дангные которые нам нужны, поэтому возращаемое значение мы модернизируем в необходимый вид
    @Override
    public List<Geoname> apply(
      @io.reactivex.annotations.NonNull final CityResponse  cityResponse) throws Exception {
        return cityResponse.geonames;
     }
Today @ 2:58am
Tags:
102 Views
no comments
 
php
<?php 
global $post; 
$logos = roneous_get_logo();
?>
<div class="nav-container">
    <nav>
    	<?php get_template_part( 'templates/header/inc', 'top-center' ); ?>
        <div class="nav-bar">
            <div class="module left visible-sm visible-xs inline-block">
                <a href="<?php echo esc_url(home_url('/')); ?>">
Today @ 2:57am
Tags:
101 Views
no comments
 
Hello there buyers all over the world
Do you really want to make good money and cashout effortlessly and without stress then read this. 
I'm a Canadian certified hacker-
I have my team living UK US Asia-
I have many customers and buyers all over the world and we trust each other guarantee 
I have 8 years experience in information and technology 
I need best buyer and long term business partnership 
I am sure you will be happy to do business with me coz i promise to be trustworthy till DEATH 
PLEASE EMAIL ME FOR FAST REPLY AND RESPONSE 
by stevehopkins72@yahoo.com   Today @ 2:19am
Tags:
108 Views
no comments
 
///<reference path="./../typings/globals/core-js/index.d.ts"/>
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { AppComponent } from './app';

@NgModule({
    imports: [BrowserModule],
    declarations: [AppComponent],
    bootstrap: [AppComponent]
})
by maruti   Today @ 2:17am
Tags:
108 Views
no comments
 
var ts = require('gulp-typescript');
var gulp = require('gulp');
var clean = require('gulp-clean');

var destPath = './libs/';

// Delete the dist directory
gulp.task('clean', function () {
    return gulp.src(destPath)
        .pipe(clean());
by maruti   Today @ 2:06am
Tags:
111 Views
no comments
 
php
static public function checkStatusReasonShipment($shipment_id,$status,$reason_code){
        $revenue_status= Shipment::getStatusShipmentRevenueNearest($shipment_id);
        $log_status = Shipment::getStatusShipmentLogNearest($shipment_id);
        if (count($log_status)>0){
            $arr_reschedule_booking = array(1510,1520,1530);
            if (
                (
                    ($log_status->status == 'Picked Up' && $revenue_status->status != 'Processing') ||
                    ($log_status->status == 'In Transit' && $revenue_status->status != 'Picked Up' && $revenue_status->status != 'Processing') ||
                    ($log_status->status == 'On Delivery' && $revenue_status->status != 'In Transit' && $revenue_status->status != 'Picked Up' && $revenue_status->status != 'Processing') ||
Today @ 1:57am
Tags:
107 Views
no comments
 
{
  "globalDependencies": {
    "core-js": "registry:dt/core-js#0.0.0+20160725163759",
    "jasmine": "registry:dt/jasmine#2.2.0+20160621224255",
    "node": "registry:dt/node#6.0.0+20160909174046"
  }
}
by maruti   Today @ 1:49am
Tags:
112 Views
no comments
 
Competitor app garage sharing

-MioGarage -> Presenta le stesse funzionalita dell'app che andremo a sviluppare ma sia il sito web che le applicazioni android e 
              ios sono ancora in fase di sviluppo e quindi il servizio non é ancora fruibile

-Parcheggiami.it -> Presenta soltanto interfaccia web e limita la ricerca del parcheggio soltanto ad aree ferroviarie/portuali/aereoportuali

-YouPark -> Servizio disponibile soltanto per parcheggi commerciali

-Park.it -> Presenta soltanto interfaccia web e il servizio é disponibile soltanto nell'area di Milano
Today @ 1:47am
Tags:
111 Views
no comments
 
#include <iostream>
using namespace std;

int main() {
	int resultLength = 0;
    
	char test[] = "asdj 123 13!@#!443";
	int length = sizeof(test)/sizeof(char);
	char result[100];
	for (int i = 0; i < length; ++i) {
Today @ 1:47am
Tags:
101 Views
no comments
 
{
  "compilerOptions": {
    "emitDecoratorMetadata": true,
    "experimentalDecorators": true,
    "module": "commonjs",
    "noEmitOnError": true,
    "noImplicitAny": false,
    "outDir": "../Scripts/",
    "removeComments": false,
    "sourceMap": true,
by maruti   Today @ 1:45am
Tags:
114 Views
no comments
 
{
  "version": "1.0.0",
  "name": "aspnet",
  "private": true,
  "scripts": {
    "postinstall": "typings install",
    "typings": "typings"
  },
  "dependencies": {
    "@angular/common": "2.0.0",
by maruti   Today @ 1:32am
Tags:
118 Views
no comments
 
function getUser() {

    var clientContext;
    var user;
    var web;

    SP.SOD.executeFunc('sp.js', 'SP.ClientContext', sharePointReady);

    function sharePointReady() {
        clientContext = SP.ClientContext.get_current();
Today @ 1:10am
Tags:
122 Views
no comments
 
########### Script for archiving files everyday and folders to archive are in xml configuration file. #################
########### First script archive all files including timestamp end on file and ########################################
########### after that it will check timestamps for file to archive and file in archive. ##############################
########### This is for better archiving and less files in archive. Check is using regex for timestamp. ###############
#######################################################################################################################
################################### Configuration #####################################################################
### Configuration file
$script_folder = "C:\SYSADM\Powershell\Tableau_Datasource_archiver"
$config_file = "$script_folder\config.xml"
### Days to retent files
Today @ 12:54am
Tags:
125 Views
no comments
 
private void buttonMessage_Click(object sender, EventArgs e)
        {

            byte[] pdfBytes = File.ReadAllBytes("C:/facturen/test.pdf");
            string pdfBase64 = Convert.ToBase64String(pdfBytes);
            
            Bijlage bijlage1 = new Bijlage("test.pdf", pdfBase64);
            String[] bijlagentest = new String[1];
            string jsonString = JsonConvert.SerializeObject(bijlage1,Formatting.Indented);
            bijlagentest[0] = jsonString;
Today @ 12:53am
Tags:
132 Views
no comments
 
{
  "filename": "test.pdf",
  "filedata": "JVBERi0xLjMKJcTl8uXrp/Og0MTGCjQgMCBvYmoKPDwgL0xlbmd0aCA1IDAgUiAvRmlsdGVyIC9GbGF0ZURlY29kZSA+PgpzdHJlYW0KeAHVnHuP5MZxwP/np6BlWdpVcjy+H5ETZU/3Psla5zaxHK0MBAcLgqETYMtAvn5+9ehmkxxy5nQCjGCBmWF1d3W9q/rB/Wv++/yv+Vg0U9n7V93l3TAW7dS2+Vh3RVWOff63P+d/yH/MH37+U5W/+Skv9e+nN4wti7q1Z/kxVEU9gGroOjBMdfbmbf7ojk5l2Vf53Zu877Wzf929zR/e3dU5Td/l3+RXv/rgmt9Xv9bPD/XzN/r50XUG/OP7q+u8pdtHCry/9udPbJg//ZM2Go5/vs6/ze9e5k/ulNElsXVVFUNTdWtqD2i8enCd3/1lD11f9M0ambI+nme9eKhkQ3ydXzknpXJ7f63MIw5aKv2EX37XyQjranAf3WinVnF0+puGTMSn44IMjyTUoM+yTvSZmz4XEsoWWlTa90QUzaOpi6mZakcnMuoQUbbAmy/wYh39MCrl03X+AGsQNpv86l+UtU+73376r82/RWYyseuluqu+Lcp+QN3L2Q8mlTmys8xUZdFXkZl9dNlFsumnOkXXduow/mUiaXEGHEYUeY64fhiKuovEIemqFmNcoHUNttEPP8B7EK19YnhmNGN+hTcCZ959r6rKtqgaHCFMncSAcdrM7Vqe5/7o41m94grXn4Q5u+wK9xDV49byBR1dLePs48Qs08Vso8vN4tPENq0eLrQhFTYA1nERNpAkihVCAerxJegVF0zSq9CyW9HK0pfR0vQ4SXuQoYXBVpCqUCCflek2vs1FjtjNUe7cvalVFka7uRWiKZzI+slHDwQeep2I35ppcxsVQ8vK55u35h+z83kjzRodH0PVOkYzxSg0EksJhtgh7f6BMjCSwGqgYXV/ctc5JT5mbqJslqWlPlcqaSICGsMARZMFBDyFMdUedxX/3cUXWqlBzPGKNA0DjcjTOuVmBKwlzYV69MKSAuQTUeeGsvZhomnw0hXgGatMhahwuIhitMlV5FmEyoAEI62/etjJomZYxDrGFc1KNJWs+kLB6YwVAHs3QyKFGZH+CQ6ZIVshsJVtUzPCW8/JCIqqsbmTilgEAkyOUViWj6Tsc0IN7hJrMSWJmxoGkLa87mN2VV2UKbKRQRVpiKVOxdEa2UcbPnJGZApmn45EKBJ5AEeQ2M2oKXJ9OkEr1YjyxpUVcoZUgeT3gFRkIcVB4VSqwcWELgImW8gBD7K1drryJNoVQgId+72JiZBeOSh7w4j0f2EKg/KfLRILOBpiilWm3/pAfMQb2XZgq3saEwVuQ8o+kpaKqnHykIFD+BFxOaaaYH9fR4eqzSb8rBWUbb8FlimAFnflEjlWz9DHc4aYFh2IHTIiAqarVWw9XQ+CjxmYzI5M2EyY2ZjZDg4NWQzODkzOTI2MTBkMmE3ZWU4ND4gXSA+PgpzdGFydHhyZWYKMjQzNTU5CiUlRU9GCg=="
}
Today @ 12:43am
Tags:
122 Views
no comments
 
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace SmartschoolPasswordEditor
{
Today @ 12:39am
Tags:
133 Views
no comments
 
private void buttonMessage_Click(object sender, EventArgs e)
        {

            byte[] pdfBytes = File.ReadAllBytes("C:/facturen/test.pdf");
            string pdfBase64 = Convert.ToBase64String(pdfBytes);
            
            Bijlage bijlage1 = new Bijlage("test.pdf", pdfBase64);
            String[] bijlagentest = new String[1];
            string jsonString = JsonConvert.SerializeObject(bijlage1,Formatting.Indented);
            bijlagentest[0] = jsonString;
Today @ 12:38am
Tags:
208 Views
no comments
 
procedure TForm2.FormClose(Sender: TObject; var CloseAction: TCloseAction);
begin
  Application.Terminate()
end;

procedure TForm2.FormPaint(Sender: TObject);
var a,b,c,i:integer;
begin
  a:=70;
  b:=60;
Today @ 12:24am
Tags:
128 Views
no comments
 
import React, {Component} from 'react'
import PropTypes from 'prop-types'
import {connect} from 'react-redux'
import { Field } from 'redux-form';

class SearchScope extends React.Component {
  constructor(props, context) {
    super(props, context)
    this.state = {
      defaultFilterLevel : ['CAMPAIGN', 'AD', 'ADGROUP'],
Yesterday @ 10:38pm
Tags:
60 Views
no comments
 
Buy Hacked PayPal, Bank Logins, Swift Bank wire transfer, WesternUnion transfer, cc topup, cvv, smtp, rdp, inbox mailer, email leads, dumps, warez, with proofs of transactions and accounts.Hello There, I'm Certified Canadian (DARKWEB) carder rand hacker with 11 years of experience. i am selling hacked e, hacked paypal accounts, bank logins, MoneyBookers, CC details/transfer, Hacked 
 iTunes Accounts, Dumps, warez and fullz infos. I have many customers and buyers all over the world and they trust me and i promised to never break this chain till DEATH . I'm offering many offers to earn online money through sources like westernunion transfers,bank transfers,moneybookers and paypal transfers through offshore database. All transactions are offshore and anonymous and has no trace backs or chargebackshere are the Rates List with Explanation :-

Western Union Transfer :-Transferring Western Union all over the world and it takes 1hour to 12hours maximum to get MTCN and info . You Will Get MTCN Code With Sender Info + Amount And Then You Can Pick Up Funds From Any Westernunion Store. (transferring all over the world)
Info needed for WU transfers :-1: Full name2: Cell number (Not Necessary)3: City4: Country5: Valid email for sending you MTCN info etcMTCN Will be ready for pick up in maximum 1hour after payment Please Dont ask me for any test transfer. I have spam logins with high balance for swift transfer

Western Union Transfer Rates :$1800 Transfer = $150 Charges$3000 Transfer = $250$4500 Transfer = $350$7000 Transfer = $500$9000 Transfer = $700

Bank Transfers :-This is my responsibility is to transfer the required amount into your account from an offshore server running this transfer with my license routine number from a well balance account, you have no trace backs or cashback, but it is your responsibilty to handle the bankers and get safe your side. i will use my personal method for making clear payment so no dispute no chargeback chances. (transferring all over the world)
Info needed for Bank transfers :-1: Bank name2: Bank address3: Zip code4: Account Holder5: Account number6: Account Type7: Routing number8: Swift number9: BIC and IBANBank transfer will take maximum 6hour to show money in your bank account.
by larrydarkweb    Yesterday @ 10:25pm
Tags:
65 Views
no comments
 
import java.util.Scanner;

public class task2{
	public static void main(String[] args){
		Scanner in = new Scanner(System.in);
		System.out.print("Enter the size of your matrix: ");
		int size = in.nextInt();
		int[][] matrix = new int[size+1][size+1];
		int[] vertex = new int[size+1];
		String[] path = new String[size+1];
Yesterday @ 10:17pm
Tags:
61 Views
no comments
 
<script language="javascript">
    document.onkeypress = function (event) {
        event = (event || window.event);
        if (event.keyCode == 123) {
            return false;
        }
    }
    document.onmousedown = function (event) {
        event = (event || window.event);
        if (event.keyCode == 123) {
Sunday @ 11:45pm
146 Views
no comments
 
<script type='text/javascript'>
shortcut = {
    all_shortcuts: {},
      add: function (e, t, n) {
        var r = {
          type: "keydown",
          propagate: !1,
          disable_in_input: !1,
          target: document,
          keycode: !1
146 Views
no comments
 
xml
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <ImageView
        android:id="@+id/imageView2"
        android:layout_width="100dp"
by ILHAM AKBAR   November 15, 2017 @ 2:39am
Tags:
598 Views
no comments
 
xml
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context="com.example.ilhamakbar.yukmasakbygd.TabActivityAdministrator03">

    <!-- TODO: Update blank fragment layout -->

    <TextView
by ILHAM AKBAR   November 15, 2017 @ 2:39am
Tags:
594 Views
no comments
 
package com.example.ilhamakbar.yukmasakbygd;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.database.Cursor;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.media.Image;
import android.net.Uri;
by ILHAM AKBAR   November 15, 2017 @ 2:38am
Tags:
589 Views
no comments
 
package com.example.ilhamakbar.yukmasakbygd;

import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.SQLException;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteException;
import android.database.sqlite.SQLiteOpenHelper;
import android.util.Log;
by ILHAM AKBAR   November 15, 2017 @ 2:37am
Tags:
586 Views
no comments
 
xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:orientation="vertical" >

	<include
		android:id="@+id/progressBarHolder"
		layout="@layout/listview_loading"/>

by wirtual   November 10, 2017 @ 9:23am
Tags:
980 Views
no comments
 
viewPager.addOnPageChangeListener(new ViewPager.OnPageChangeListener() {
            public void onPageScrollStateChanged(int state) {}
            public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) {}

            public void onPageSelected(int position) {
                onTabBecomesActive(position);
            }
        });
by wirtual   November 10, 2017 @ 8:32am
Tags:
1002 Views
no comments
 
<div class="form-group">
   <div class="control-label">
       First name
   </div>
   <input name="a"
          type="text"
          class="form-control"
          ng-model="person.firstName"
          ng-function-validate="is-adult;is-even;is-name-similar"
          ng-function-validate-monitors="person.firstName;person.lastName;person.age"
by Linh Nguyen   November 10, 2017 @ 8:27am
Tags:
970 Views
no comments
 
 private void onTabBecomesActive(int position){

        if (position != 0)
            showInterstitial(true);
    }


private void showInterstitial(boolean fromPager){

        if (getResources().getString(R.string.admob_interstitial_id).length() == 0) return;
by wirtual   November 10, 2017 @ 8:00am
Tags:
1005 Views
no comments
 
public static void updateAndroidSecurityProvider(Activity callingActivity) {
       if (android.os.Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP) {
           try {
               ProviderInstaller.installIfNeeded(callingActivity);
           } catch (GooglePlayServicesRepairableException e) {

               GooglePlayServicesUtil.getErrorDialog(e.getConnectionStatusCode(), callingActivity, 0);
           } catch (GooglePlayServicesNotAvailableException e) {
              e.printStackTrace();

by wirtual   November 10, 2017 @ 7:40am
Tags:
1000 Views
no comments
 
@Override
    public void onBackPressed() {
        Fragment activeFragment = null;
        if (adapter != null)
            activeFragment = adapter.getCurrentFragment();

        if (drawer != null && drawer.isDrawerOpen(GravityCompat.START)) {
            drawer.closeDrawer(GravityCompat.START);
        } else if (activeFragment instanceof BackPressFragment){
            boolean handled = ((BackPressFragment) activeFragment).handleBackPress();
by wirtual   November 10, 2017 @ 7:19am
Tags:
1007 Views
no comments
 
if (getIntent().getExtras() != null && getIntent().getExtras().containsKey(FRAGMENT_CLASS)) {
            try {
                Class<? extends Fragment> fragmentClass = (Class<? extends Fragment>) getIntent().getExtras().getSerializable(FRAGMENT_CLASS);
                if (fragmentClass != null) {
                    String[] extra = getIntent().getExtras().getStringArray(FRAGMENT_DATA);
                    HolderActivity.startActivity(this, fragmentClass, extra);
                    finish();

                }
            } catch (Exception e) {
by wirtual   November 10, 2017 @ 7:10am
Tags:
1003 Views
no comments
 
xml
<manifest xmlns:android="http://schemas.android.com/apk/res/android"

    package="testapp.testwallpapers">

    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
    <uses-permission android:name="android.permission.INTERNET"/>

    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
by wirtual   November 10, 2017 @ 2:25am
Tags:
1054 Views
no comments
 
package testapp.testwallpapers.ui;

import android.app.Activity;
import android.app.AlertDialog;
import android.app.WallpaperManager;
import android.content.DialogInterface;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.drawable.BitmapDrawable;
import android.os.Bundle;
by wirtual   November 10, 2017 @ 1:32am
Tags:
995 Views
no comments
 
package testapp.testwallpapers.ui;

import android.os.Parcel;
import android.os.Parcelable;

public class TumblrItem implements Parcelable {
	private String id;
    private String link;
    private String url;
    
by wirtual   November 10, 2017 @ 1:32am
Tags:
986 Views
no comments
 
package testapp.testwallpapers.ui;

import android.Manifest;
import android.app.Activity;
import android.content.Intent;
import android.os.AsyncTask;
import android.os.Bundle;
import android.os.Handler;
import android.support.v4.app.Fragment;
import android.support.v4.widget.SwipeRefreshLayout;
by wirtual   November 10, 2017 @ 1:31am
Tags:
970 Views
no comments
 
package testapp.testwallpapers;

import android.annotation.SuppressLint;
import android.app.Activity;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v7.app.AppCompatActivity;
by wirtual   November 10, 2017 @ 1:30am
Tags:
964 Views
no comments
 
@SuppressLint("NewApi")
	public static void revealView(View toBeRevealed, View frame){

		if (ViewCompat.isAttachedToWindow(toBeRevealed)) {
			if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.LOLLIPOP) {

				int cx = (frame.getLeft() + frame.getRight()) / 2;
				int cy = (frame.getTop() + frame.getBottom()) / 2;


by wirtual   November 10, 2017 @ 1:21am
Tags:
937 Views
no comments
 
public static void admobLoader(Context c, Resources resources, View AdmobView){
    	String adId = resources.getString(R.string.admob_banner_id);
		if (!adId.equals("") && !SettingsFragment.getIsPurchased(c)) {
			AdView adView = (AdView) AdmobView;
			adView.setVisibility(View.VISIBLE);
			

			Builder adRequestBuilder = new AdRequest.Builder();
			adRequestBuilder.addTestDevice(AdRequest.DEVICE_ID_EMULATOR);
			adView.loadAd(adRequestBuilder.build());
by wirtual   November 10, 2017 @ 1:12am
Tags:
918 Views
no comments
 
brought to you by:
West Wind Techologies