Skip to content

Instantly share code, notes, and snippets.

View zackexplosion's full-sized avatar
🏠
Working from home

Zack zackexplosion

🏠
Working from home
View GitHub Profile
<h1>hello</h1>
<?php
if('tori' === 'gay'){
echo 'yooooooooooooooooo';
}
?>
<?php if('tori' === 'gay'): ?>
yooooooooooooooooo <!-- this is html code -->
<?php endif;?>

An ongoing project to catalogue all of these sneaky, hidden, bleeding edge selectors as I prepare my JSConf EU 2012 talk.

Everything is broken up by tag, but within each the selectors aren't particularly ordered.

I have not tested/verified all of these. Have I missed some or got it wrong? Let me know. - A

A friendly reminder that you may need to set this property on your target/selected element to get the styling results you want:

-webkit-appearance:none;

@zackexplosion
zackexplosion / android java
Created October 10, 2013 07:30
android load image from url
URL url = null;
Bitmap bmp = null;
try {
url = new URL("https://avatars.plurk.com/3779689-big44.jpg");
bmp = BitmapFactory.decodeStream(url.openConnection().getInputStream());
} catch (MalformedURLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
@zackexplosion
zackexplosion / plurk_emotion_no_sapce
Created August 24, 2013 10:41
remove plurk custom enmotion spacing
.text_holder .emoticon_my{
margin-right:-4px;
}
@zackexplosion
zackexplosion / oopExample.php
Last active December 21, 2015 07:28
an oop example
<?php
//宣告『狗』物件
class Dog{
//宣告『狗吠』方法
function bark(){
//讓『狗』叫
echo '幹!'; // http://www.youtube.com/watch?v=NhqOcOetx2w
}
}
  1. Choose: Tools > New Plugin

  2. Paste in the contents of "timestamp.py" below

  3. Save as timestamp.py in ~/Library/Application Support/Sublime Text 2/Packages/User/ (should be the default directory that pops up when you save)

  4. Choose: Sublime Text 2 > Preferences > Key Bindings - User

  5. Add:

    { "keys": ["super+ctrl+t"], "command": "timestamp" }

To make command+ctrl+t perform the insertion.
Make sure to add a comma after the previous keymap entry, if present.