Skip to content

Instantly share code, notes, and snippets.

View felipebastosweb's full-sized avatar
🏠
Working from home

felipe bastos felipebastosweb

🏠
Working from home
View GitHub Profile
@tzmartin
tzmartin / embedded-file-viewer.md
Last active September 7, 2025 11:31
Embedded File Viewer: Google Drive, OneDrive

Office Web Apps Viewer

('.ppt' '.pptx' '.doc', '.docx', '.xls', '.xlsx')

http://view.officeapps.live.com/op/view.aspx?src=[OFFICE_FILE_URL]

<iframe src='https://view.officeapps.live.com/op/embed.aspx?src=[OFFICE_FILE_URL]' width='px' height='px' frameborder='0'>
</iframe>

OneDrive Embed Links

@ExpandOcean
ExpandOcean / kivy_cv.py
Created January 7, 2015 06:48
kivy and opencv work together demo
# coding:utf-8
from kivy.app import App
from kivy.uix.image import Image
from kivy.clock import Clock
from kivy.graphics.texture import Texture
import cv2
class KivyCamera(Image):
def __init__(self, capture, fps, **kwargs):
@skyrocknroll
skyrocknroll / facedetect.py
Created September 20, 2013 12:47
face detection simplecv
from SimpleCV import *
__author__ = 'yuva'
def main():
img = Image("group2.jpg")
print img.listHaarFeatures()
faces = img.findHaarFeatures("haarcascade_frontalface_alt.xml")
# faces = img.findHaarFeatures("face2.xml")
# faces = img.findHaarFeatures("haarcascade_frontalface_default.xml")
scalesize = 1
@vitorbritto
vitorbritto / devlist-bookmarks.md
Last active October 10, 2023 13:49
A BADASS list for faster Web Development! Recently, I decided to organize my bookmarks. So, like a good fellow, I am sharing with you. I hope you enjoy!

Dev List Bookmarks

Attention: the list was moved to https://github.com/vitorbritto/dev-list

This page is not maintained anymore, please update your bookmarks.


Recently, I decided to organize my bookmarks. So, like a good fellow, I am sharing with you. I hope you enjoy!

@abadongutierrez
abadongutierrez / DataSourceUsingMySQL.groovy
Last active November 10, 2017 19:28
Grails: DataSource.groovy for MySQL
dataSource {
pooled = true
driverClassName = "com.mysql.jdbc.Driver"
username = "root"
password = "****"
dialect = org.hibernate.dialect.MySQL5InnoDBDialect
properties {
maxActive = 50
maxIdle = 25
minIdle = 5
@max-mapper
max-mapper / Websocket.java
Created September 7, 2012 21:42
android websocket wss:// plugin (not done)
package com.phonegap.plugins.websocket;
import android.os.Bundle;
import android.util.Log;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import org.apache.cordova.api.Plugin;
import org.apache.cordova.api.PluginResult;
import java.net.URI;
@enjalot
enjalot / cors_server.py
Created June 10, 2012 06:19
Allow CORS with python simple http server
import SimpleHTTPServer
class CORSHTTPRequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler):
def send_head(self):
"""Common code for GET and HEAD commands.
This sends the response code and MIME headers.
Return value is either a file object (which has to be copied
to the outputfile by the caller unless the command was HEAD,
and must be closed by the caller under all circumstances), or
@xamox
xamox / balltrack.py
Created April 21, 2012 18:05
Object Tracking with SimpleCV (White Ball)
'''
This is how to track a white ball example using SimpleCV
The parameters may need to be adjusted to match the RGB color
of your object.
The demo video can be found at:
http://www.youtube.com/watch?v=jihxqg3kr-g
'''
print __doc__