Skip to content

Instantly share code, notes, and snippets.

View Maher4Ever's full-sized avatar
📡
Ultrasound Money

Maher Sallam Maher4Ever

📡
Ultrasound Money
  • NGRAVE
  • Netherlands
View GitHub Profile
@Maher4Ever
Maher4Ever / main.35d639b7.js.map
Last active January 7, 2018 10:39
Source map of a create-react-app test application
{"version":3,"sources":["../static/js/main.35d639b7.js","../webpack/bootstrap 45482c2827416a98e1da","../node_modules/object-assign/index.js","../node_modules/react/index.js","../node_modules/fbjs/lib/emptyFunction.js","../node_modules/promise/lib/core.js","../node_modules/fbjs/lib/emptyObject.js","../node_modules/react-scripts/config/polyfills.js","../node_modules/promise/lib/rejection-tracking.js","../node_modules/asap/browser-raw.js","../node_modules/webpack/buildin/global.js","../node_modules/promise/lib/es6-extensions.js","../node_modules/whatwg-fetch/fetch.js","index.js","../node_modules/react/cjs/react.production.min.js","../node_modules/react-dom/index.js","../node_modules/react-dom/cjs/react-dom.production.min.js","../node_modules/fbjs/lib/ExecutionEnvironment.js","../node_modules/fbjs/lib/EventListener.js","../node_modules/fbjs/lib/getActiveElement.js","../node_modules/fbjs/lib/shallowEqual.js","../node_modules/fbjs/lib/containsNode.js","../node_modules/fbjs/lib/isTextNode.js","../node_modules/fbjs/l
import enum
import wrapt
import numba
from numba.typing.typeof import typeof_impl
from numba.lowering import Lower
from numba import ir
# Define a Numba type for enums
class Enum(numba.types.Dummy):
@Maher4Ever
Maher4Ever / gist:3116933
Created July 15, 2012 13:28
WDM: API design choice
# The repo: https://github.com/Maher4Ever/wdm
# Initial setup
require 'wdm'
monitor = WDM::Monitor.new
# Simple usage:
monitor.watch('C:\Users\Maher\Desktop\test') do |change|
puts "#{change.type.to_s.upcase}: '#{change.file}'" # => Ex.: MODIFIED: 'C:\Users\Maher\Desktop\test\file.txt'
end
@Maher4Ever
Maher4Ever / gist:1865875
Created February 19, 2012 21:25
Make the cursor on Windows go crazy!
require 'win32/api'
class Cursor
include Win32
DLL = 'user32'
def initialize
@set_cursor_pos = API.new('SetCursorPos', 'II', 'B', DLL)
@Maher4Ever
Maher4Ever / gist:1088092
Created July 17, 2011 21:35
Copy files only without dir structure to another dir in shell (bash too)
find ##Source## -type f -print0 | xargs -0 -I {} cp {} ##Destination##
@Maher4Ever
Maher4Ever / CacheProvider.js
Created June 12, 2011 18:45
Adam Roderick's version of CacheProvider with better packaging! http://jsperf.com/maher-cacheprovider
(function (window, undefined) {
/**
* {Boolean} useLocalStorageIfAvailable - optional, defaults to true. The CacheProvider object will
* use the HTML5 localStorage object, if available
*/
var CacheProvider = (function() {
var _hasLocalStorage,
_useLocalStorage,