Skip to content

Instantly share code, notes, and snippets.

View Bizunow's full-sized avatar

Ilya Bizunov Bizunow

  • Russia, Krasnodar
View GitHub Profile
@sbstjn
sbstjn / keyboard.md
Last active May 5, 2019 19:52
Shopping List to build a 68% Keyboard with a Sandwich Case

Without the keycaps all items to build the keyboard sum up to around 105 EUR / 125 USD. The aluminium plates for the Sandwich Case and of course the Cherry MX switches are the most expensive components.

@jkeck
jkeck / svg-pie-chart.css
Created November 14, 2015 06:22
Simple SVG Pie Chart
svg {
width: 100px;
border-radius: 50%;
background:yellowgreen;
transform: rotate(-90deg);
}
circle {
fill: none;
stroke-width: 32;
@elderdosantos
elderdosantos / gist:2b9e1812e7676238e7c0
Created December 3, 2014 13:02
Yii: CDbCriteria with Yii::app()->db->createCommand()
<?php
/**
* To use CDbCriteria with createCommand follow this tip:
*/
$criteria = new CDbCriteria();
$criteria->compare('id', $this->id);
$criteria->addCondition('user.id in (select userid from user_groups where group_type = 1');
$command = Yii::app()->db->createCommand();
$command->from('vci_veiculo');