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
CREATE DEFINER=`root`@`localhost` PROCEDURE `generate_tags`() | |
BEGIN | |
DECLARE num INT; -- Number of tags for current row | |
DECLARE new_tag VARCHAR(256); | |
DECLARE new_tags VARCHAR(256); -- Tags for current row | |
DECLARE current_id INT; -- Current row id | |
DECLARE done INT DEFAULT 0; -- Cursor loop flag | |
DECLARE thought_rows CURSOR FOR SELECT id FROM thoughts; |
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
$ mysql_upgrade | |
Looking for 'mysql' as: mysql | |
Looking for 'mysqlcheck' as: mysqlcheck | |
Running 'mysqlcheck' with connection arguments: '--port=3306' '--socket=/var/run/mysqld/mysqld.sock' | |
Running 'mysqlcheck' with connection arguments: '--port=3306' '--socket=/var/run/mysqld/mysqld.sock' | |
bone_webben.banned_words OK | |
bone_webben.deleted_thoughts OK | |
bone_webben.needs_moderation_thoughts OK | |
bone_webben.reported_thoughts OK | |
bone_webben.rooms OK |
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
$fn = 99; | |
base_height = 5; // Height of base plate | |
hz = -2; // Extra height of holes | |
hh = abs(hz)*2 + base_height; // Height of hole cut cylinder | |
module main() { | |
difference() { | |
base(); | |
mounting_holes(); |
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
# | |
# DO NOT EDIT THIS FILE | |
# | |
# It is automatically generated by grub-mkconfig using templates | |
# from /etc/grub.d and settings from /etc/default/grub | |
# | |
### BEGIN /etc/grub.d/00_header ### | |
if [ -s $prefix/grubenv ]; then | |
set have_grubenv=true |
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
bjarni | livets ord stod och höll låda på celsiustorget | |
bjarni | högt som tusan och uppe på en liten trappstege | |
bjarni | min morsa var less på dem, hon jobbar där intill | |
bjarni | jag blev sugen på att göra som med tanten på piratdemonstrationen :) | |
jeppe | det där har jag ett svagt minne av | |
jeppe | vad var det som gjordes? | |
bjarni | jeppe: det var en tant som skällde ut en kille som stod med en skylt där det stod "FRA ÄR EN HORA" | |
bjarni | jeppe: hon menade, mycket högljutt och förargat, att det var könsförnedrande... | |
jeppe | ah, just det ja, för att hora var ett så hemskt ord | |
bjarni | exakt, att han hade mage att säga så om kvinnor! |
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
Traceback (most recent call last): | |
File "/opt/sublime_text/sublime_plugin.py", line 543, in run_ | |
return self.run(edit, **args) | |
File "/home/smiler/.config/sublime-text-3/Packages/SublimeREPL/text_transfer.py", line 143, in run | |
SENDERS[external_id](rv.repl, text, self.view, rv) | |
File "/home/smiler/.config/sublime-text-3/Packages/SublimeREPL/text_transfer.py", line 17, in default_sender | |
repl.write(text) | |
File "/home/smiler/.config/sublime-text-3/Packages/SublimeREPL/repls/sublimeutop_repl.py", line 141, in write | |
location += len(line) + 1 | |
TypeError: unsupported operand type(s) for +=: 'NoneType' and 'int' |
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
#include <unistd.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <math.h> | |
static void die(char *str) | |
{ | |
perror(str); |
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
let rec fib_aux n a b = | |
match n with | |
| 0 -> a | |
| _ -> fib_aux (n - 1) b (a+b) | |
let fib n = fib_aux n 0 1 |
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
<?php | |
/* | |
* Plugin Name: Bleh | |
* Description: Add bleh, blark or something to end of each sentence. | |
* Author: Christian Axelsson | |
* Version: 0.1 | |
*/ | |
function bleh_blehify_content( $content ) { | |
$sentences = array_filter( explode( ".", $content ), "strlen" ); |