Skip to content

Instantly share code, notes, and snippets.

View ivpusic's full-sized avatar
👨‍💻

Ivan Pusic ivpusic

👨‍💻
View GitHub Profile
import ctypes
class Point(ctypes.Structure):
_fields_ = (
("x", ctypes.c_int),
("y", ctypes.c_int))
p1 = Point(23, 4)
print 'Original point is', (p1.x, p1.y)
// Facebook SDK
angular.module('facebook', [])
.directive('fb', ['$FB', function($FB) {
return {
restrict: "E",
replace: true,
template: "<div id='fb-root'></div>",
compile: function(tElem, tAttrs) {
return {
post: function(scope, iElem, iAttrs, controller) {