Skip to content

Instantly share code, notes, and snippets.

package it.penpen.android.passphrase_generator;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;
import android.content.Context;
@kappa7194
kappa7194 / bbf_download_checker.py
Created October 8, 2012 22:01
BBF download checker
import bs4
import re
import urllib2
class Project:
project_page_url = None
download_page_url = None
title = None
is_download_page_working = False
@kappa7194
kappa7194 / Dialogues.diff
Created October 7, 2012 20:43
Kami-sama no memo-chou - 04
diff UwB Z:/BBF/Kami-sama no memo chou/Sub tradotti/Kami-sama no memo-chou - 04 - Dialogues v1.ass Z:/BBF/Kami-sama no memo chou/Sub tradotti/Kami-sama no memo-chou - 04 - Dialogues v2.ass
--- Z:/BBF/Kami-sama no memo chou/Sub tradotti/Kami-sama no memo-chou - 04 - Dialogues v1.ass Sun Oct 07 22:39:21 2012
+++ Z:/BBF/Kami-sama no memo chou/Sub tradotti/Kami-sama no memo-chou - 04 - Dialogues v2.ass Sun Oct 07 22:39:58 2012
@@ -44 +44 @@
-Dialogue: 4,0:00:02.63,0:00:03.31,Default,,0,0,0,,Sì. {oppure "va bene" o "capito" che secondo me non centra molto}
+Dialogue: 4,0:00:02.63,0:00:03.31,Default,,0,0,0,,Va bene.
@@ -48 +48 @@
-Dialogue: 4,0:00:14.63,0:00:15.74,Default,,0,0,0,,oh, va bene!
+Dialogue: 4,0:00:14.63,0:00:15.74,Default,,0,0,0,,Oh, va bene!
@@ -54,3 +54,3 @@
@kappa7194
kappa7194 / pezza.js
Created September 28, 2012 14:09
jQueryUI datepicker in AngularJS
angular.module("Poster", []).directive("datepicker", function () {
return function (scope, element, attributes) {
element.datepicker({
autoSize: true,
dateFormat: "dd MM yy",
onSelect: function (dateText) {
scope[$(this).attr("data-ng-model")] = dateText;
scope.$apply();
}
});
@kappa7194
kappa7194 / upload.sh
Created February 23, 2012 21:02
The script to monitor a folder for uploaded file and their compression.
#!/bin/bash
# Use the newline character
# as the field separator.
IFS=$'\n'
# The folder to watch.
dir="/home/bbf/upload/"
# Get the folder's content, recurively.
@kappa7194
kappa7194 / crash.html
Created January 17, 2012 13:13
Firefox crash
<!DOCTYPE html>
<html>
<head>
<title>Knockout</title>
<script src="jquery-1.7.1.js"></script>
<script src="knockout-2.0.0.js"></script>
<script>
function SeatReservation(name, meal) {
var self = this;
self.name = ko.observable(name);
@kappa7194
kappa7194 / cerca-errori.sql
Created December 12, 2011 11:22
Cerca errori
set nocount on
set statistics io on
set transaction isolation level read uncommitted
dbcc dropcleanbuffers
dbcc freeproccache
select
a.IdErrore
, a.Data
@kappa7194
kappa7194 / prestazioni.sql
Created December 12, 2011 09:39
Query per prestazioni
dbcc dropcleanbuffers
dbcc freeproccache
select a.IdErrore, a.Url, a.[Description], a.[File], a.Line
from dbo.Errori a
left join dbo.ErroriSql b on b.[Description] = a.[Description]
where b.[Description] is null and a.Data >= '2011-12-12' and a.Data < '2011-12-13' and a.Url like '%tracking%'
-------- START OF LOG --------
22:25:49 LOG: Core version: $Version: Talos_PC_distro; Talos-Windows-Final; 244371 2015-07-23 19:11:28 @builder14; Win32-Static-Final-Default$
22:25:49 LOG: Command: $
22:25:49 LOG: Initializing timer.
22:25:49 LOG: QueryPerformanceFrequency: 3515637
22:25:49 LOG: Timestamp: 2015/09/18 22:25:49
22:25:49 LOG: Binary name: Talos.exe
22:25:49 LOG: Binary soft path: Bin/
22:25:49 LOG: Binary hard path: C:\Program Files (x86)\Steam\steamapps\common\The Talos Principle\Bin\
@kappa7194
kappa7194 / gist:fe652bef133f6f511c10
Created March 26, 2015 16:32
git-for-windows/git — net-installer-preview-1 — git-sdk-64-installer-preview.7z.exe setup log
Cloning into 'git'...
remote: Counting objects: 210455, done.
Receiving objects: 100% (210455/210455), 66.17 MiB | 499.00 KiB/s, done.
Resolving deltas: 100% (154048/154048), done.
remote: Total 210455 (delta 0), reused 0 (delta 0), pack-reused 210455
Checking connectivity... done.
GIT_VERSION = 2.3.4.windows.2
* new build flags
CC credential-store.o
* new link flags