Skip to content

Instantly share code, notes, and snippets.

View ruyut's full-sized avatar
🤪

Ruyut ruyut

🤪
View GitHub Profile
//801-1
#include "stdafx.h"
#include<stdio.h>
#include<stdlib.h>
int main()
{
int i, j;
for (i = 1; i <= 5; i++) {//從1開始,一直到5 共會出現1,2,3,4,5
for (j = 0; j<i; j++)//從0開始,一直到i的前一個
printf("*");//列印出*號
package chemp.notes.linenotify;
import java.io.*;
import java.net.*;
import java.util.regex.Pattern;
public class LineNotify {
private static final String strEndpoint = "https://notify-api.line.me/api/notify";
public boolean callEvent(String token, String message) {
boolean result = false;
@ruyut
ruyut / MainActivity.Kt
Created September 6, 2021 16:19
Kotlin 取得相機權限
package app.ruyut.kotlinexample
import android.Manifest
import android.app.AlertDialog
import android.content.Intent
import android.content.pm.PackageManager
import android.net.Uri
import android.os.Bundle
import android.provider.Settings
import android.widget.Toast