Skip to content

Instantly share code, notes, and snippets.

View steven-work-space's full-sized avatar
😀

Wilhelmin steven-work-space

😀
  • Tchernobyl
View GitHub Profile
@SeppPenner
SeppPenner / Installing Python 3.7.4 on Raspbian.rst
Last active May 9, 2024 21:52
Installing Python 3.7.4 on Raspbian

Installing Python 3.7.4 on Raspbian

As of July 2018, Raspbian does not yet include the latest Python release, Python 3.7.4. This means we will have to build it ourselves, and here is how to do it.

  1. Install the required build-tools (some might already be installed on your system).
@bboydflo
bboydflo / getIOSVersion.js
Created June 9, 2017 12:20 — forked from to4iki/getIOSVersion.js
Get iOS version via javascript
class Semver {
constructor(major, minner, patch) {
this.major = major;
this.minner = minner;
this.patch = patch;
}
toString() {
return `${this.major}_${this.minner}_${this.patch}`;
}
@brettlangdon
brettlangdon / Wallpapers.md
Last active December 22, 2023 16:38
Wallpapers

Wallpapers

Install with git git clone https://gist.github.com/85942af486eb79118467.git ~/Pictures/wallpapers

@sourcec0de
sourcec0de / ApiController.php
Created December 7, 2012 23:14
Cross Origin Resource Sharing with PHP & YII
// add this to your API controller in Yii
public function actionPreflight() {
$content_type = 'application/json';
$status = 200;
// set the status
$status_header = 'HTTP/1.1 ' . $status . ' ' . $this->_getStatusCodeMessage($status);
header($status_header);
@burakerdem
burakerdem / gist:1007450
Created June 4, 2011 01:38
PHP: ucwords() for UTF-8 strings
<?php
if (!function_exists('mb_ucwords'))
{
function mb_ucwords($str)
{
return mb_convert_case($str, MB_CASE_TITLE, "UTF-8");
}
}