- Set up iCloud Keychain
- Remove icons and hide Dock
- Default address in iMessage
- Install Updates
- Add Ru Input Sources
- Set up Shortcuts
- Add text shortcuts Text
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
prefix = 'landing__' | |
def visit(a, dir, files): | |
dirname = os.path.abspath(dir) | |
for fname in files: | |
oldname = os.path.join(dirname, fname) | |
if os.path.isdir(oldname): | |
return | |
newname = os.path.join(dirname, '{}{}'.format(prefix, fname)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "ololo", | |
"version": "1.0.0", | |
"description": "", | |
"main": "", | |
"directories": { | |
"test": "test" | |
}, | |
"scripts": { | |
"runserver": "cd ./src && python -m SimpleHTTPServer" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var fs = require('fs') | |
, gm = require('gm'); | |
// resize and remove EXIF profile data | |
var fname = __dirname + '/square.svg'; | |
var newname = __dirname + '/square.png'; | |
gm(fname) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ctx = my-cool-block // имя блока, без точки, без кавычек. Это важно | |
.{$ctx} { | |
&__elem { | |
background url(s('%s__image.svg', $ctx)) // интерполяция есть только для имён селекторов. Поэтому вызываем `s()` | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_typeCheckboxesCurrentValue: function() { | |
return this._getTypeCheckboxes() | |
.filter(function(bCheckbox) { | |
return bCheckbox.isChecked(); | |
}) | |
.map(function(bCheckbox) { | |
return bCheckbox.val(); | |
}) | |
.reduce(function(prev, cur) { | |
return cur || prev; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(function() { | |
var $citySelect = $('#city-select'), | |
STORAGE_ITEM_NAME = 'saveCity'; | |
$citySelect.on('change', function () { | |
var url = $citySelect.val(); | |
if (url !== '') { | |
localStorage.setItem(STORAGE_ITEM_NAME, url); | |
window.location = url; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = function(config) { | |
config.setLanguages(["ru"]); | |
config.mode("development", function() { | |
config.node("bundles", function(nodeConfig) { | |
nodeConfig.addTechs([ | |
[ require("enb/techs/file-copy"), { sourceTarget: "?.js", destTarget: "_?.js" } ], | |
[ require("enb/techs/file-copy"), { sourceTarget: "?.css", destTarget: "_?.css" } ], | |
[ require("enb/techs/file-copy"), { sourceTarget: "?.{lang}.js", destTarget: "_?.{lang}.js" } ] | |
]); | |
});,config.node("wundles", function(nodeConfig) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ant | |
atk | |
autoconf | |
automake | |
cairo | |
cloog-ppl015 | |
composer | |
cryopng | |
curl | |
defluff |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getChannelsList(callback) { | |
var url = 'https://slack.com/api/channels.list?token=' + authToken + '&exclude_archived=1'; | |
request.get(url, function (error, httpResponse, body) { | |
if (error) { | |
callback(null, error); | |
} | |
var response = JSON.parse(body); | |
var channels = response.channels.map(function (channel) { | |
return { | |
id: channel.id, |