Last updated: 12/31/2013
- Edit
/etc/default/localeas sudo. - Append
LC_ALL="en_US.UTF-8"at the end of the file, save and quit. sudo locale-gen en_US en_US.UTF-8sudo dpkg-reconfigure locales
Last updated: 12/31/2013
/etc/default/locale as sudo.LC_ALL="en_US.UTF-8" at the end of the file, save and quit.sudo locale-gen en_US en_US.UTF-8sudo dpkg-reconfigure locales| [ | |
| { "keys": ["ctrl+shift+tab"], "command": "prev_view" }, | |
| { "keys": ["ctrl+tab"], "command": "next_view" } | |
| ] |
| #!/bin/bash | |
| DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
| for file in $DIR/../English.lproj/*.xib | |
| do | |
| basename=$(echo $file | rev | cut -d/ -f1 | rev) | |
| stringname=$(echo $basename | sed "s/.xib/.strings/") | |
| en="English.lproj/$stringname" |
| // Just before switching jobs: | |
| // Add one of these. | |
| // Preferably into the same commit where you do a large merge. | |
| // | |
| // This started as a tweet with a joke of "C++ pro-tip: #define private public", | |
| // and then it quickly escalated into more and more evil suggestions. | |
| // I've tried to capture interesting suggestions here. | |
| // | |
| // Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_, | |
| // @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant, |
| #!/usr/bin/ruby | |
| # encoding: utf-8 | |
| # | |
| # Updated 2017-10-25: | |
| # - Defaults to large size (512) | |
| # - If ImageMagick is installed: | |
| # - rounds the corners (copped from @bradjasper, https://github.com/bradjasper/Download-iTunes-Icon/blob/master/itunesicon.rb) | |
| # - replace original with rounded version, converting to png if necessary | |
| # | |
| # Retrieve an iOS app icon at the highest available resolution |
| # Set the save dialog to be in extended mode by default | |
| defaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode -bool true | |
| # Set the iCloud-using apps to not save to iCloud by default | |
| # Courtesy of @room34, http://blog.room34.com/archives/5098 | |
| defaults write NSGlobalDomain NSDocumentSaveNewDocumentsToCloud -bool false | |
| # Open a new document in TextEdit (& other iCloud-backed app) directly | |
| # instead of presenting the document picker. | |
| defaults write -g NSShowAppCentricOpenPanelInsteadOfUntitledFile -bool false |
This is where Sketch stores Plugins, Templates and Textures
To import a bunch of textures (say the whole Sublime Patters pack found at
Extract them all into
~/Library/Application Support/Sketch/Textures
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Linq.Expressions; | |
| using MonoTouch.UIKit; | |
| namespace Async.iOS | |
| { | |
| public static class Layout | |
| { |
| data:text/html, <style type="text/css">#e{position:absolute;top:0;right:0;bottom:0;left:0;font-size:16px}</style><div id="e"></div><script src="http://d1n0x3qji82z53.cloudfront.net/src-min-noconflict/ace.js" type="text/javascript" charset="utf-8"></script><script>var e=ace.edit("e");e.setTheme("ace/theme/monokai");e.getSession().setMode("ace/mode/php");</script> |
| env = (function() { | |
| var flags = {}, ua = navigator.userAgent, el = document.createElement('div'), video = document.createElement('video'), audio = document.createElement('audio'), root = document.documentElement, i | |
| function flag(names) { | |
| names = names.split(' ') | |
| for (i = 0; i < names.length; i++) | |
| flags[names[i]] = true | |
| } | |
| function classnames() { | |
| var names = [], name | |
| for(name in flags) if (flags.hasOwnProperty(name)) |