Skip to content

Instantly share code, notes, and snippets.

View krzysztofjeziorny's full-sized avatar

Krzysztof Jeziorny krzysztofjeziorny

View GitHub Profile

Keybase proof

I hereby claim:

  • I am travellersam on github.
  • I am konsonantenboy (https://keybase.io/konsonantenboy) on keybase.
  • I have a public key ASDtTgEqXk92Dj8bj4VQGqZy7PpCJqRUxkLJdK2E2n_5YQo

To claim this, I am signing this object:

@krzysztofjeziorny
krzysztofjeziorny / .asoundrc
Created October 1, 2013 20:18
.asoundrc file for my Raspberry Pi giving output to the USB sound card with a Toslink output
pcm.!default { type hw card 0 }
ctl.!default { type hw card 0 }
pcm_slave.sl2 { pcm "hw:0,0" rate 48000 }
pcm.rate_convert { type rate slave sl2 }
<?php
// *********** Print $fields array to investigate which field content are problematic
print_r($fields);
// Build the SQL.
if (empty($primary_keys)) {
// We are doing an insert.
$options = array('return' => Database::RETURN_INSERT_ID);
?>
@krzysztofjeziorny
krzysztofjeziorny / bootstrap3-modal
Created July 15, 2013 10:08
Bootstrap 3 modal example
<a data-toggle="modal" href="#myModal" class="btn btn-primary">Launch modal</a>
<div class="modal" id="myModal">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title">Modal title</h4>
</div>
<div class="modal-body">
@krzysztofjeziorny
krzysztofjeziorny / video-rwd
Created June 19, 2013 10:08
Elastic videos for responsive web design
video {
max-width: 100%;
height: auto;
}
.video { /* container div for iframes <div class="video"><iframe/></div> */
position: relative;
padding-bottom: 56.25%;
padding-top: 30px;
height: 0;
@krzysztofjeziorny
krzysztofjeziorny / print.less
Created June 12, 2013 08:10
@media print less for the Omega 3 based Drupal subtheme
/* print */
@media print {
* {
text-shadow: none !important;
color: #000 !important; // Black prints faster: h5bp.com/s
background: transparent !important;
box-shadow: none !important;
}