First, an exercise. Can we represent all of css with plain data? Let's try.
let redText = { color: 'red' };
using { /Verse.org/Random } | |
Array<public> := module: | |
# Makes an `array` with only unique elements | |
(Input:[]t where t:subtype(comparable)).Unique<public>()<transacts>:[]t = | |
var UniqueArray : []t = array{} | |
for (Value : Input): | |
if (UniqueArray.Find[Value] > -1) {} | |
else: |
mutation AccountMutation($twoFactorRequest: TwoFactorRequest!, $type: [String]!) { | |
Account { | |
# update two factor authentication | |
updateTwoFactorAuthentication(twoFactorRequest: $twoFactorRequest) { #Type: AccountMutationStatus | |
success #Type: Boolean | |
} | |
# Remove authentication method | |
removeThirdPartyLink(type: $type) { #Type: AccountMutationStatus | |
success #Type: Boolean | |
} |
React Fiber is an ongoing reimplementation of React's core algorithm. It is the culmination of over two years of research by the React team.
function ESLintFix() | |
write | |
silent execute "!./node_modules/.bin/eslint --fix %" | |
edit! % | |
redraw! | |
endfunction | |
command W call ESLintFix() |
Find the Discord channel in which you would like to send commits and other updates
In the settings for that channel, find the Webhooks option and create a new webhook. Note: Do NOT give this URL out to the public. Anyone or service can post messages to this channel, without even needing to be in the server. Keep it safe!
###Sketch trial non stop
Open hosts files:
$ open /private/etc/hosts
Edit the file adding:
127.0.0.1 backend.bohemiancoding.com
127.0.0.1 bohemiancoding.sketch.analytics.s3-website-us-east-1.amazonaws.com
There are many already existing powerful http servers that can be used in python e.g. gevent, twisted web server. However, they are a bit complex to use and you cannot start them in a thread other than the main thread. | |
Here is a sample of basic http server using "BaseHTTPRequestHandler". The example exposed two rest interfaces: | |
To ingest records into the web server | |
To retrieve already ingested records from the web server | |
The records are assumed to be JSON based, however, any type of records can be ingested. | |
[sourcecode language="python" wraplines="false" collapse="false"] | |
from BaseHTTPServer import BaseHTTPRequestHandler,HTTPServer |
#!/bin/bash | |
# | |
# Convert ssh-agent output to fish shell | |
# | |
eval "$(ssh-agent)" >/dev/null | |
echo "set SSH_AUTH_SOCK \"$SSH_AUTH_SOCK\"; export SSH_AUTH_SOCK" | |
echo "set SSH_AGENT_PID \"$SSH_AGENT_PID\"; export SSH_AGENT_PID" |
A complete list of RxJS 5 operators with easy to understand explanations and runnable examples.