Skip to content

Instantly share code, notes, and snippets.

Ricardo Alfredo Salgado Bárcenas vl4dt

  • Freelance
  • Tegucigalpa, Honduras
View GitHub Profile
@vl4dt
vl4dt / azuread_graphapi_call.py
Created Nov 26, 2015
Azure AD Graph API call
View azuread_graphapi_call.py
Azure AD Graph API - INIT
request_id = str(uuid.uuid4())
# url = 'https://graph.windows.net/{0}/{resource-path}?[query-parameters]'
url = 'https://graph.microsoft.com/me?v1.0'
tenant = 'lnodev.onmicrosoft.com'
headers = {
'User-Agent': 'python_tutorial/1.0',
'Accept': 'application/json',
@vl4dt
vl4dt / app.js
Created Jun 8, 2015
Browser Sync: sample config file
View app.js
/**
* Require Browsersync
*/
var browserSync = require('browser-sync');
/**
* Run Browsersync with server config
*/
browserSync({
browser: [
View file_mime_types.md

Common MIME types:

Suffixes applicable Media type and subtype(s)

.au audio/basic

.avi video/msvideo, video/avi, video/x-msvideo

.bmp image/bmp

.bz2 application/x-bzip2

View designer.html
<link rel="import" href="../topeka-elements/theme.html">
<link rel="import" href="../topeka-elements/topeka-resources.html">
<link rel="import" href="../topeka-elements/topeka-app.html">
<link rel="import" href="../topeka-elements/topeka-datasource.html">
<polymer-element name="my-element">
<template>
<style>
:host {
View designer.html
<link rel="import" href="../topeka-elements/theme.html">
<link rel="import" href="../topeka-elements/topeka-resources.html">
<link rel="import" href="../topeka-elements/topeka-app.html">
<link rel="import" href="../topeka-elements/topeka-datasource.html">
<polymer-element name="my-element">
<template>
<style>
:host {
@vl4dt
vl4dt / 0_reuse_code.js
Last active Aug 29, 2015
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
You can’t perform that action at this time.