Skip to content

Instantly share code, notes, and snippets.

View dds861's full-sized avatar
🎯
Focusing

Daniyar Nurgaliyev dds861

🎯
Focusing
View GitHub Profile
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
[{
"name": "ashiqul islam",
"hobby": "Cricket"
}, {
"name": "nadim",
"hobby": "Gardening"
}, {
//Create directory
mkdir javatest
//Enter Directory
cd javatest
//Upload to current directory the file from the link
wget -P /javatest "http://www.yourwebsite.com/untitled2.jar" 
//start service
<?php
//Enter db link, login, password, and db name
$con=mysqli_connect("db_link","login","password","db_name");
// Check connection
if (mysqli_connect_errno())
{
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
import java.io.BufferedInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.net.URL;
import java.net.URLConnection;
public class SendMessage {
public static void sendToTelegram() {
String urlString = "https://api.telegram.org/bot%s/sendMessage?chat_id=%s&text=%s";
import java.io.BufferedInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.net.URL;
import java.net.URLConnection;
public class SendMessage {
public static void sendToTelegram() {
String urlString = "https://api.telegram.org/bot%s/sendMessage?chat_id=%s&text=%s";
private static final String SYNC_CLICKED = "automaticWidgetSyncButtonClick";
@Override
public void onReceive(Context context, Intent intent) {
// TODO Auto-generated method stub
super.onReceive(context, intent);
if (SYNC_CLICKED.equals(intent.getAction())) {
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
<CheckBoxPreference
android:defaultValue="true"
android:key="show_bass"
android:summaryOff="Hidden"
android:summaryOn="Shown"
android:title="Show Bass"
/>
</PreferenceScreen>
<activity
android:name=".Settings"
android:label="Settings"
android:parentActivityName=".MainActivity">
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value=".MainActivity" />
</activity>
@Override
public boolean onCreateOptionsMenu(Menu menu) {
MenuInflater inflater = getMenuInflater();
inflater.inflate(R.menu.menuSettings, menu);
return true;
}
@Override
public boolean onOptionsItemSelected(MenuItem item) {
int id = item.getItemId();