This application uses Microsoft.Office.Interop.Outlook
API to extract outlook contact list. The contact can be further filtered by firsName
or lastName
̨̨
Discover gists
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SETUP: | |
wget -O drive https://drive.google.com/uc?id=0B3X9GlR6EmbnMHBMVWtKaEZXdDg | |
mv drive /usr/sbin/drive | |
chmod 755 /usr/sbin/drive | |
Now, simply run drive to start the authentication process. You'll get a link like this to paste and browse to in to your web browser: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const firebase = require('firebase-admin'); | |
var serviceAccountSource = require("./source.json"); // source DB key | |
var serviceAccountDestination = require("./destination.json"); // destiny DB key | |
const sourceAdmin = firebase.initializeApp({ | |
credential: firebase.credential.cert(serviceAccountSource) | |
}); | |
const destinyAdmin = firebase.initializeApp({ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$pic = file_create_url('public://images/1417218384.jpg'); | |
$row['picture'] = [ | |
'data' => [ | |
'#type' => 'html_tag', | |
'#tag' => 'img', | |
'#attributes' => ['src' => $pic, 'width' => '70'], | |
], | |
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const cors = require('cors')({origin: true}); | |
exports.remita_rrrstatus = functions.https.onRequest( | |
async (req, res) => { | |
res.set('Access-Control-Allow-Origin', "*") | |
res.set('Access-Control-Allow-Methods', 'GET, POST') | |
cors(req, res, async () => { | |
try { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Fragment, useState, useEffect } from 'react'; | |
import axios from 'axios'; | |
function App() { | |
const [data, setData] = useState({ hits: [] }); | |
const [query, setQuery] = useState('redux'); | |
const [url, setUrl] = useState( | |
'https://hn.algolia.com/api/v1/search?query=redux', | |
); | |
const [isLoading, setIsLoading] = useState(false); | |
useEffect(() => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function aha_classes() { | |
$query = \Drupal::database()->select('_class', 'tb'); | |
$query->fields('tb', ['serial','class_name']); | |
$results = $query->execute()->fetchAll(); | |
$content = []; | |
$rows = []; | |
$headers = [ | |
$this->t('ID'), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
co |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const webdriver = require('selenium-webdriver') | |
const driver = new webdriver.Builder() | |
// The "9515" is the port opened by chrome driver. | |
.usingServer('http://localhost:9515') | |
.withCapabilities({ | |
chromeOptions: { | |
// Here is the path to your Electron binary. | |
binary: 'C:\\Program Files\\Symphony\\Symphony\\Symphony.exe' | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<title>Push Demo</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<script src="index.js"></script> | |
</head> | |
<body> |
NewerOlder