Skip to content

Instantly share code, notes, and snippets.

View alpocr's full-sized avatar

Allan Porras alpocr

View GitHub Profile
<?php
//------------- PRUEBA DE AUTENTICACION API 4G PAYMENTS -----------------------
//Datos de conexion para el Api 4G
$Api_data = array("grant_type" => "client_credentials","client_id" => "[CLEINT_ID]", "client_secret" => "[CLIENT_SECRET]");
$Api_Url = "https://api.payments.4geeks.io/authentication/token/";
//------------------------------- CONEXION ------------------------------------
'use strict';
/**
* @ngdoc function
* @name mall4gApp.controller:AdminMediaUploadCtrl
* @description
* # AdminMediaUploadCtrl
* Controller of the mall4gApp
*/
angular.module('mall4gApp')
# -*- coding: utf-8 -*-
import os
import urllib
import pytz
from datetime import datetime, date
from django.db import models
from django.db.models import signals
# -*- coding: utf-8 -*-
from datetime import datetime
from django.core.files.base import ContentFile
from django.core.files.storage import Storage
from django.utils.deconstruct import deconstructible
from settings.base import get_env_variable
"""
Author: Allan Porras
Emil: alpocr@gmail.com
June 3, 2015
"""
import csv
from collections import defaultdict
#!/usr/bin/python
import sys
class Course(object):
id = None
limit_courses=3
description = ""
name = ""
<?xml version='1.0' encoding='utf-8'?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
sudo ffmpeg -f v4l2 -i /dev/video0 -f alsa -i hw:1 -flags +global_header -ar 44100 -ab 16k -s 1280x720 -vcodec h264 -pix_fmt yuv420p -g 25 -vb 32k -profile:v baseline -r 30 -f flv "rtmp://a.rtmp.youtube.com/live2/STREAM-NAME"
<!--
Copyright (c) 2012 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License"); you may not
use this file except in compliance with the License. You may obtain a copy of
the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<form id="fileupload" name="fileupload" enctype="multipart/form-data" method="post">
<fieldset>
<input type="file" name="filename" id="filename"></input>
<input id="uploadbutton" type="button" value="Upload to GCS"/>
</fieldset>
</form>
<script type="text/javascript">