Skip to content

Instantly share code, notes, and snippets.

Pym Pym

Block or report user

Report or block Pym

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View why.swift
func gestureRecognizer(gestureRecognizer: UIGestureRecognizer, shouldBeRequiredToFailByGestureRecognizer otherGestureRecognizer: UIGestureRecognizer) -> Bool {
if let swipeRec = gestureRecognizer as? UISwipeGestureRecognizer {
if let panRec = otherGestureRecognizer as? UIPanGestureRecognizer {
return true
}
} else if let panRec = gestureRecognizer as? UIPanGestureRecognizer {
if let tapRec = otherGestureRecognizer as? UITapGestureRecognizer {
return true
}
}
View keybase.md

Keybase proof

I hereby claim:

  • I am Pym on github.
  • I am pym (https://keybase.io/pym) on keybase.
  • I have a public key whose fingerprint is F8F3 4DCA 6CD6 27B3 3070 536C 2730 CDC0 2186 7965

To claim this, I am signing this object:

@Pym
Pym / gist:9467759
Last active Jan 12, 2019
Popup Bookmarklet
View gist:9467759
javascript:window.open(window.location.href.replace(/^(.+youtube.com\/)(?:watch\?v=)(\w+)(?:&.+)?/gi, '$1embed/$2'), "_blank", "resizable=yes, scrollbars=yes, titlebar=yes, width=560, height=315, top=10, left=10");
View datetime_sadness.php
<?php
$date = new \DateTime('now');
var_dump($date);
// object(DateTime)[594]
// public 'date' => string '2013-12-09 12:04:17' (length=19)
// public 'timezone_type' => int 3
// public 'timezone' => string 'Europe/Paris' (length=12)
View Preferences.sublime-settings
{
"auto_match_enabled": false,
"bold_folder_labels": true,
"caret_style": "phase",
"color_scheme": "Packages/Theme - Spacegray/base16-ocean.dark.tmTheme",
"create_window_at_startup": false,
"default_line_ending": "unix",
"draw_minimap_border": false,
"draw_white_space": "all",
"ensure_newline_at_eof_on_save": true,
View fizzbuzz.rb
puts (1..100).map { |i| i % 3 * i % 5 == 0 ? (i % 3 == 0 ? 'Fizz' : '') + (i % 5 == 0 ? 'Buzz' : '') : i.to_s }
View craftstudio.txt
26/04/13 23:55:45,487 CraftStudio[17074]: objc[17074]: Object 0x15db060 of class NSConcreteMutableData autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug
26/04/13 23:55:45,489 CraftStudio[17074]: objc[17074]: Object 0x107660 of class NSUserDefaults autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug
26/04/13 23:55:45,489 CraftStudio[17074]: objc[17074]: Object 0x107660 of class NSUserDefaults autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug
26/04/13 23:55:45,489 CraftStudio[17074]: objc[17074]: Object 0x15dfc70 of class __NSArrayM autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug
26/04/13 23:55:45,489 CraftStudio[17074]: objc[17074]: Object 0x11e670 of class __NSArrayI autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug
View jeudi.md

Jeudi

[Conférence] Why Kotlin?

[Conférence] Validated Influencing

[Conférence] Web Components, l'avenir des développeurs web ou [Conférence] SensCritique.com : une histoire de start-up

View .gemrc
install: --no-rdoc --no-ri
update: --no-rdoc --no-ri
You can’t perform that action at this time.