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
<div id="vidalytics_embed_<unique-id>" style="width: 100%; position:relative; padding-top: 56.25%;"></div> | |
<script type="text/javascript"> | |
(function (v, i, d, a, l, y, t, c, s) { | |
y='_'+d.toLowerCase();c=d+'L';if(!v[d]){v[d]={};}if(!v[c]){v[c]={};}if(!v[y]){v[y]={};}var vl='Loader',vli=v[y][vl],vsl=v[c][vl + 'Script'],vlf=v[c][vl + 'Loaded'],ve='Embed'; | |
if (!vsl){vsl=function(u,cb){ | |
if(t){cb();return;}s=i.createElement("script");s.type="text/javascript";s.async=1;s.src=u; | |
if(s.readyState){s.onreadystatechange=function(){if(s.readyState==="loaded"||s.readyState=="complete"){s.onreadystatechange=null;vlf=1;cb();}};}else{s.onload=function(){vlf=1;cb();};} | |
i.getElementsByTagName("head")[0].appendChild(s); | |
};} | |
vsl(l+'loader.min.js',function(){if(!vli){var vlc=v[c][vl];vli=new vlc();}vli.loadScript(l+'player.min.js',function(){var vec=v[d][ve];t=new vec();t.run(a);});}); |
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
var _vidalyticsPlayerPlugin = { | |
"vidalytics_embed_<unique-id>": { | |
"google-analytics": { | |
"id": "UA-XXXXXXXXXX-X", // Google Analytics ID | |
"videoTitle": "Video XYZ", // Video Başlığı | |
"sendWatchedPercent": "0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100", // Takip edilmek istenen video izlenme oranı (%) | |
"sendPlay": true, // Oynatma olayı | |
"sendPause": true, // Durdurma olayı | |
"sendPausePercentage": true // Videonun durdurulduğu oran (%) | |
} |
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
import re | |
import string | |
import pandas as pd | |
def sanitize_column_names(df: pd.DataFrame, remove_punct: bool = True) -> pd.DataFrame: | |
""" | |
Sanitize DataFrame column names by converting to lowercase and replacing | |
whitespace and punctuation with underscores. | |
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
#!/bin/bash | |
# Get the current remote URL | |
remote_url=$(git config remote.origin.url) | |
# Get account and repo name from remote URL | |
account=$(echo $remote_url | cut -d/ -f4) | |
repo=$(echo $remote_url | cut -d/ -f5 | cut -d. -f1) | |
# Construct the GitHub URL |
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
import processing.video.*; | |
import com.google.zxing.*; | |
import com.google.zxing.common.*; | |
import com.google.zxing.qrcode.*; | |
Capture cam; //Set up the camera | |
Reader reader = new QRCodeReader(); | |
PImage cover; //This will have the cover image | |
String lastISBNAcquired = ""; //This is the last ISBN we acquired |
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
javascript:(function(){var d=document,e=d.querySelector('textarea#PolarisTextField1');if(e && e.style['max-height'].toString()!=="inherit"){e.style="height: 1400px !important; max-height:inherit !important;resize:auto !important;";}})(); |
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
javascript:(function(){var d=document,e=d.getElementsByClassName("admin-nav-columns");if(e && e[0].style.display && e[0].style.display.toString()=="none"){e[0].style="display:block;";} else {e[0].style="display:none;";}})(); |
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
{% assign t = template | split: '.' | first %} | |
{%- assign contentGroupInfo = '' -%} | |
{%- case t -%} | |
{%- when 'index' -%} | |
{%- capture contentGroupInfo -%}{{- contentGroupInfo | append: 'Home' -}}{%- endcapture -%} | |
{%- when 'page' -%} | |
{%- capture contentGroupInfo -%}{{- contentGroupInfo | append: 'Pages' -}}{{- contentGroupInfo | append: page.title | prepend: "/" -}}{%- endcapture -%} | |
{%- when 'cart' -%} | |
{%- capture contentGroupInfo -%}{{- contentGroupInfo | append: 'Pages/Cart' -}}{%- endcapture -%} | |
{%- when '404' -%} |
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
#!pip install tabula-py | |
#!java -version | |
import tabula | |
import pandas as pd | |
# NEW VERSION | |
url = "https://fenbil.aku.edu.tr/FENBILENS/takvim/2014-2022-1RESMI.pdf" |
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
#!pip install PyPDF2 | |
import urllib.request, io, PyPDF2 | |
import pandas as pd | |
url = "https://fenbil.aku.edu.tr/FENBILENS/takvim/2014-2022-1RESMI.pdf" | |
remoteFile = urllib.request.urlopen(url) | |
pdfReader = PyPDF2.PdfFileReader(io.BytesIO(remoteFile.read())) | |
for i in range(pdfReader.numPages): |