Skip to content

Instantly share code, notes, and snippets.

View laymonage's full-sized avatar
👋
looking for friends from around the world, hmu!

sag​e laymonage

👋
looking for friends from around the world, hmu!
View GitHub Profile
@laymonage
laymonage / steam_no_linkfilter.js
Last active January 28, 2019 05:11
A tampermonkey/greasemonkey user script to disable link filter on https://steamcommunity.com.
// ==UserScript==
// @name Steam Link Filter Disabler
// @namespace https://steamcommunity.com
// @version 0.1
// @description Disable the link filter on steamcommunity links.
// @author laymonage
// @match https://steamcommunity.com/*
// @grant none
// ==/UserScript==
@laymonage
laymonage / find.js
Created November 12, 2018 11:45
Script to query Google books API and populate a table with the result.
function writeTable(items) {
/**
* Write items to table.
*/
var tbody = $('tbody');
tbody.empty();
$(function() {
$.each(items, function(i, item) {
var author = item.volumeInfo.authors ? item.volumeInfo.authors[0] : '-';
var thumbnail = item.volumeInfo.imageLinks ? item.volumeInfo.imageLinks.smallThumbnail : '';
@laymonage
laymonage / .gitlab-ci.yml
Last active October 31, 2018 06:46 — forked from argaghulamahmad/.gitlab-ci.yml
func & unit test gitlab yml config
stages:
- test
- deploy
UnitTest:
image: python:3.6
stage: test
before_script:
- apt-get update -qq && apt-get install -y -qq chromedriver
- pip install -r requirements.txt
import os
import requests
from bs4 import BeautifulSoup
def scrape(link):
'''
Fungsi rekursif untuk scraping blog punkindonesiamp3.
'''
@laymonage
laymonage / lulz.js
Last active February 3, 2018 06:30
(function () {
document.documentElement.innerHTML = '<iframe width="1280" height="720" src="https://www.youtube.com/embed/dQw4w9WgXcQ?autoplay=1"></iframe>';
})();