This file contains 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
#!/bin/bash | |
# Requires gcloud and kubectl. | |
# Make sure you've enabled the API services using gcloud: | |
# gcloud services enable \ | |
# cloudapis.googleapis.com \ | |
# container.googleapis.com \ | |
# containerregistry.googleapis.com | |
# Exit on error. |
This file contains 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
sudo kubeadm reset | |
sudo curl -L git.io/weave -o /usr/local/bin/weave | |
sudo chmod a+x /usr/local/bin/weave | |
sudo weave reset | |
rm ~/.kube/config | |
sudo systemctl restart docker |
This file contains 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
# Run as: blender -b <filename> -P <this_script> -- <image_path> | |
import bpy, sys, os | |
from random import random | |
# Assume the last argument is image path | |
output_folder = sys.argv[-1] | |
for i in range(806, 1000): | |
vase = bpy.data.objects["vase"] | |
scene = bpy.data.scenes['Scene'] |
This file contains 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
brew install clang-format | |
apm install clang-format | |
# Atom settings > clang-format settings > set "Fallback Style" to "Google" | |
# Atom settings > clang-format settings > set "Format on save" | |
npm install -g eslint eslint-config-google | |
apm install linter linter-ui-default linter-eslint | |
# Atom settings > linter-eslint settings > enable "Use global ESLint installation" | |
# Add file named '.eslintrc.json' at root of project: | |
# { "extends": "google", "parserOptions": { "ecmaVersion": 6 }, "rules": {}} |
This file contains 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
#include "pitches.h" | |
int lightPin = 0; | |
int potPin = 1; | |
int valueToTriggerNote = 0; | |
int tunePin = 9; | |
int feedbackLedPin = 13; | |
int tune = 400; |
This file contains 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
# adds collection names in metadatas jsons. | |
import csv | |
import os | |
import json | |
from Tkinter import Tk | |
import tkFileDialog | |
import io | |
collectionsFileName = "allCollectionNames.csv" |
This file contains 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
var value = process.argv[2]; | |
if (typeof value == "undefined") { | |
console.log('usage : node toggleWemo [0:1]'); | |
process.exit(1); | |
} | |
var http = require('http-debug').http; | |
http.debug = 2; | |
var wemoIP = '172.20.10.2'; |
This file contains 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
// importe la librairie robotjs | |
var robot = require("robotjs"); | |
// défini les variables des vitesses horizontale & verticale | |
var speedX = 15; | |
var speedY = 5; | |
// créé une fonction update() qui sera appelée indéfiniment (voir ligne 37) | |
function update() { |
This file contains 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
circuitLength = 66; | |
circuitClipHeight = 7; | |
circuitOffset = 4; | |
module xhole(radius, length) { | |
rotate(a=[0,90,0]) cylinder(r=radius,h=length+1,center=true, $fn=10); | |
} | |
module batteryClip(width, length, thickness) { | |
union() { |
This file contains 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
#include <SoftwareSerial.h> | |
#include <Adafruit_NeoPixel.h> | |
//SoftwareSerial softSerial(8, 9); // RX, TX | |
#define BUFFER_SIZE 256 | |
char input[BUFFER_SIZE]; | |
int currPos = 0; |
NewerOlder