extern crate websocket; | |
use std::thread; | |
use std::sync::Arc; | |
use std::sync::Mutex; | |
use std::sync::mpsc::{Sender, Receiver}; | |
use std::sync::mpsc; | |
use websocket::Message; | |
use websocket::stream::sync::TcpStream; | |
use websocket::sync::{Server, Client}; |
<?php | |
// This file walks you through the most common features of PHP's SQLite3 API. | |
// The code is runnable in its entirety and results in an `analytics.sqlite` file. | |
// Create a new database, if the file doesn't exist and open it for reading/writing. | |
// The extension of the file is arbitrary. | |
$db = new SQLite3('analytics.sqlite', SQLITE3_OPEN_CREATE | SQLITE3_OPEN_READWRITE); | |
// Errors are emitted as warnings by default, enable proper error handling. |
IMAGE_CDN = https://apex-inc.imgix.net | |
# Imgix image replacement. | |
images: | |
@echo "==> pointing images to $(IMAGE_CDN)" | |
@find build -type f -name "*.html" | xargs sed -i '' 's|src="/images|src="$(IMAGE_CDN)/images|g' | |
@find build -type f -name "*.html" | xargs sed -i '' 's|href="/images|href="$(IMAGE_CDN)/images|g' | |
.PHONY: images |
// - Draw a series of points in a straight line and draw a line between them; | |
// - Make a copy of the preceding series of points, slightly mutate their x/y coordinates, and draw a line between them; | |
// - Repeat | |
ArrayList<PVector> points; | |
int pTotal = 300; // The total number of points per line | |
float w; // This will be used to define the drawing area | |
// Noise variables | |
float offsetX = 0; |
###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
/*<?php | |
//*/public class PhpJava { public static void main(String[] args) { System.out.printf("/*%s", | |
//\u000A\u002F\u002A | |
class PhpJava { | |
static function main() { | |
echo(//\u000A\u002A\u002F | |
"Hello World!"); | |
}} | |
//\u000A\u002F\u002A | |
PhpJava::main(); |
This guide assumes you have the emmet
and language-babel
packages already installed in Atom
- Open the
keymap.cson
file by clicking onAtom -> Keymap…
in the menu bar - Add these lines of code to your keymap:
'atom-text-editor[data-grammar~="jsx"]:not([mini])':
Per Team User Subscription in Laravel Spark
If you want the ability to charge a team owner based on how many members their team has, like $10/user/month, then you utilize the Laravel Cashier functionality of incrementing the quantity.
You listen for when a new team member is added and you increase the quantity of the subscription by the amount of users and also listen for when a team member is removed to downsize charges. - Not Braintree Compatible
'Laravel\Spark\Events\Teams\TeamMemberAdded' => [
Want to move computation on machine with much power. We will set up Anaconda 4.0.0 and XGBoost 0.4 (it is tricky installable).
- Amazon AWS Educate gives 100$ for MIPT students.
- GitHub Students Pack additionaly gives 15$.