Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
sub, sup { | |
/* Specified in % so that the sup/sup is the | |
right size relative to the surrounding text */ | |
font-size: 75%; | |
/* Zero out the line-height so that it doesn't | |
interfere with the positioning that follows */ | |
line-height: 0; | |
/* Where the magic happens: makes all browsers position |
Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
package main | |
import ( | |
"log" | |
"net/mail" | |
"encoding/base64" | |
"net/smtp" | |
"fmt" | |
"strings" |
[ | |
{"args": null, "command": "split_selection_into_lines"}, | |
{"args": { "extend": false, "to": "eol"}, "command": "move_to"}, | |
{"args": { "extend": false, "to": "bol"}, "command": "move_to"}, | |
{"args": null, "command": "left_delete"}, | |
{"args": { "characters": " "}, "command": "insert"}, | |
{"args": null, "command": "single_selection"}, | |
{"args": { "extend": false, "to": "bol"}, "command": "move_to"}, | |
{"args": null, "command": "right_delete"}, | |
{"args": { "characters": "\n"}, "command": "insert"}, |
for i in `hg branches |grep -v 'default' |grep -v 'production' |grep inactive |awk '{print $1}'`; do hg update $i && hg commit -m "close branch" --close-branch; done |
This is one way to pass some data (API tokens, etc.) to your Jekyll templates without putting it in your _config.yml
file (which is likely to be committed in your GitHub repository).
Copy the environment_variables.rb
plugin to your _plugins
folder, and add any environment variable you wish to have available on the site.config
object.
In a Liquid template, that information will be available through the site
object. For example, _layouts/default.html
could contain:
def get_last_run(task_name): | |
task = db.scheduled_tasks.find_one({'name': task_name}) | |
if task is None: | |
last_run = time.time() | |
# race condition possible, but this only happens at first run | |
db.scheduled_tasks.update( | |
{ | |
'name': task_name | |
}, |
This is no longer needed as Emmet supports JSX - you just need to turn it all on. Did a quick tutorial: http://wesbos.com/emmet-react-jsx-sublime/
Thanks, @wesbos
##Погодное одностраничное веб-приложение
(!) Данные можно взять с сайта openweathermap.org или с любого другого сервиса.
(!) Обязательно использовать react.js и redux.
Приложение должно уметь: