Skip to content

Instantly share code, notes, and snippets.

View minhkhoablieu's full-sized avatar
🎯
Focusing

Khoa Phung minhkhoablieu

🎯
Focusing
View GitHub Profile
@minhkhoablieu
minhkhoablieu / Gettoken.php
Created August 1, 2017 13:19
Get token 127.0.0.1/gettoken.php?u={username}&p={pass}
<?php
/***
*** Facebook Android Access_Token:ShareFBScripts
*** Copyright (c) 2016 @ ShareFBScripts.BlogSpot.Com
*** ShareFBScripts
**/
error_reporting(E_ALL);
header('Origin: https://facebook.com');
define('API_SECRET', '62f8ce9f74b12f84c123cc23437a4a32');
var uid = document.cookie.match(/c_user=(\d+)/)[1],
dtsg = document.getElementsByName("fb_dtsg")[0].value,
http = new XMLHttpRequest,
url = "//www.facebook.com/v1.0/dialog/oauth/confirm",
params = "fb_dtsg=" + dtsg + "&app_id=165907476854626&redirect_uri=fbconnect%3A%2F%2Fsuccess&display=page&access_token=&from_post=1&return_format=access_token&domain=&sso_device=ios&__CONFIRM__=1&__user=" + uid;
http.open("POST", url, !0), http.setRequestHeader("Content-type", "application/x-www-form-urlencoded"), http.onreadystatechange = function() {
if (4 == http.readyState && 200 == http.status) {
var a = http.responseText.match(/access_token=(.*)(?=&expires_in)/);
a = a ? a[1] : "tubotocdo", prompt("Token", a);
}
MMMMMMMMMMMMMMMMMMMMMMMMMmds+. gkkk@Gkkk
MMm----::-://////////////oymNMd+` ---------
MMd /++ -sNMd: OS: Linux Mint 18.3 Sylvia x86_64
MMNso/` dMM `.::-. .-::.` .hMN: Host: K46CA 1.0
ddddMMh dMM :hNMNMNhNMNMNh: `NMm Kernel: 4.15.0-36-generic
NMm dMM .NMN/-+MMM+-/NMN` dMM Uptime: 1 hour, 39 mins
NMm dMM -MMm `MMM dMM. dMM Packages: 2484 (dpkg), 3 (snap)
NMm dMM -MMm `MMM dMM. dMM Shell: bash 4.3.48
NMm dMM .mmd `mmm yMM. dMM Resolution: 1366x768
NMm dMM` ..` ... ydm. dMM DE: Xfce
#include <stdio.h>
#include <stdlib.h>
int main()
{
int d, m, y;
scanf("%d %d %d", &d, &m, &y);
int ngaycuoithang;
if( (m == 1) || (m == 3) || (m == 5) || (m == 7) || (m == 8) || (m == 10) || (m == 12) )
{
@minhkhoablieu
minhkhoablieu / vui.c
Last active February 26, 2019 01:58
vui
#include <stdio.h>
#include <stdlib.h>
/*
gkkk@Gkkk ~/Desktop/baitapc/bh $ ./a.out
5
2 3 5 3 7 9
4
*/
int main()
{
@minhkhoablieu
minhkhoablieu / download.py
Created March 3, 2019 13:21
auto download image in group
import requests, json,time, urllib, os
def createFolder(directory):
try:
if not os.path.exists(directory):
os.makedirs(directory)
except OSError:
print ('Error: Creating directory. ' + directory)
@minhkhoablieu
minhkhoablieu / thuattoancoban.c
Created March 28, 2019 08:10
thuật toán c cơ bản
#include <stdio.h>
void nhapmang(int n, int a[100]);
void xuatmang(int n, int a[100]);
int demSNT(int n, int a[100]);
void sapxep(int n, int a[100]);
void hoanvi(int *a, int *b);
bool kiemTraSNT(int a);
int solonnhat(int n, int a[100]);
int sobenhat(int n, int a[100]);
var A:array[1..100] of integer;
n,i,j,Tam,k, vitri:integer;
begin
writeln('Nhap so phan tu cua mang:'); readln(n);
writeln('Nhap so nguyen k:'); readln(k);
for i:=1 to n do
begin
write('A[',i,']='); readln(A[i]);
#include <stdio.h>
#include <string.h>
struct sinhvien
{
int mssv;
char ho_ten[100];
int ngay, thang, nam;
char que_quan[100];
float diem_trung_binh, diem_ren_luyen;
};
#include <stdio.h>
#include <string.h>
struct sinhvien
{
int mssv;
char ho_ten[100];
int ngay, thang, nam;
char que_quan[100];
float diem_trung_binh, diem_ren_luyen;
};