Skip to content

Instantly share code, notes, and snippets.

View vl4dt's full-sized avatar

Ricardo Alfredo Salgado Bárcenas vl4dt

  • Freelance
  • Tegucigalpa, Honduras
View GitHub Profile
@vl4dt
vl4dt / azuread_graphapi_call.py
Created November 26, 2015 19:03
Azure AD Graph API call
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 June 8, 2015 17:21
Browser Sync: sample config file
/**
* Require Browsersync
*/
var browserSync = require('browser-sync');
/**
* Run Browsersync with server config
*/
browserSync({
browser: [

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

@vl4dt
vl4dt / designer.html
Created January 10, 2015 04:30
designer
<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 / designer.html
Last active August 29, 2015 14:11
designer
<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 August 29, 2015 14:10
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console