- node.js
- Installation paths: use one of these techniques to install node and npm without having to sudo.
- Node.js HOWTO: Install Node+NPM as user (not root) under Unix OSes
- Felix's Node.js Guide
- Creating a REST API using Node.js, Express, and MongoDB
- Node Cellar Sample Application with Backbone.js, Twitter Bootstrap, Node.js, Express, and MongoDB
- JavaScript Event Loop
- Node.js for PHP programmers
This file contains 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
#!/usr/bin/env python | |
from lxml.html import parse | |
def get_today_releases(): | |
url = 'http://www.mangaupdates.com/releases.html' | |
root = parse(url).getroot() | |
today_rls = root.xpath("//div/div[2]//tr[position()>=2]") | |
releases = [] |
This file contains 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
#!/usr/bin/php | |
<?php | |
/* Transmission to Deluge export script | |
* | |
* Transmission - transmission-gtk 2.77 (14031) | |
* Deluge - deluge: 1.3.6 | |
* Script - PHP 5.4.14 (cli) | |
* | |
* How to use this script; | |
* 1) Run `php trans_to_deluge.php` and make sure there aren't any errors. |
This file contains 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
#!/usr/bin/python | |
from mpd import MPDClient | |
from random import randint, shuffle | |
client = MPDClient() | |
client.connect('localhost', 6600) | |
albums = client.list("album") | |
shuffle(albums) |
#README:
This script for mpv intends to offer the fastest and simplest way to convert parts of a video—while you’re watching it and not really more work intensive than making a screenshot. A short demonstration: https://d.maxfile.ro/omdwzyhkoa.webm
##Installation:
You need:
- yad (at least 0.26) (AUR)
This file contains 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/sh | |
for i in *.svg | |
do | |
IFS='.' read -a array <<< "$i" | |
inkscape -f "$i" -e "${array[0]}.png" | |
rm $i |
This file contains 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
diff --git a/gtk/gtkfilechooserdefault.c b/gtk/gtkfilechooserdefault.c | |
index 2a75365..b466ab2 100644 | |
--- a/gtk/gtkfilechooserdefault.c | |
+++ b/gtk/gtkfilechooserdefault.c | |
@@ -81,6 +81,7 @@ | |
#include <sys/stat.h> | |
#include <sys/types.h> | |
#include <locale.h> | |
+#include <math.h> | |
This file contains 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
function file_exists(playlist) | |
local f=io.open(playlist, "r") | |
if f~=nil then io.close(f) return true else return false end | |
end | |
function entry_complete(playlist) | |
local f=io.open(playlist, "r") | |
chars = f:read("*all") | |
last_char = string.sub(chars, -1) | |
if last_char == ";" then io.close(f) return true else return false end |
This file contains 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
#!/usr/bin/python3 | |
# Use: ./8ch-downloader.py <thread url> | |
import requests, os, json, sys | |
def download(url, name, subject_path): | |
filepath = subject_path + '/' + name | |
if not os.path.exists(filepath): | |
print('Get got: ' + name) | |
r = requests.get(url, stream=True) | |
with open(filepath, 'wb') as f: |
This file contains 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
''' | |
620031587 | |
Net-Centric Computing Assignment | |
Part A - RSA Encryption | |
''' | |
import random | |
''' |
OlderNewer