Skip to content

Instantly share code, notes, and snippets.

@Pym
Pym / gist:9467759
Last active January 12, 2019 03:55
Popup Bookmarklet
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");
<?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)
{
"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,
puts (1..100).map { |i| i % 3 * i % 5 == 0 ? (i % 3 == 0 ? 'Fizz' : '') + (i % 5 == 0 ? 'Buzz' : '') : i.to_s }
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

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

install: --no-rdoc --no-ri
update: --no-rdoc --no-ri
@Pym
Pym / why.swift
Created September 16, 2015 12:01
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
}
}
@Pym
Pym / keybase.md
Created February 10, 2015 19:07
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: