Skip to content

Instantly share code, notes, and snippets.

@josikie
josikie / Ternary.cpp
Created Jan 18, 2020
Dasar Pemrograman C++ (2)
View Ternary.cpp
// Berikut struktur Operator Ternary :
a + b - c;
// contohnya :
3 + 5 - 2;
@daovietanhuet
daovietanhuet / population.js
Created Jan 18, 2020
NEUROEVOLUTION USING TENSORFLOW
View population.js
//you must provide tensorflow js to run this
class NeuralNetwork {
constructor(a, b, c, d) {
if (a instanceof tf.Sequential) {
this.model = a;
this.input_nodes = b;
this.hidden_nodes = c;
this.output_nodes = d;
} else {
this.input_nodes = a;
View untrusted-lvl11-solution.js
/*
* robot.js
*
* You'll need three keys in order to unlock the
* Algorithm: the red key, the green key, and the
* blue key. Unfortunately, all three of them are
* behind human-proof barriers.
*
* The plan is simple: reprogram the maintenance
* robots to grab the key and bring it through
View docker-compose-test.yml
version: '3.1'
services:
mongo:
image: mongo:4.2.0-rc2-bionic
ports:
- 1234:27017
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: example
@bazsapeter
bazsapeter / 1_3_Tuples&Lists_Python.ipynb
Created Jan 18, 2020
Created on Cognitive Class Labs
View 1_3_Tuples&Lists_Python.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@goyal-aman
goyal-aman / cloudSettings
Created Jan 18, 2020
Visual Studio Code Settings Sync Gist
View cloudSettings
{"lastUpload":"2020-01-18T15:22:51.439Z","extensionVersion":"v3.4.3"}
@josikie
josikie / Binary.cpp
Created Jan 18, 2020
Dasar Pemrograman C++ (2)
View Binary.cpp
// Berikut struktur operator binary :
a + c;
// Contohnya :
3 + 5;
View add_cls_and_sep.py
bert_tokens = []
bert_tokens.append("[CLS]")
for token in tokens:
bert_tokens.append(token)
bert_tokens.append("[SEP]")
bert_tokens
>>> ['[CLS]', 'this', 'here', "'", 's', 'an', 'example', 'of', 'using', 'the', 'bert', 'token', '##izer', '[SEP]']
View readmy.md

Шаблоны в 1С-Битрикс

Пролог и эпилог

Каждый файл должен включать пролог и эпилог

//Пролог
require($_SERVER["DOCUMENT_ROOT"]."/bitrix/header.php");
//Эпилог
require($_SERVER["DOCUMENT_ROOT"]."/bitrix/footer.php");?>
@tirthpatel10
tirthpatel10 / fileNameVSC.dart
Created Jan 18, 2020
Gist Generated by DartpadGenerator from VSCode
View fileNameVSC.dart
import 'package:flutter/material.dart';
import 'package:demoji/demoji.dart';
void main() => runApp(MyApp());
class MyApp extends StatefulWidget {
@override
_MyAppState createState() => _MyAppState();
}
You can’t perform that action at this time.