Snippets Collections
django-admin startproject mysite
 
python manage.py startapp myapp
import pandas as pd
import matplotlib.pyplot as plt

from pandas_profiling import ProfileReport
profile = ProfileReport(gabijos, title='Gabijos g.', html={'style':{'full_width':True}})
profile.to_file("gabijos.html")

​import wordcloud
import pandas as pd
import matplotlib.pyplot as plt

# text = open(path.join(d, 'constitution.txt')).read()

# # Generate a word cloud image
# wordcloud = WordCloud().generate(text)

# cloud = wordcloud.WordCloud(max_words = 2000, width = 1600,height = 900).generate(' '.join(data.Sentence))

# plt.figure(figsize=(20,12))
# plt.imshow(cloud)
# plt.axis("off")
# plt.savefig("WordCloudGoT.png")

data = pd.read_excel('aruodas20210401.xlsx')


cloud = wordcloud.WordCloud(max_words = 20, width = 1600,height = 900).generate(' '.join(data['Aprašymas']))

plt.figure(figsize=(20,12))
plt.imshow(cloud)
plt.axis("off")
plt.savefig("WordCloudGoT.png")
/* Basic styles */

*,

*::before,

*::after {

  box-sizing: border-box;

}

​

:root{

    --bg-color: #D8D8D8;

}

​

body {

  display: flex;

  align-items: center;

  justify-content: center;

  overflow: hidden;

  width: 100vw;

  height: 100vh;
<h1 class="home-title">

  <span>Simple text reveal with css</span>

  <span>using pseudo elements</span>

  <span>y mierdas</span>

</h1>

​
@keyframes slide{

  0% {

    width: 0%;

  }

  

  40%, 0% {

    width: 100%;

  }

  
10
}

​

body {

  margin: 0;

  padding: 0;

}

​

.container {

  display: flex;
<div class="container">

  <div class="outer">

    <h1 class="text">I'm a Frontend Developer</h1>

    <div class="inner">

      <h1 class="text">I'm a Frontend Developer</h1>

    </div>

  </div>

</div>

​
​

​

  .section img { 

    left: 0; 

    position:absolute; 

    top: 0; 

}

​

 .section img.one {opacity:0;filter:alpha(opacity=0);}

​

  .section:hover img.one {opacity:1;filter:alpha(opacity=100);}

​

  .section:hover img.two {opacity:0;filter:alpha(opacity=0);}
<a class="section" href="#">

  <img class="one" src="https://banner2.cleanpng.com/20180706/pif/kisspng-cat-red-fox-mammal-paw-dog-angry-chibi-5bfbeaf260060.276995815309042391557.jpg" width=150px />
3
  <img class="two" src="https://w7.pngwing.com/pngs/964/900/png-transparent-tom-tom-cat-jerry-mouse-tom-and-jerry-drawing-tom-and-jerry-mammal-heroes-cat-like-mammal.png" width=150px />
4
</a>
module.exports = leftpad;
​
function leftpad(str, len, ch) {
  str = String(str);
  var i = -1;
​
  if (!ch && ch !== 0) ch = ' ';
​
  len = len - str.length;
​
  while (i++ < len) {
    str = ch + str;
  }
  return str;
}
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
​
<h1>This is a Heading</h1>
<p>This is a paragraph.</p>
​
</body>
</html>
​
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
​
<h1>This is a Heading</h1>
<p>This is a paragraph.</p>
​
</body>
</html>
​
<!DOCTYPE html>
<html>
<head>
<title>Pagefsfn</title>
</head>
<body>
​
<h1>This is a Heading</h1>
<p>This is a paragraph.</p>
​
</body>
</html>
​
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
​
<h1>This is a Heading</h1>
<p>This is a paragraph.</p>
​
</body>
</html>
​
.u-center-text {

  text-align: center !important;

}

​

.u-margin-bottom-small {

  margin-bottom: 1.5rem !important;

}

​

.u-margin-bottom-medium {

  margin-bottom: 4rem !important;

}

​

.u-margin-top-big {

  margin-top: 5rem !important;

}

​
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
.vl {
  border-left: 6px solid green;
  height: 500px;
  position: absolute;
  left: 50%;
  margin-left: -3px;
  top: 0;
}
</style>
</head>
<body>
​
<h2>Vertical Line</h2>
​
<div class="vl"></div>
​
</body>
</html>
​
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
​
<h1>My First Heading</h1>
<p>My first paragraph.</p>
​
</body>
</html>
​
<!-- Facebook Pixel Code -->
<script>
!function(f,b,e,v,n,t,s)
{if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};
if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
n.queue=[];t=b.createElement(e);t.async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];
s.parentNode.insertBefore(t,s)}(window, document,'script',
'https://connect.facebook.net/en_US/fbevents.js');
fbq('init', '766974780896089');
fbq('track', 'PageView');
</script>
<noscript><img height="1" width="1" style="display:none"
src="https://www.facebook.com/tr?id=766974780896089&ev=PageView&noscript=1"
/></noscript>
<!-- End Facebook Pixel Code -->
​
​<!-- Facebook Pixel Code -->
<script>
  !function(f,b,e,v,n,t,s)
  {if(f.fbq)return;n=f.fbq=function(){n.callMethod?
  n.callMethod.apply(n,arguments):n.queue.push(arguments)};
  if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
  n.queue=[];t=b.createElement(e);t.async=!0;
  t.src=v;s=b.getElementsByTagName(e)[0];
  s.parentNode.insertBefore(t,s)}(window, document,'script',
  'https://connect.facebook.net/en_US/fbevents.js');
  fbq('init', '766974780896089');
  fbq('track', 'PageView');
</script>
<noscript><img height="1" width="1" style="display:none"
  src="https://www.facebook.com/tr?id=766974780896089&ev=PageView&noscript=1"
/></noscript>
<!-- End Facebook Pixel Code -->
<!DOCTYPE html>
<html>
<body>
​
<h2>JavaScript new Date()</h2>
​
<p id="demo"></p>
​
<script>
var d = new Date();
document.getElementById("demo").innerHTML = d;
</script>
​
</body>
</html>
​
async function retryRequest(promiseFunc, nrOfRetries) {

  // Write your code here

}

        

let hasFailed = false;

function getUserInfo() {

  return new Promise((resolve, reject) => {

    if(!hasFailed) {

      hasFailed = true;

      reject("Exception!");

    } else {

      resolve("Fetched user!");

    }

  });

}

let promise = retryRequest(getUserInfo, 3);

if(promise) {

  promise.then((result) => console.log(result))

  .catch((error) => console.log("Error!"));

}

module.exports.retryRequest = retryRequest;
let fs;

​

function fileExistsSync(name) {

  return fs.existsSync(name);

}

​

fileExistsSync = fileExistsSync;
@import url(https://fonts.googleapis.com/css?family=Bitter);

​

* {

  box-sizing: border-box;

}

​

html {

  text-align: center;

  padding-top: 50px;

  background: url(https://dl.dropbox.com/s/mz2pjouq8xqw45k/wood_1.png?dl=1);

}

​

blockquote {

  position: relative;

  display: inline-block;

  background: #eee;

  padding: 40px 30px 30px 60px;

  border-radius: 10px;

  font-family: 'Bitter', serif;

  color: #333;

  text-align: left;

  

  box-shadow: 1px 1px 1px #999,

              2px 2px 1px #999,

              3px 3px 1px #999;

  transition-duration: .3s;
//function that returns multiple values

function getTopTwoColors() {

    return ["blue", "pink"];

}

var topTwoColors=getTopTwoColors();

var firstValue=topTwoColors[0]; //get first return value

var secondValue=topTwoColors[1]; //get second return value
rclone config - 以控制会话的形式添加rclone的配置,配置保存在.rclone.conf文件中。
rclone copy - 将文件从源复制到目的地址,跳过已复制完成的。
rclone sync - 将源数据同步到目的地址,只更新目的地址的数据。
rclone move - 将源数据移动到目的地址。
rclone delete - 删除指定路径下的文件内容。
rclone purge - 清空指定路径下所有文件数据。
rclone mkdir - 创建一个新目录。
rclone rmdir - 删除空目录。
rclone check - 检查源和目的地址数据是否匹配。
rclone ls - 列出指定路径下所有的文件以及文件大小和路径。
rclone lsd - 列出指定路径下所有的目录/容器/桶。
rclone lsl - 列出指定路径下所有文件以及修改时间、文件大小和路径。
rclone md5sum - 为指定路径下的所有文件产生一个md5sum文件。
rclone sha1sum - 为指定路径下的所有文件产生一个sha1sum文件。
rclone size - 获取指定路径下,文件内容的总大小。.
rclone version - 查看当前版本。
rclone cleanup - 清空remote。
rclone dedupe - 交互式查找重复文件,进行删除/重命名操作。
 
rclone move Gdrive1:/Private Gdrive2:/Private
or
rclone copy Gdrive1:/SFW Gdrive2:/SFW
or
rclone sync Gdrive1:/NSFW Gdrive2:/NSFW	
 

rclone copy        复制
rclone move        移动,如果要在移动后删除空源目录,加上 --delete-empty-src-dirs 参数
rclone sync        同步:将源目录同步到目标目录,只更改目标目录
rclone size        查看网盘文件占用大小
rclone delete        删除路径下的文件内容
rclone purge        删除路径及其所有文件内容
rclone mkdir        创建目录
rclone rmdir        删除目录
rclone rmdirs        删除指定环境下的空目录。如果加上 --leave-root 参数,则不会删除根目录
rclone check        检查源和目的地址数据是否匹配
rclone ls        列出指定路径下的所有的文件以及文件大小和路径
rclone lsl        比上面多一个显示上传时间
rclone lsd        列出指定路径下的目录
rclone lsf        列出指定路径下的目录和文件

# 复制到网盘,并显示实时传输进度,设置并行上传数为8
 
rclone copy -P /home/SunPma GD:/home/SunPma --transfers=8
 
# 如果需要服务端对服务端的传输可加以下参数(不消耗本地流量)
 
rclone copy 配置名称:网盘路径 配置名称:网盘路径 --drive-server-side-across-configs

rclone 有 4 个级别的日志记录,ERROR,NOTICE,INFO 和 DEBUG。默认情况下,rclone 将生成 ERROR 和 NOTICE 级别消息。

-q - rclone将仅生成 ERROR 消息。
-v - rclone将生成 ERROR,NOTICE 和 INFO 消息,推荐此项。
-vv - rclone 将生成 ERROR,NOTICE,INFO和 DEBUG 消息。
--log-level LEVEL - 标志控制日志级别。
​.icon-interactive {
	fill: #6A6976;
	fill-rule: evenodd;
	height: 32px;
	width:32px;
	background:none;
	cursor:pointer;
}

.icon-interactive:hover {
	fill: #363545;
	height: 32px;
	width:32px;
	background:#e2e2e7;
	border-radius: 4px;
}

.icon-interactive:active {
	fill: #0D6AA8;
	height: 32px;
	width:32px;
	background:#CFE1EE;
	border-radius: 4px;
	
}
​fetch('https://jsonplaceholder.typicode.com/todos/1')
      .then(resultado => {
  	return resultado.json();
})
      .then(resultadoFinal => {
  	console.log(resultadoFinal)
});


#include <iostream>
using namespace std;
​
int main() {
  cout << "Hello World!";
  return 0;
}
​
<!DOCTYPE html>
<html>
<body>
​
<p>Click the button to create a Text Field.</p>
​
<button onclick="myFunction()">Try it</button>
​
<script>
function myFunction() {
  var x = document.createElement("INPUT");
  x.setAttribute("type", "text");
  x.setAttribute("value", "Hello World!");
  document.body.appendChild(x);
}
</script>
​
</body>
</html>
​
$(function()

  {

    $('#myform').validate(

      {

        rules:

        {

          Color:{ required:true }

        },

        messages:

        {

          Color:

          {

            required:"Please select a Color<br/>"

          }

        },

        errorPlacement: function(error, element) 

        {

            if ( element.is(":radio") ) 

            {

                error.appendTo( element.parents('.container') );

            }

            else 

            { // This is the default behavior 

                error.insertAfter( element );
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<style>
body {
  font-family: Arial;
}
​
* {
  box-sizing: border-box;
}
​
.openBtn {
  background: #f1f1f1;
  border: none;
  padding: 10px 15px;
  font-size: 20px;
  cursor: pointer;
}
​
.openBtn:hover {
  background: #bbb;
}
​
.overlay {
  height: 100%;
  width: 100%;
  display: none;
  position: fixed;
  z-index: 1;
  top: 0;
  left: 0;
  background-color: rgb(0,0,0);
  background-color: rgba(0,0,0, 0.9);
}
​
.overlay-content {
  position: relative;
  top: 46%;
{

  queryArtists(byName:"Red Hot Chili Peppers") {

    name

    id

    image

    albums {

      id

    }

  }

}

​

​
{

  queryArtists(byName:"Red Hot Chili Peppers") {

    name

    id

    image

  }

}

​
<!DOCTYPE html>
<html>
<head>
<style> 
p:nth-child(2) {
  background: red;
}
</style>
</head>
<body>
​
<p>The first paragraph.</p>
<p>The second paragraph.</p>
<p>The third paragraph.</p>
<p>The fourth paragraph.</p>
​
<p><b>Note:</b> Internet Explorer 8 and earlier versions do not support the :nth-child() selector.</p>
​
</body>
</html>
​
star

Fri Apr 16 2021 08:52:49 GMT+0000 (UTC) https://codepen.io/hanihsdd/pen/KKaQxdX

#undefined
star

Wed Apr 07 2021 16:50:10 GMT+0000 (UTC)

#undefined #python #pandas
star

Wed Apr 07 2021 16:40:56 GMT+0000 (UTC) https://pandas-profiling.github.io/pandas-profiling/docs/master/rtd/

#undefined #python #pandas
star

Tue Apr 06 2021 20:30:27 GMT+0000 (UTC) http://localhost:8888/notebooks/Untitled2.ipynb?kernel_name

#undefined
star

Sun Mar 14 2021 11:12:50 GMT+0000 (UTC) https://codepen.io/aruizh/pen/OBqxVj

#undefined
star

Sun Mar 14 2021 11:12:43 GMT+0000 (UTC) https://codepen.io/aruizh/pen/OBqxVj

#undefined
star

Sun Mar 14 2021 10:58:43 GMT+0000 (UTC) https://codepen.io/rohitgd/pen/mwbwmQ

#undefined
star

Sun Mar 14 2021 10:58:31 GMT+0000 (UTC) https://codepen.io/rohitgd/pen/mwbwmQ

#undefined
star

Wed Mar 10 2021 04:58:51 GMT+0000 (UTC) https://codepen.io/mikaela-matatko/pen/bGeJvvz

#undefined
star

Wed Mar 10 2021 04:58:43 GMT+0000 (UTC) https://codepen.io/mikaela-matatko/pen/bGeJvvz

#undefined
star

Wed Mar 10 2021 04:58:37 GMT+0000 (UTC) https://codepen.io/mikaela-matatko/pen/bGeJvvz

#undefined
star

Sun Mar 07 2021 04:52:47 GMT+0000 (UTC) https://codepen.io/pen/

#undefined
star

Wed Feb 17 2021 17:01:38 GMT+0000 (UTC) https://ray.so/

#undefined
star

Wed Feb 17 2021 08:53:45 GMT+0000 (UTC) https://www.w3schools.com/html/tryit.asp?filename

#undefined
star

Wed Feb 17 2021 08:53:10 GMT+0000 (UTC) https://www.w3schools.com/html/tryit.asp?filename

#undefined
star

Wed Feb 17 2021 08:52:29 GMT+0000 (UTC) https://www.w3schools.com/html/tryit.asp?filename

#undefined
star

Wed Feb 17 2021 08:52:13 GMT+0000 (UTC) https://www.w3schools.com/html/tryit.asp?filename

#undefined
star

Thu Feb 11 2021 09:52:50 GMT+0000 (UTC) https://github.com/razanavi/check/new/main

#undefined
star

Fri Feb 05 2021 04:40:13 GMT+0000 (UTC) https://codepen.io/JeremyWink/pen/oNvybqX

#undefined
star

Thu Feb 04 2021 18:56:03 GMT+0000 (UTC) https://www.w3schools.com/howto/tryit.asp?filename

#undefined
star

Wed Feb 03 2021 08:57:19 GMT+0000 (UTC) https://www.w3schools.com/html/tryit.asp?filename

#undefined
star

Wed Jan 27 2021 06:56:15 GMT+0000 (UTC) https://theedgetofreedom.com/wp-admin/options-general.php?page

#undefined
star

Wed Jan 27 2021 06:44:57 GMT+0000 (UTC) https://theedgetofreedom.com/wp-admin/options-general.php?page

#undefined
star

Sat Jan 23 2021 10:31:42 GMT+0000 (UTC) https://www.w3schools.com/js/tryit.asp?filename

#undefined
star

Tue Jan 12 2021 12:42:12 GMT+0000 (UTC) https://app.testdome.com/t/25b56554052d47a590682ed2866474b9

#undefined
star

Tue Jan 12 2021 12:38:14 GMT+0000 (UTC) https://app.testdome.com/t/25b56554052d47a590682ed2866474b9

#undefined
star

Thu Jan 07 2021 08:54:05 GMT+0000 (UTC) https://codepen.io/lukasdietrich/pen/KLJjy

#undefined
star

Wed Dec 30 2020 15:01:32 GMT+0000 (UTC) https://codepen.io/pen/tour/welcome/start

#undefined
star

Sun Nov 29 2020 14:36:26 GMT+0000 (UTC) https://www.codegrepper.com/code-examples/delphi/return+2+objects+from+function+typescript

#undefined
star

Tue Nov 10 2020 07:16:25 GMT+0000 (UTC) https://www.codegrepper.com/code-examples/javascript/add+property+to+object+javascript+using+".map()"

#undefined
star

Fri Oct 30 2020 07:18:18 GMT+0000 (UTC) https://blog.jialezi.net/?post

#undefined
star

Wed Oct 28 2020 22:15:39 GMT+0000 (UTC)

#undefined
star

Sat Oct 24 2020 18:15:17 GMT+0000 (UTC) https://es6console.com/

#undefined
star

Wed Sep 16 2020 20:35:23 GMT+0000 (UTC) https://www.w3schools.com/cpp/showcpp.asp?filename=demo_helloworld

#undefined
star

Thu Aug 06 2020 14:18:32 GMT+0000 (UTC) https://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_text_create

#undefined
star

Tue Jul 07 2020 20:15:22 GMT+0000 (UTC) https://codepen.io/prasanthmj/pen/HGmad

#undefined
star

Tue Jun 30 2020 14:22:23 GMT+0000 (UTC) https://www.w3schools.com/howto/tryit.asp?filename=tryhow_js_fullscreen_search

#undefined
star

Fri Jun 05 2020 20:56:50 GMT+0000 (UTC) https://spotify-graphql-server.herokuapp.com/graphql?query={ queryArtists(byName:"Red Hot Chili Peppers") { name id image albums { id } }}

#undefined
star

Fri Jun 05 2020 15:54:06 GMT+0000 (UTC) https://spotify-graphql-server.herokuapp.com/graphql?query={ queryArtists(byName:"Red Hot Chili Peppers") { name id image }}

#undefined
star

Fri May 29 2020 13:53:32 GMT+0000 (UTC) https://www.w3schools.com/cssref/tryit.asp?filename=trycss3_nth-child

#undefined

Save snippets that work with our extensions

Available in the Chrome Web Store Get Firefox Add-on Get VS Code extension