Skip to content

Instantly share code, notes, and snippets.

View HBehrens's full-sized avatar

Heiko Behrens HBehrens

View GitHub Profile
@HBehrens
HBehrens / FileMD5Hash.podspec
Created July 19, 2013 15:21
FileMD5Hash.podspec
Pod::Spec.new do |s|
s.name = 'FileMD5Hash'
s.version = '0.0.1'
s.license = 'Apache'
s.summary = 'Library for computing MD5 hashes of files with small memory usage.'
s.homepage = 'http://www.joel.lopes-da-silva.com/2010/09/07/compute-md5-or-sha-hash-of-large-file-efficiently-on-ios-and-mac-os-x/'
s.author = { 'Joel Lopes Da Silva' => 'joel@lopes-da-silva.com' }
s.source = { :git => 'https://github.com/HBehrens/FileMD5Hash.git', :commit => '23167b4413ccc1b554f3a88182f077042eba76c0' }
s.prefix_header_file = 'Common/FileMD5Hash_Prefix.pch'
angular.module 'App', []
TicTacToeCntl = ($scope) ->
init = ->
@reset = =>
@board = (['','',''] for [1..3])
@nextMove = 'X'
@winner = ''
@grade()
tr {
height: 42px;
}
td {
width: 40px;
font-size: 32px;
border: 1px solid black;
text-align: center;
vertical-align: middle;
@HBehrens
HBehrens / TicToc.js
Last active October 25, 2016 18:06
// book keeping so that we can easily animate the two hands for the watchface
// .scale/.angle are updated by tween/event handler (see below)
var renderState = {
minute: {style: 'white', scale: 0.80, angle: 0},
hour: {style: 'red', scale: 0.51, angle: 0}
};
// helper function for the draw function (see below)
// extracted as a standalone function to satisfy common believe in efficient JS code
// TODO: verify that this has actually any effect on byte code level
@HBehrens
HBehrens / tslint.json
Created August 30, 2017 16:46
tslint from Intrinsic Gravelty's editor frontend
{
"extends": ["tslint-react"],
"rules": {
"align": [
true,
"parameters",
"arguments",
"statements"
],
"ban": false,
@HBehrens
HBehrens / env_theia_vs_code.diff
Created March 11, 2021 08:45
Gitpod: Comparison of environment variables when using Theia vs. VSCode as IDE
--- 2021-03-11 08:33:26 +0000
+++ 2021-03-11 08:33:26 +0000
@@ -1,20 +1,21 @@
APACHE_DOCROOT_IN_REPO=public
BROWSER=gp-preview
CARGO_HOME=/workspace/.cargo
+COLORTERM=truecolor
CUSTOM_XVFB_WxHxD=220x240x16
DISPLAY=:0
DOCKER_CONTEXT_SOURCE=.gitpod.docker
<textarea id="input" placeholder="Paste text with issue ids with the pattern MFLT-1234" rows="10"
style="display: block; width:100%"></textarea>
<a id="link" href="">Click me</a>
<script>
const textArea = document.getElementById("input");
const linkElement = document.getElementById("link");
function updateLink() {
const issueMatches = [...textArea.value.matchAll((/\bMFLT-\d+/g))];
@HBehrens
HBehrens / index.html
Last active May 11, 2021 23:06
Search for Memfault YouTrack Issues in text and create Search Link
<textarea id="input" placeholder="Paste text with issue ids with the pattern MFLT-1234" rows="10"
style="display: block; width:100%"></textarea>
<a id="link" href="">Click me</a>
<script>
const textArea = document.getElementById("input");
const linkElement = document.getElementById("link");
function updateLink() {
const issueMatches = [...textArea.value.matchAll((/\bMFLT-\d+/g))];
@HBehrens
HBehrens / CocoaAsyncSocket.podspec
Last active October 10, 2023 06:17
CocoaHTTPServer.podspec
Pod::Spec.new do |s|
s.name = 'CocoaAsyncSocket'
s.version = '7.3.1'
s.license = 'public domain'
s.summary = 'Asynchronous socket networking library for Mac and iOS'
s.homepage = 'https://github.com/robbiehanson/CocoaAsyncSocket'
s.authors = 'Dustin Voss', { 'Robbie Hanson' => 'robbiehanson@deusty.com' }
s.source = { :git => 'https://github.com/robbiehanson/CocoaAsyncSocket.git', :commit => '5cf7bac4d0bc18d257e989ea922fd2c4ca9255c4' }