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
import { readFileSync } from 'fs' | |
import OpenAI from 'openai'; | |
import { ChatCompletionMessageParam } from 'openai/resources/chat'; | |
import inquirer from 'inquirer'; | |
import input from '@inquirer/input'; | |
import { | |
Product, |
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
deb http://packages.linuxmint.com/ isadora main upstream import | |
deb http://archive.ubuntu.com/ubuntu/ lucid main restricted universe multiverse | |
deb http://archive.ubuntu.com/ubuntu/ lucid-updates main restricted universe multiverse | |
deb http://security.ubuntu.com/ubuntu/ lucid-security main restricted universe multiverse | |
deb http://archive.canonical.com/ubuntu/ lucid partner | |
deb http://packages.medibuntu.org/ lucid free non-free | |
deb http://dl.google.com/linux/deb/ stable non-free | |
deb http://tw.archive.ubuntu.com/ubuntu/ lucid main restricted universe multiverse | |
deb http://debian.nctu.edu.tw/ubuntu/ lucid main restricted universe multiverse |
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
#### Contents of the preconfiguration file (for lenny) | |
### Localization | |
# Locale sets language and country. | |
d-i debian-installer/locale string en_US.UTF-8 | |
# Keyboard selection. | |
#d-i console-tools/archs select at | |
d-i console-keymaps-at/keymap select us | |
# Example for a different keyboard architecture | |
#d-i console-keymaps-usb/keymap select mac-usb-us |
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
# GTK - The GIMP Toolkit | |
# Copyright (C) 2002 Owen Taylor | |
# | |
# This library is free software; you can redistribute it and/or | |
# modify it under the terms of the GNU Lesser General Public | |
# License as published by the Free Software Foundation; either | |
# version 2 of the License, or (at your option) any later version. | |
# | |
# This library is distributed in the hope that it will be useful, | |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
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
.PHONY: all | |
all: | |
mv matlab.png /usr/share/icons/hicolor/256x256/apps/ | |
mv matlab.desktop /usr/share/applications/ | |
echo alias matlab=\'matlab -nodisplay\' >> /etc/bash.bashrc | |
update-menus |
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 emacs --script | |
(require 'cl) | |
(defun foreach (alist func) | |
(while alist | |
(progn | |
(funcall func (car alist)) | |
(setq alist (cdr alist))) | |
)) |
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
var Func = function(e) { | |
"use strict"; | |
var a, t = $("#ECPayPayment"), | |
n = e.sdkVersion, | |
c = e.token, | |
i = e.language, | |
d = e.cliPriKey, | |
r = e.serPubKey, | |
s = e.keyID, | |
p = e.uuid, |
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 perl | |
use LWP::UserAgent; | |
use HTTP::Request; | |
use UNIVERSAL::dump; | |
use XML::Simple; | |
use Data::Dumper; | |
use YAML qw(LoadFile); | |
$config = LoadFile "$ENV{HOME}/.posterous"; |
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
class Singleton(object): | |
def __new__(cls): | |
if not cls.singleton: | |
cls.singleton = object.__new__(cls) | |
return cls.singleton | |
class Foo(Singleton): | |
singleton = None | |
pass |
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
class Hooks(object): | |
@staticmethod | |
def before(name): | |
def decorator(func): | |
def wrap(self, *args): | |
self.__getattribute__(name)() | |
func(self, *args) | |
return wrap | |
return decorator |
NewerOlder