Skip to content

Instantly share code, notes, and snippets.

View ducan-ne's full-sized avatar
🏠
Working from home

Đức An ducan-ne

🏠
Working from home
View GitHub Profile
@ducan-ne
ducan-ne / cv.js
Last active April 3, 2017 04:43
'use strict'
const { _cv, _check } = require('./ancms/core');
const profile = {
name: ['An-Duc Loc', 'anCMS'],
email: ['me', 'clgt.io'].join('@'),
phone: /\+84 974\,240\,252/,
link: ['fb'].concat('://', 'profile', '/javhdfullkhongche2160pixel').join('')
};
<?php
/*
* Copyright (c) @ ShareFBScripts.BlogSpot.Com
* Author: AnCMS
* Date: 2/8/2016
*/
if(array_key_exists('t',$_GET)){
header("Content-type: audio/mpeg");
header("Content-Transfer-Encoding: binary");
header('Pragma: no-cache');
const _TOKEN = '<MY TOKEN>';
$response = _GRAPH('/364997627165697/feed/',array('limit' => 30, 'fields' => 'id'));
array_walk($response['data'], function(&$data) use($GLOBALS){
extract($data);
if((time() - strtotime($updated_time)) > 5 * 60){ // 5 = 5 minute
return $data = [
'liked' => _GRAPH("/{$id}/likes/",array('method' => 'POST'))
// _GRAPH("/{$data->id}/sharedposts/",array('method' => 'POST', 'privacy' => json_encode(["value" => "SELF"])))
];
}else{
@ducan-ne
ducan-ne / HelloWorld.java
Created December 13, 2016 15:01 — forked from lolzballs/HelloWorld.java
Hello World Enterprise Edition
import java.io.FileDescriptor;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.io.PrintStream;
public class HelloWorld{
private static HelloWorld instance;
public static void main(String[] args){
instantiateHelloWorldMainClassAndRun();
for(var key in window){
delete window[key];
}