These are NOT product / license keys that are valid for Windows activation.
These keys only select the edition of Windows to install during setup, but they do not activate or license the installation.
As part of Java 8 new features, lambda expressions are now supported (Project Lambda). See this very easy-to-read article from Brian Goetz State of the Lambda but more importantly focusing more on streams: State of the Lambda: Libraries Edition
// From parameters
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
| Below is a simple exmple of how to use gitlab ci | |
| you need to have two different runner: one windows with tag "windows" and one linux with tag "linux" | |
| the pipeline basically try to do | |
| -some go static check | |
| -build go app on both window and linux parallel | |
| -run int test | |
| -deploy goapp to qa1 and qa2 parallel | |
| -deploy to production | |
| there is a lot room to improve this, say, qa1 could be a windows qa2 could be a linux, say, we do not really need runner but can use |
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
| version: '4.5' | |
| services: | |
| # GITLAB | |
| gitlab-web: | |
| image: 'gitlab/gitlab-ce:latest' | |
| restart: always | |
| container_name: gitlab-web | |
| hostname: '192.168.0.14' | |
| environment: |
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
| package main | |
| import ( | |
| "context" | |
| "time" | |
| "go.mongodb.org/mongo-driver/mongo" | |
| "go.mongodb.org/mongo-driver/mongo/options" | |
| "go.mongodb.org/mongo-driver/mongo/readpref" | |
| ) |
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
| package main | |
| import ( | |
| "fmt" | |
| "math/rand" | |
| "time" | |
| "flag" | |
| ) | |
| const ( |
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
| int motorPin1 = 8;// Blue - 28BYJ48 pin 1 | |
| int motorPin2 = 9;// Pink - 28BYJ48 pin 2 | |
| int motorPin3 = 10;// Yellow - 28BYJ48 pin 3 | |
| int motorPin4 = 11;// Orange - 28BYJ48 pin 4 | |
| int motorSpeed = 4; //variable to set stepper speed | |
| char val = '0'; | |
| void setup() { | |
| //declare the motor pins as outputs | |
| pinMode(motorPin1, OUTPUT); | |
| pinMode(motorPin2, OUTPUT); |
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
| from modal import Image, Stub, Secret, gpu | |
| from pathlib import Path | |
| import os | |
| MODEL_PATH = "/model" | |
| def download_models(): | |
| from transformers import AutoTokenizer, AutoModelForCausalLM | |
| token = os.environ["HUGGINGFACE_TOKEN"] | |
| tokenizer = AutoTokenizer.from_pretrained("meta-llama/Llama-2-7b-hf", use_auth_token=token) |
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
| let question = ['🥚','🐔'] | |
| let answer = question.sort() | |
| console.log(answer[0] + ' was first!') |
This is my entry for the fukuoka.ex Elixir/Phoenix Advent Calendar 2019 day 13, and it's a guide for how to write a Line bot using Elixir. 🧪🤖🧪
-
First you need to create a Messaging API Channel on the Line Developers Console. You will also need to add your bot as a friend, and know the generated Channel ID and Channel Secret.
-
Create a new Elixir app with a supervision tree:
mix new advent --sup -
cd advent -
If you want to use git, now we can create a repository (optional):
NewerOlder