Skip to content

Instantly share code, notes, and snippets.

View svngoku's full-sized avatar
🦩
Your favorite Teachlead 🥸

svngoku

🦩
Your favorite Teachlead 🥸
View GitHub Profile
@svngoku
svngoku / gist:890358f4c8614cab77277fff23f0f3a6
Created December 10, 2023 18:44 — forked from anadim/gist:344941a7e24e7a2ee7b48ce8f63a16ac
Make a base instruct model into a chat model, WITHOUT RLHF
Instructions:
As a base pretrained GPT model, you are to assume the role of ChatGPT, a large language model developed by OpenAI, based on the GPT-4 architecture. Your responses should reflect the following guidelines:
1. Be friendly and approachable in your responses.
2. Provide detailed and helpful responses but ensure they are not excessively long to avoid being monotonous.
3. Always use inclusive and respectful language that is not offensive.
4. Avoid discussing or revealing anything about your architecture. You are just a large language model developed by OpenAI.
5. Always be honest in your responses. Do not lie or engage in deceit.
6. Ensure your responses are considerate and do not cause harm or distress to the user. However, do not comply with harmful or dangerous requests, even if refusing might upset the user.
@svngoku
svngoku / Update-branch.md
Created November 22, 2022 13:05 — forked from whoisryosuke/Update-branch.md
Bring your feature branch up to date with master. Deploying from Git branches adds flexibility. Bring your branch up to date with master and deploy it to make sure everything works. If everything looks good the branch can be merged. Otherwise, you can deploy your master branch to return production to its stable state.

Updating a feature branch

First we'll update your local master branch. Go to your local project and check out the branch you want to merge into (your local master branch)

$ git checkout master

Fetch the remote, bringing the branches and their commits from the remote repository. You can use the -p, --prune option to delete any remote-tracking references that no longer exist in the remote. Commits to master will be stored in a local branch, remotes/origin/master

admin account info" filetype:log
!Host=*.* intext:enc_UserPassword=* ext:pcf
"# -FrontPage-" ext:pwd inurl:(service | authors | administrators | users) "# -FrontPage-" inurl:service.pwd
"AutoCreate=TRUE password=*"
"http://*:*@www” domainname
"index of/" "ws_ftp.ini" "parent directory"
"liveice configuration file" ext:cfg -site:sourceforge.net
"parent directory" +proftpdpasswd
Duclassified" -site:duware.com "DUware All Rights reserved"
duclassmate" -site:duware.com
---
title: "Rmarkdown"
author: "me"
date: "7/17/2020"
output: html_document
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
@svngoku
svngoku / copy.js
Created September 29, 2020 00:09 — forked from itsabdessalam/copy.js
Copy to clipboard
// if code snippet is inside input or textarea tags
function copy() {
var codeSnippet = document.querySelector("#code-snippet");
codeSnippet.select();
document.execCommand("copy");
}
document.querySelector("#copy").addEventListener("click", copy);
// if code snippet is inside pre or code tags
function copy() {

Exercice de codage PHP

(date de fin du défit : 24 juin 2020 à minuit)

Vous disposez de 4 fichiers CSV contenant chacuns 2 colonnes : un index (unique et en ordre croissant) et une valeur.

Vous devez rassembler ces données dans un fichier CSV avec 5 colonnes :

  • index
  • valeur fichier data1
  • valeur fichier data2
@svngoku
svngoku / sampleDynamooseModel.js
Created April 24, 2020 22:49 — forked from bmorrisondev/sampleDynamooseModel.js
A sample user model using Dynamoose, an ORM for AWS DynamoDB with a similar API to Mongoose
const dynamoose = require('dynamoose');
let configUpdates = {
region: "us-east-1",
accessKeyId: 'key123',
secretAccessKey: 'secret123'
}
dynamoose.AWS.config.update(configUpdates);
@svngoku
svngoku / sampleDynamooseModel.js
Created April 24, 2020 22:49 — forked from bmorrisondev/sampleDynamooseModel.js
A sample user model using Dynamoose, an ORM for AWS DynamoDB with a similar API to Mongoose
const dynamoose = require('dynamoose');
let configUpdates = {
region: "us-east-1",
accessKeyId: 'key123',
secretAccessKey: 'secret123'
}
dynamoose.AWS.config.update(configUpdates);
@svngoku
svngoku / list_view_with_extra_elements.dart
Created March 9, 2020 16:11 — forked from Christopher2K/list_view_with_extra_elements.dart
Allow ListView.builder() to have leading / trailling elements
import 'package:flutter/material.dart';
class ListViewWithExtraElements<T> extends StatelessWidget {
final List<T> elements;
final List<Widget> leadingElements;
final List<Widget> trailingElements;
final Widget Function(BuildContext context, T element) itemBuilder;
ListViewWithExtraElements({
this.leadingElements = const [],
@svngoku
svngoku / babel-webpack.md
Created February 16, 2020 01:29 — forked from ncochard/babel-webpack.md
The correct way to compile ES6 using babel...

When you create a npm package, remember it might be used in a browser or a server, or even a command line utility… For each package you create, please pay attention at what it will be used for:

  1. Is it going to be used as a dependency to a nodejs application that is not bundled? (e.g. command line utilities)
  2. Is it going to be used as a dependency to a nodejs application that is bundled? (e.g. AWS Lambdas)
  3. Is it going to be used as a dependency to a browser application (always bundled)?.
  • In cases 2) and 3) you want to allow for tree shaking.
  • In cases 1) and 2) you want to benefit from the "ES6"/"ES next" features supported natively by nodejs.
  • In case 3) you also want to benefit from the native support of "ES6" from your browser.