Skip to content

Instantly share code, notes, and snippets.

@tjvr
tjvr / README.md
Last active April 26, 2024 23:13
metalsmith-pdf-chrome

Don't use this, use wkhtmltopdf. Don't waste your life like I did.


Render PDFs using Chrome.

const m = Metalsmith(__dirname)
  .use(markdown({
 smartypants: true,
@TravelingTechGuy
TravelingTechGuy / .jshintrc
Created August 13, 2014 14:50
Chrome extension .jshintrc
{
"maxerr" : 50, // {int} Maximum error before stopping
// Enforcing
"bitwise" : true, // true: Prohibit bitwise operators (&, |, ^, etc.)
"camelcase" : false, // true: Identifiers must be in camelCase
"curly" : true, // true: Require {} for every new block or scope
"eqeqeq" : true, // true: Require triple equals (===) for comparison
"forin" : true, // true: Require filtering for..in loops with obj.hasOwnProperty()
"immed" : false, // true: Require immediate invocations to be wrapped in parens e.g. `(function () { } ());`
@bardiz12
bardiz12 / coolroom-downloader.py
Created September 26, 2021 10:29
downloader coolroom. required : axel
import requests
import re
import os
def parseId(link):
pattern = r"(\/(.*?)\/)"
res = re.findall(pattern, link)
return res[2][1]
def getFileName(link):
@dewdad
dewdad / require
Last active April 26, 2024 23:12
Chrome Dev Snippets
window.require = function(name, moduleName) {
_require = require;
if(!moduleName) {
moduleName = name;
}
console.log('Fetching ' + moduleName + '... just one second');
fetch('https://wzrd.in/bundle/' + moduleName + '@latest/')
.then(response => response.text())
@jpiccari
jpiccari / RequirejsInfo.js
Last active April 26, 2024 23:11
Chrome Snippets
(function() {
var moduleList = []
module,
key;
if (typeof requirejs !== 'undefined') {
console.groupCollapsed('%cRequire.js v%s module list', 'color: #0080ff; font: 1.4em Menlo, monospace', requirejs.version);
for (key in requirejs.s.contexts._.defined) {
module = requirejs.s.contexts._.defined[key];
moduleList.push({
@ionox0
ionox0 / rapportiveEmailChecker.js
Last active April 26, 2024 23:11
Email Checker (requires Rapportive chrome extension)
var emails = ['asdf@asdf.asdf', 'andrewsatz@gmail.com', 'aarshayjain@gmail.com', 'nononono@asdfasdf.asdf', 'ianjohnson12491@gmail.com']
function checkEmail(i){
email = emails[i];
a = document.getElementsByClassName('vO')[0];
console.log(a);
a.focus();
a.value = email;
console.log("Found divs: ", a, email);
document.getElementsByClassName('nM')[0].focus();
@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active April 26, 2024 23:12
Complete Recent Discord Quest

Complete Recent Discord Quest

Note

This no longer works in browser! If you absolutely need to use browser instead of desktop app, use an extension to add the string Electron/ anywhere in your user-agent.

How to use this script:

  1. Accept the quest under User Settings -> Gift Inventory
  2. Join a vc
  3. Stream any window (can be notepad or something)
  4. Press Ctrl+Shift+I to open DevTools
@qpwo
qpwo / monte_carlo_tree_search.py
Last active April 26, 2024 23:11
Monte Carlo tree search (MCTS) minimal implementation in Python 3, with a tic-tac-toe example gameplay
"""
A minimal implementation of Monte Carlo tree search (MCTS) in Python 3
Luke Harold Miles, July 2019, Public Domain Dedication
See also https://en.wikipedia.org/wiki/Monte_Carlo_tree_search
https://gist.github.com/qpwo/c538c6f73727e254fdc7fab81024f6e1
"""
from abc import ABC, abstractmethod
from collections import defaultdict
import math

Front-end Roadmap

İlk olarak ingilizce

Arkadaşlar, merhaba, ilk olarak 2000 adet ingilizce kelimeyi ezberlemiz gerekiyor. Bu kelimeleri ezberlerken de "Friends" dizisini önce Türkçe alt yazı ile, ardından tüm sezonları bitirdikten sonra ingilizce alt yazı ile baştan izlemenizi rica ediyorum. Bu size kulak aşinalığı cümlelerin gramer yapısı vs gibi şeyleri öğrenmenize yardımcı olacak.

Bu videolar bittikten sonra sizlere neler yapacağınız bir kaç video sonra anlatıcam ama önce bu videolar bitsin arkadaşlar, öncesinde MUTLAKA film gibi izleyin. Ertesi gün videodakileri uygulayarak yapın. İnanın daha "tanıdık" gelecek. Sakın ilk seferde direk yapmayın :) 

Peki neden vuejs ? Reactjs kullanıcı düşerken Vuejs kullanıcı sayısı arttı o yüzden.