Skip to content

Instantly share code, notes, and snippets.

View derveloper's full-sized avatar
:shipit:

Tristan Leo derveloper

:shipit:
View GitHub Profile
$.ajax({
url: authurl,
async: false,
type: "GET",
dataType: "json",
statusCode: {
503: function(e) {
console.log(e);
if(typeof errorCallback === "function") {
errorCallback(e);
https://172.29.1.60:631/printers/HP_LaserJet_2100_Series_LPT_parport0_HPLIP
(function (global) {
var CommandList = (function () {
return {
test:function (term) {
term.echo("foo");
},
help:function (term,args) {
term.echo("help " + args.join(" "));
},
/**
* Created with JetBrains PhpStorm.
* User: vileda
* Date: 03.06.12
* Time: 22:23
* To change this template use File | Settings | File Templates.
*/
var twitter = require('ntwitter');
var Iconv = require('iconv').Iconv;
SET R1, data1
SET R2, data2
:loop IFE R1, R2
HLT
OUT [R1]
INC R1
SET IP, loop
:data1 DAT $"foobar\n", 0
@derveloper
derveloper / gist:4271419
Created December 12, 2012 20:40
wichtelscript
#!/usr/bin/env ruby
# encoding: utf-8
WICHTEL = []
mailtpl = `cat mailtpl.txt`
File.open('wichtel.txt', 'r').each do |f|
WICHTEL << f.strip
end
cat .zsh/theme
PROMPT=$'
%{$fg[blue]%}%/%{$reset_color%} $(git_prompt_info)$(bzr_prompt_info)%{$fg[white]%}[%n@%m]%{$reset_color%} %{$fg[white]%}[$(load_info)]$(ssh_connection)%{$reset_color%}
%{$fg_bold[black]%}>%{$reset_color%} '
PROMPT2="%{$fg_blod[black]%}%_> %{$reset_color%}"
GIT_CB="git::"
ZSH_THEME_SCM_PROMPT_PREFIX="%{$fg[green]%}["
ZSH_THEME_GIT_PROMPT_PREFIX=$ZSH_THEME_SCM_PROMPT_PREFIX$GIT_CB
# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout somewhen, delete
# this file and re-run i3-config-wizard(1).
#
# i3 config file (v4)
#
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
var Pad = require('ep_etherpad-lite/node/db/Pad.js').Pad;
var myPad = new Pad(myPadID);
pad.getLastEdit(); //undefined
pad.getLastEdit(function(err, meta, stamp) {
err; //null
meta; //null
stamp; //undefined
});
function ssh_connection() {
if [[ -n $SSH_CONNECTION ]]; then
echo "%{$fg_bold[red]%}(ssh) "
fi
}