Skip to content

Instantly share code, notes, and snippets.

View askielboe's full-sized avatar

Andreas Skielboe askielboe

View GitHub Profile
Verifying my Blockstack ID is secured with the address 16tRavhShXqas5ZQbt8JtngeFSx9xeYBMd https://explorer.blockstack.org/address/16tRavhShXqas5ZQbt8JtngeFSx9xeYBMd
@askielboe
askielboe / yarn-git-cache-bug.sh
Last active October 19, 2017 09:10
Script to reproduce a bug in yarn (#4734) - please replace askielboe/yarn-bug.git with your own github repo
#!/bin/bash
echo "\n==================================================="
echo "=== Clearing yarn cache and directories for clean state\n"
yarn cache clean yarn-bug
rm -rf yarn-bug
rm -rf yarn-bug-reproduce
echo "\n==================================================="
echo "=== Creating and pushing first commit to GitHub\n"
mkdir yarn-bug
@askielboe
askielboe / dpkeyboard.mm
Created December 9, 2016 11:19 — forked from lamprosg/dpkeyboard.mm
(iOS) - DatePicker as keyboard
- (void) initializeTextFieldInputView {
UIDatePicker *datePicker = [[UIDatePicker alloc] initWithFrame:CGRectZero];
datePicker.datePickerMode = UIDatePickerModeDate;
datePicker.minuteInterval = 5;
datePicker.backgroundColor = [UIColor whiteColor];
[datePicker addTarget:self action:@selector(dateUpdated:) forControlEvents:UIControlEventValueChanged];
self.textField.inputView = datePicker;
//Add done button

Keybase proof

I hereby claim:

  • I am askielboe on github.
  • I am askielboe (https://keybase.io/askielboe) on keybase.
  • I have a public key ASCHXrdQP138zyKG2RjEFdz2wtNbaVH3Y1gwwQIOvU6n2Qo

To claim this, I am signing this object:

@askielboe
askielboe / ds9_no_codesign.diff
Last active August 29, 2015 14:08
Do not attempt code signing when compiling DS9 on Darwin
--- ds9/Makefile.unix
+++ ds9/Makefile.unix
@@ -105,7 +105,6 @@
cp ds9Base ds9
cp ds9 ../bin/.
cp ds9.zip ../bin/.
- cd ../bin; $(CODESIGN) -s "SAOImage DS9" ds9
debug : ds9Base ds9.zip
$(RM) $@
  1. Item 1
  2. A corollary to the above item.
  3. Yet another point to consider.
  4. Item 2
  • A corollary that does not need to be ordered.
    • This is indented four spaces, because it's two spaces further than the item above.
    • You might want to consider making a new list.
  1. Item 3
Process: steam [615]
Path: /Applications/Steam.app/Contents/MacOS/osx32/steam
Identifier: com.valvesoftware.steam
Version: 1.2
Code Type: X86 (Native)
Parent Process: bash [609]
User ID: 501
Date/Time: 2013-04-26 17:31:57.562 +0200
OS Version: Mac OS X 10.8.3 (12D78)
@askielboe
askielboe / chocolat_sample
Created February 15, 2012 11:47
Chocolat CPU runaway Activity Monitor Sample
Sampling process 62431 for 3 seconds with 1 millisecond of run time between samples
Sampling completed, processing symbols...
Analysis of sampling Chocolat (pid 62431) every 1 millisecond
Process: Chocolat [62431]
Path: /Applications/Chocolat.app/Contents/MacOS/Chocolat
Load Address: 0x100000000
Identifier: com.chocolatapp.Chocolat
Version: ??? (0.4)
Code Type: X86-64 (Native)
Parent Process: launchd [259]
#! /usr/bin/env python
# Gaudi Libraries
import Gaudi
from Gaudi.Configuration import *
import GaudiPython
# Private functions
from func_general import *
import cookielib
import urllib
import urllib2
cookies = cookielib.LWPCookieJar()
opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cookies))
urllib2.install_opener(opener)
url = 'http://peppeshus.dk/forum/ucp.php?mode=login'
user_agent = 'Mozilla/4.0 (compatible; MSIE 5.5; Windows NT)'