Skip to content

Instantly share code, notes, and snippets.

View dcyou's full-sized avatar

David Turbert dcyou

View GitHub Profile
@adamawolf
adamawolf / Apple_mobile_device_types.txt
Last active April 19, 2024 16:21
List of Apple's mobile device codes types a.k.a. machine ids (e.g. `iPhone1,1`, `Watch1,1`, etc.) and their matching product names
i386 : iPhone Simulator
x86_64 : iPhone Simulator
arm64 : iPhone Simulator
iPhone1,1 : iPhone
iPhone1,2 : iPhone 3G
iPhone2,1 : iPhone 3GS
iPhone3,1 : iPhone 4
iPhone3,2 : iPhone 4 GSM Rev A
iPhone3,3 : iPhone 4 CDMA
iPhone4,1 : iPhone 4S
@nolanlawson
nolanlawson / offline-first-tools.md
Last active March 16, 2024 15:46
List of offline-first tools for web developers

Offline-first tools for web developers

A quick list of tools for building HTML/CSS/JS apps that work well offline. Ping me at @nolanlawson if I missed anything!

Hybrid app development

Tools for bundling your HTML/CSS/JS into a native app.

@sekati
sekati / xcode-build-bump.sh
Created July 24, 2012 20:44
Xcode Auto-increment Build & Version Numbers
# xcode-build-bump.sh
# @desc Auto-increment the build number every time the project is run.
# @usage
# 1. Select: your Target in Xcode
# 2. Select: Build Phases Tab
# 3. Select: Add Build Phase -> Add Run Script
# 4. Paste code below in to new "Run Script" section
# 5. Drag the "Run Script" below "Link Binaries With Libraries"
# 6. Insure that your starting build number is set to a whole integer and not a float (e.g. 1, not 1.0)
@jurv
jurv / color.js
Created January 6, 2017 12:44
JS - Check if text color should be black or white, based on the background color
function shouldTextBeBlack (backgroundcolor) {
return computeLuminence(backgroundcolor) > 0.179;
}
function computeLuminence(backgroundcolor) {
var colors = hexToRgb(backgroundcolor);
var components = ['r', 'g', 'b'];
for (var i in components) {
var c = components[i];
@Atinux
Atinux / keybindings.json
Last active January 16, 2022 05:43
VS Code Terminal Shortcuts
[
{
"key": "ctrl+shift+n",
"command": "workbench.action.terminal.new"
},
{
"key": "ctrl+shift+right",
"command": "workbench.action.terminal.focusNext"
},
{
@dcyou
dcyou / b-a-ba.md
Last active September 10, 2019 14:22
b-a-ba

Veille technologique

Quelle est la version actuelle de NodeJS ?

https://nodejs.org/en/about/releases/

Quelle est la version actuelle de PHP ?

@janikvonrotz
janikvonrotz / Enable Piwik geolocation support with GeoIP PECL.md
Last active February 13, 2017 13:27
Ubuntu: Enable Piwik geolocation support with GeoIP PECL #Piwik #Markdown

Introduction

By default Piwik uses the provider location to guess a visitor's country based on the language they use. This is not very accurate, so they recommend installing and using GeoIP.

Requirements

  • Ubuntu server
  • libgeoip-dev
  • Nginx
  • Nginx minimal website