Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| const https = require("https"); | |
| const token = ""; // change this to you telegram bot token! | |
| const chatId = ""; // change this to your telegram chat id! | |
| const cookie = ""; // change this to your shanbay cookie! | |
| const PATH_API = (page) => | |
| `/wordsapp/user_material_books/blozps/learning/words/today_learning_items?ipp=10&page=${page}&type_of=NEW`; | |
| const options = { |
| #define _GNU_SOURCE | |
| #include <errno.h> | |
| #include <sched.h> | |
| #include <signal.h> | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <sys/mount.h> | |
| #include <sys/stat.h> | |
| #include <sys/syscall.h> | |
| #include <sys/types.h> |
| FROM elixir:1.9.1-alpine as build | |
| # # install build dependencies | |
| RUN apk add --no-cache \ | |
| gcc \ | |
| g++ \ | |
| git \ | |
| make \ | |
| musl-dev | |
| RUN mix do local.hex --force, local.rebar --force |
| defmodule MacroExp do | |
| defmacro attr_accessor(atom) do | |
| getter = String.to_atom("get_#{atom}") | |
| setter = String.to_atom("set_#{atom}") | |
| quote do | |
| def unquote(getter)(data) do | |
| data |> Map.from_struct |> Map.get(unquote(atom)) | |
| end | |
| def unquote(setter)(data, value) do | |
| data |> Map.put(unquote(atom), value) |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| if [ -f "$rvm_path/scripts/rvm" ] && [ -f ".ruby-version" ] && [ -f ".ruby-gemset" ]; then | |
| source "$rvm_path/scripts/rvm" | |
| rvm use `cat .ruby-version`@`cat .ruby-gemset` | |
| fi |
| #!/usr/bin/env python | |
| #-*- coding:utf8 -*- | |
| import re | |
| import urllib | |
| def counter(url, start, end): | |
| p = urllib.urlopen(url).read().decode('utf8') | |
| art = r'(?s)(?=%s).*?(?<=%s)' % (start, end) | |
| article = re.findall(art, p)[0] | |
| # print article |
| var AutoSave = (function(){ | |
| var timer = null; | |
| function getEditor(){ | |
| var elems = document.getElementsByTagName("textarea") | |
| if (elems.length <= 0) | |
| return null; |
| .markdown-body { | |
| font-size: 14px; | |
| line-height: 1.6; | |
| } | |
| .markdown-body > *:first-child { | |
| margin-top: 0 !important; | |
| } | |
| .markdown-body > *:last-child { | |
| margin-bottom: 0 !important; | |
| } |