Here's a step-by-step to get started scripting Minecraft with Python on Mac OSX
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 string | |
import factory | |
from django.contrib.auth import get_user_model | |
from hypothesis import strategies as st | |
UserModel = get_user_model() | |
DEFAULT_PASSWORD = 'default_password' | |
class UserFactory(factory.django.DjangoModelFactory): |
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
# taken from user Albert's answer on StackOverflow | |
# http://stackoverflow.com/questions/5292204/macosx-get-foremost-window-title | |
# tested on Mac OS X 10.7.5 | |
global frontApp, frontAppName, windowTitle | |
set windowTitle to "" | |
tell application "System Events" | |
set frontApp to first application process whose frontmost is true | |
set frontAppName to name of frontApp |
Hierarchical data metrics that allows fast read operations on tree like structures.
Based on Left and Right fields that are set during tree traversal. When entered into node value is set to it's Left, when exiting node value is set to it's Right.
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 React from "react"; | |
import ReactDOM from "react-dom"; | |
import { createBrowserHistory } from "history"; | |
import { Router, Route, Switch, Redirect } from "react-router-dom"; | |
// core components | |
import Admin from "layouts/Admin.jsx"; | |
import RTL from "layouts/RTL.jsx"; | |
import "assets/css/material-dashboard-react.css?v=1.7.0"; |
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
const switchRoutes = (mix_props) => ( | |
<Switch> | |
{routes.map((prop, key) => { | |
if (prop.layout === "/admin") { | |
return ( | |
<Route | |
path={prop.layout + prop.path} | |
component={(route_props) => <prop.component {...route_props, ...mix_props} />} | |
key={key} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
POST /api/node_item/raw_creation Передаёшь через multipart/form-data Первый параметр name=node_item
{
"parents_node": [""],
"title": "",
"content_type": "",
"meta_data": {},
"geo_data": {
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
Exception in thread "main" java.lang.ExceptionInInitializerError | |
at clojure.main.<clinit>(main.java:20) | |
Caused by: java.lang.ClassNotFoundException: javax.xml.bind.DatatypeConverter, compiling:(org/httpkit/server.clj:1:1) | |
at clojure.lang.Compiler.load(Compiler.java:7526) | |
at clojure.lang.RT.loadResourceScript(RT.java:379) | |
at clojure.lang.RT.loadResourceScript(RT.java:370) | |
at clojure.lang.RT.load(RT.java:460) | |
at clojure.lang.RT.load(RT.java:426) | |
at clojure.core$load$fn__6548.invoke(core.clj:6046) | |
at clojure.core$load.invokeStatic(core.clj:6045) |
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
(ns specfn.core | |
(:require [clojure.spec :as s] | |
[clojure.spec.test :as t])) | |
(defn- spec-symbols [s] | |
(->> s | |
(drop 1) | |
(partition-all 2) | |
(map first) | |
(map name) |
NewerOlder