Skip to content

Instantly share code, notes, and snippets.

View codingforpleasure's full-sized avatar

codingforpleasure codingforpleasure

View GitHub Profile
import numpy as np
print('Example')
for elem in range(5):
print('works?')
@codingforpleasure
codingforpleasure / .block
Created February 18, 2019 12:09
Cricket grounds
license: mit
height: 610
@codingforpleasure
codingforpleasure / .block
Created February 18, 2019 11:54
Newton's cradle
license: mit
@codingforpleasure
codingforpleasure / .block
Last active February 10, 2019 22:44
Animated Bar Chart
license: mit
@codingforpleasure
codingforpleasure / .block
Last active February 10, 2019 22:27
Barchart (provincias, población, censo 2010, Argentina)
license: mit
# here is my python code:
gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
gray = cv2.bitwise_not(gray)
top = int(0.25 * gray.shape[0])
bottom = int(0.25 * gray.shape[0])
left = int(0.25 * gray.shape[1])
right = int(0.25 * gray.shape[1])
gray = cv2.copyMakeBorder(gray, top, bottom, left, right, cv2.BORDER_CONSTANT, value=255)
@codingforpleasure
codingforpleasure / .block
Last active December 17, 2017 11:56
fresh block
license: mit
license: mit
@codingforpleasure
codingforpleasure / .block
Last active December 17, 2017 08:25
basic_1
license: mit
@codingforpleasure
codingforpleasure / JavaHighlighting
Created May 11, 2012 13:58
Java Syntax Highlighting
/*
Dual licensed under the MIT and GPL licenses.
*/
(function(){function b(){var a=SyntaxHighlighter.regexLib;this.regexList=[{regex:a.multiLineDoubleQuotedString,css:"string"},{regex:a.multiLineSingleQuotedString,css:"string"},{regex:a.singleLineCComments,css:"comments"},{regex:a.multiLineCComments,css:"comments"},{regex:/\s*#.*/gm,css:"preprocessor"},{regex:RegExp(this.getKeywords("break case catch continue default delete do else false for function if in instanceof new null return super switch this throw true try typeof var while with"),"gm"),css:"keyword"}];
this.forHtmlScript(a.scriptScriptTags)}"undefined"!=typeof require&&(SyntaxHighlighter=require("shCore").SyntaxHighlighter);b.prototype=new SyntaxHighlighter.Highlighter;b.aliases=["js","jscript","javascript"];SyntaxHighlighter.brushes.JScript=b;"undefined"!=typeof exports&&(exports.Brush=b)})();