repo
string
pr_number
int64
filename
string
file_before
string
file_after
string
maximeh/lacie-uboot
1
lacie_uboot/ubootshell.py
#! /usr/bin/python -B # -*- coding: utf-8 -*- ''' ubootshell allow you to discuss with the netconsol of u-boot. ''' # Author: Maxime Hadjinlian (C) 2013 # maxime.hadjinlian@gmail.com # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permi...
#! /usr/bin/python -B # -*- coding: utf-8 -*- ''' ubootshell allow you to discuss with the netconsol of u-boot. ''' # Author: Maxime Hadjinlian (C) 2013 # maxime.hadjinlian@gmail.com # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permi...
jbevain/cecil
949
Mono.Cecil/BaseAssemblyResolver.cs
// // Author: // Jb Evain (jbevain@gmail.com) // // Copyright (c) 2008 - 2015 Jb Evain // Copyright (c) 2008 - 2011 Novell, Inc. // // Licensed under the MIT/X11 license. // using System; using System.Collections.Generic; using System.IO; using System.Reflection; using System.Text; using Mono.Collections.Generic; ...
// // Author: // Jb Evain (jbevain@gmail.com) // // Copyright (c) 2008 - 2015 Jb Evain // Copyright (c) 2008 - 2011 Novell, Inc. // // Licensed under the MIT/X11 license. // using System; using System.Collections.Generic; using System.IO; using System.Reflection; using System.Text; using Mono.Collections.Generic; ...
lukeredpath/simpleconfig
23
test/test_helper.rb
require 'rubygems' require 'test/unit' require 'mocha' $:.unshift File.expand_path('../../lib', __FILE__) require 'simple_config'
require 'rubygems' require 'test/unit' require 'mocha' require 'mocha/mini_test' $:.unshift File.expand_path('../../lib', __FILE__) require 'simple_config'
kof/xLazyLoader
2
src/jquery.xLazyLoader.js
/* * xLazyLoader 1.5 - Plugin for jQuery * * Load js, css and images asynchron and get different callbacks * * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses. * * Depends: * jquery.js * * Copyright (...
/* * xLazyLoader 1.5 - Plugin for jQuery * * Load js, css and images asynchron and get different callbacks * * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses. * * Depends: * jquery.js * * Copyright (...
Uninett/PyMetric
10
model.py
import networkx as nx from pajek import read_pajek import utils import distutils.version class Model: def __init__(self, graph, config, debug=False): self.graph = graph self.config = config self.debug = debug self.G = self._make_weighted_copy() self._refresh_betweenness() self.l...
import networkx as nx from pajek import read_pajek import utils import distutils.version class Model: def __init__(self, graph, config, debug=False): self.graph = graph self.config = config self.debug = debug self.G = self._make_weighted_copy() self._refresh_betweenness() self.l...
nateleavitt/infusionsoft
65
lib/infusionsoft/client/invoice.rb
module Infusionsoft class Client # The Invoice service allows you to manage eCommerce transactions. module Invoice # Creates a blank order with no items. # # @param [Integer] contact_id # @param [String] description the name this order will display # @param [Date] order_date ...
module Infusionsoft class Client # The Invoice service allows you to manage eCommerce transactions. module Invoice # Creates a blank order with no items. # # @param [Integer] contact_id # @param [String] description the name this order will display # @param [Date] order_date ...
gunderwonder/postmark-swiftmailer
1
postmark_swiftmailer.php
<?php /** * @licence http://www.opensource.org/licenses/bsd-license.php New BSD Licence * @author Øystein Riiser Gundersen <oysteinrg@gmail.com> */ /** * A SwiftMailer transport implementation for the * {@link http://postmarkapp.com/ Postmark} email delivery API for transactional * email. * * Postmark is *n...
<?php /** * @licence http://www.opensource.org/licenses/bsd-license.php New BSD Licence * @author Øystein Riiser Gundersen <oysteinrg@gmail.com> */ /** * A SwiftMailer transport implementation for the * {@link http://postmarkapp.com/ Postmark} email delivery API for transactional * email. * * Postmark is *n...
animaux/lang_german
1
lang/lang.de.php
<?php $about = array( 'name' => 'Deutsch', 'author' => array( 'name' => 'Nils Hörrmann', 'email' => 'post@nilshoerrmann.de', 'website' => 'http://www.nilshoerrmann.de' ), 'release-date' => '2010-02-09', ); /** * Symphony Core */ $dictionary = array( '"%1$s" contains invalid XML. The follo...
<?php $about = array( 'name' => 'Deutsch', 'author' => array( 'name' => 'Nils Hörrmann', 'email' => 'post@nilshoerrmann.de', 'website' => 'http://www.nilshoerrmann.de' ), 'release-date' => '2010-02-09', ); /** * Symphony Core */ $dictionary = array( '"%1$s" contains invalid XML. The follo...
semsol/arc2
147
extractors/ARC2_TwitterProfilePicExtractor.php
<?php /* @homepage <https://github.com/semsol/arc2> @license W3C Software License and GPL class: ARC2 Extractor author: Benjamin Nowack version: 2010-11-16 */ ARC2::inc('RDFExtractor'); class ARC2_TwitterProfilePicExtractor extends ARC2_RDFExtractor { function __construct($a, &$caller) { parent::__const...
<?php /* @homepage <https://github.com/semsol/arc2> @license W3C Software License and GPL class: ARC2 Extractor author: Benjamin Nowack version: 2010-11-16 */ ARC2::inc('RDFExtractor'); class ARC2_TwitterProfilePicExtractor extends ARC2_RDFExtractor { public function __construct($a, &$caller) { ...
pycco-docs/pycco
113
tests/test_pycco.py
from __future__ import absolute_import import copy import os import os.path import tempfile import time import pytest import pycco.generate_index as generate_index import pycco.main as p from hypothesis import assume, example, given from hypothesis.strategies import booleans, choices, lists, none, text from pycco.la...
from __future__ import absolute_import import copy import os import os.path import tempfile import time import pytest import pycco.generate_index as generate_index import pycco.main as p from hypothesis import assume, example, given from hypothesis.strategies import booleans, lists, none, text, sampled_from, data fr...
rc0/mairix
2
search.c
/* mairix - message index builder and finder for maildir folders. ********************************************************************** * Copyright (C) Richard P. Curnow 2002,2003,2004,2005,2006 * * This program is free software; you can redistribute it and/or modify * it under the terms of version 2 of the G...
/* mairix - message index builder and finder for maildir folders. ********************************************************************** * Copyright (C) Richard P. Curnow 2002,2003,2004,2005,2006 * * This program is free software; you can redistribute it and/or modify * it under the terms of version 2 of the G...
jbroadway/sitellite
12
inc/app/sitellite/boxes/util/snippets/access.php
sitellite_access = public sitellite_action = on sitellite_status = approved sitellite_inline = on
; <?php /* sitellite_access = master sitellite_action = on sitellite_status = approved sitellite_inline = on ; */
sidorares/nodejs-mysql-native
65
examples/websql.js
// websql example adapted from http://html5demos.com/database-rollback // original code (c) var webdb = require('../lib/mysql-native/wrappers/websql'); var db = webdb.openDatabase('test'); db.transaction(function (tx) { tx.executeSql("CREATE TABLE `foo` (`id` int(20) DEFAULT NULL, `text` blob ) ENGINE=InnoDB"); ...
// websql example adapted from http://html5demos.com/database-rollback // original code (c) var webdb = require('../lib/mysql-native/wrappers/websql'); var util = require('util'); var db = webdb.openDatabase('test'); db.transaction(function (tx) { tx.executeSql("CREATE TABLE `foo` (`id` int(20) DEFAULT NULL, `text...
votesmart/python-votesmart
8
votesmart.py
""" Python library for interacting with Project Vote Smart API. Project Vote Smart's API (http://www.votesmart.org/services_api.php) provides rich biographical data, including data on votes, committee assignments, and much more. """ __author__ = "James Turk <jturk@sunlightfoundation.com>" __version__ = "0...
""" Python library for interacting with Project Vote Smart API. Project Vote Smart's API (http://www.votesmart.org/services_api.php) provides rich biographical data, including data on votes, committee assignments, and much more. """ __author__ = "James Turk <jturk@sunlightfoundation.com>" __version__ = "0...
bluedynamics/bda.ldap
2
setup.py
from setuptools import setup, find_packages import sys, os version = '2.0' shortdesc = "LDAP convenience library" longdesc = open(os.path.join(os.path.dirname(__file__), 'README.rst')).read() longdesc += open(os.path.join(os.path.dirname(__file__), 'LICENSE.rst')).read() setup(name='bda.ldap', version=version, ...
from setuptools import setup, find_packages import sys, os version = '2.0' shortdesc = "LDAP convenience library" longdesc = open(os.path.join(os.path.dirname(__file__), 'README.rst')).read() longdesc += open(os.path.join(os.path.dirname(__file__), 'LICENSE.rst')).read() setup(name='bda.ldap', version=version, ...
civascu/hue
1
apps/about/setup.py
# Licensed to Cloudera, Inc. under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. Cloudera, Inc. licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file ex...
# Licensed to Cloudera, Inc. under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. Cloudera, Inc. licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file ex...
mtarnovan/settingslogic
1
lib/settingslogic.rb
require "yaml" require "erb" # A simple settings solution using a YAML file. See README for more information. class Settingslogic < Hash class MissingSetting < StandardError; end class << self def source(value = nil) if value.nil? @source else @source = value end e...
require "yaml" require "erb" # A simple settings solution using a YAML file. See README for more information. class Settingslogic < Hash class MissingSetting < StandardError; end class << self def source(value = nil) if value.nil? @source else @source = value end e...
jehiah/json2csv
32
main_test.go
package main import ( "bytes" "encoding/csv" "github.com/bmizerany/assert" "io/ioutil" "log" "os" "testing" ) func TestGetTopic(t *testing.T) { log.SetOutput(ioutil.Discard) defer log.SetOutput(os.Stdout) reader := bytes.NewBufferString(`{"a": 1, "b": "asdf\n"} {"a" : null}`) buf := bytes.NewBuffer([]byte...
package main import ( "bytes" "encoding/csv" "io/ioutil" "log" "os" "testing" "github.com/bmizerany/assert" ) func TestGetTopic(t *testing.T) { log.SetOutput(ioutil.Discard) defer log.SetOutput(os.Stdout) reader := bytes.NewBufferString(`{"a": 1, "b": "asdf\n"} {"a" : null}`) buf := bytes.NewBuffer([]byt...
reid/upstage
2
build/upstage-min.js
YUI.add("upstage-blank",function(h){var a=h.Upstage,g="upstage-curtain",b="blank:on",e="blank:off",d,f=false;a.on("start",function(){var i=h.Node.create("<div id='"+g+"'></div>");i.setStyles({background:"#000",position:"absolute",top:0,left:0,width:"100%",height:"100%",zIndex:"100",display:"none"});h.one("body").append...
YUI.add("upstage-controls",function(e){var a=e.Upstage,c=e.Node.create,d="boundingBox";function b(){b.superclass.constructor.apply(this,arguments);}b.NAME="controls";b.ATTRS={height:{value:37},total:{value:e.all(".slide").size(),readOnly:true},footer:{value:""},slide:{value:1}};b.HTML_PARSER={footer:function(f){return ...
jgehring/rsvndump
10
web/index.html
<!DOCTYPE html> <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="content-type"> <meta name="keywords" content="rsvndump, rsvndump homepage, Subversion, dump, remote, backup"> <link href="stylesheet.css" rel="stylesheet" type="text/css"> <title>rsvndump - remote Subversion repos...
<!DOCTYPE html> <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="content-type"> <meta name="keywords" content="rsvndump, rsvndump homepage, Subversion, dump, remote, backup"> <link href="stylesheet.css" rel="stylesheet" type="text/css"> <title>rsvndump - remote Subversion repos...
jk2l/redmine_time_display
2
lib/issue_patch.rb
require_dependency 'issue' module IssuePatch def self.included(base) # :nodoc: base.extend(ClassMethods) base.send(:include, InstanceMethods) # Same as typing in the class base.class_eval do unloadable end end module ClassMethods end module InstanceMethods def helper_spent...
require_dependency 'issue' module IssuePatch def self.included(base) # :nodoc: base.extend(ClassMethods) base.send(:include, InstanceMethods) # Same as typing in the class base.class_eval do unloadable end end module ClassMethods end module InstanceMethods def helper_spent...
rails/acts_as_list
13
init.rb
$:.unshift "#{File.dirname(__FILE__)}/lib" require 'active_record/acts/list' ActiveRecord::Base.class_eval { include ActiveRecord::Acts::List }
$:.unshift "#{File.dirname(__FILE__)}/lib" require 'bundler/setup' require 'active_record' require 'active_record/acts/list' ActiveRecord::Base.class_eval { include ActiveRecord::Acts::List }
nbari/DALMP
4
tests/test_sessions_base.php
<?php /** * abstract class to test sessions instances * * @author Nicolas Embriz <nbari@dalmp.com> * @package DALMP * @license BSD License * @version 3.0 */ abstract class test_sessions_base extends PHPUnit_Framework_TestCase { abstract public function testAttributes(); public function getSessionData() { ...
<?php /** * abstract class to test sessions instances * * @author Nicolas Embriz <nbari@dalmp.com> * @package DALMP * @license BSD License * @version 3.0 */ abstract class test_sessions_base extends PHPUnit_Framework_TestCase { abstract public function testAttributes(); public function getSessionData() { ...
ptarjan/node-cache
110
test.js
/* global describe, it, before, beforeEach, afterEach */ 'use strict'; var chai = require('chai'), expect = chai.expect, sinon = require('sinon'), sinonChai = require('sinon-chai'), Cache = require('./index').Cache, cache = new Cache(), clock; chai.use(sinonChai); describe('node-cache', func...
/* global describe, it, before, beforeEach, afterEach */ 'use strict'; var chai = require('chai'), expect = chai.expect, sinon = require('sinon'), sinonChai = require('sinon-chai'), Cache = require('./index').Cache, cache = new Cache(), clock; chai.use(sinonChai); describe('node-cache', func...
JessicaMS/SDL-Stars
1
main.cpp
/* Stars2 Application by Jessica Seibert 1/31/09/ A second version of my prior Stars application. This time, the stars are drawn with a more platform independent SDL_FillRect, and is encapsulated into a single header file. This header is developed here independently from my Blocks application that utilize...
/* Stars2 Application by Jessica Seibert 1/31/09/ A second version of my prior Stars application. This time, the stars are drawn with a more platform independent SDL_FillRect, and is encapsulated into a single header file. _._ . ` . . `. .________. `""``""' ` ` ...
jney/jquery.pageless
17
example.rails3/app/models/article.rb
class Article < ActiveRecord::Base end
class Article < ActiveRecord::Base attr_accessible :title, :body, :author end
setiQuest/setiCode
1
src/sse-pkg/util/sonataInfoDisplay/screen.cpp
/* * screen.cpp * * Project: OpenSonATA * Version: 1.0 * Author: Jon Richards (current maintainer) * The OpenSonATA code is the result of many programmers over many * years. * * Manages the curses screen. * * Copyright 2010 The SETI Institute * * Licensed under the Apache License, Versio...
/* * screen.cpp * * Project: OpenSonATA * Version: 1.0 * Author: Jon Richards (current maintainer) * The OpenSonATA code is the result of many programmers over many * years. * * Manages the curses screen. * * Copyright 2010 The SETI Institute * * Licensed under the Apache License, Versio...
cehoffman/sinatra-respond_to
23
lib/sinatra/respond_to/version.rb
module Sinatra module RespondTo Version = '0.9.0' end end
module Sinatra module RespondTo Version = '0.9.1' end end
josegonzalez/cakephp-wysiwyg
8
View/Helper/WysiwygHelper.php
<?php /** * Wysiwyg is a helper for outputting . * This helper REQUIRES the installation files for the wysiwyg helpers you will use * * @package cake * @subpackage cake.app.plugins.wysiwyg.views.helpers * @author: Jose Diaz-Gonzalez * @version: 0.1 * @email: support@savant.be * @site...
<?php /** * Wysiwyg is a helper for outputting . * This helper REQUIRES the installation files for the wysiwyg helpers you will use * * @package cake * @subpackage cake.app.plugins.wysiwyg.views.helpers * @author: Jose Diaz-Gonzalez * @version: 0.1 * @email: support@savant.be * @site...
atmos/rack_hoptoad
3
lib/rack/hoptoad.rb
require 'rack' require 'erb' require 'toadhopper' module Rack # Catches all exceptions raised from the app it wraps and # posts the results to hoptoad. class Hoptoad VERSION = '0.1.6' class Error < StandardError; end attr_accessor :api_key, :environment_filters, :report_under, :rack_environment, :n...
require 'rack/hoptoad_version' require 'rack' require 'erb' require 'toadhopper' module Rack # Catches all exceptions raised from the app it wraps and # posts the results to hoptoad. class Hoptoad class Error < StandardError; end attr_accessor :api_key, :environment_filters, :report_under, :rack_enviro...
ialexi/hedwig
3
docs/build/articles/controls/scroll/touch.html
<html><head><title>Docs </title><meta http-equiv: 'Content-Type' content="text/html; charset=utf-8" /> <style type="text/css"> body { font-family: "Lucida Sans", "Lucida Grande", Verdana, Arial, sans-serif; margin: 0px; margin-bottom:1em; font-family: sans-serif; font-size: 10px; line-height:1...
<html><head><title>Docs </title><meta http-equiv: 'Content-Type' content="text/html; charset=utf-8" /> <style type="text/css"> body { font-family: "Lucida Sans", "Lucida Grande", Verdana, Arial, sans-serif; margin: 0px; margin-bottom:1em; font-family: sans-serif; font-size: 10px; line-height:1...
rodp/jquery.behavior
1
jquery.behavior.js
/* * jquery.behavior JavaScript Library v0.1 * http://rodpetrovic.com/jquery/behavior * * Copyright (c) 2009 Rodoljub Petrović * Licensed under the MIT * http://www.opensource.org/licenses/mit-license.php * * Date: 2009-12-13 */ (function ($) { $.fn.behavior = function () { var element =...
/* * jquery.behavior JavaScript Library v2.0 * http://rodpetrovic.com/jquery/behavior * * Copyright 2010, Rodoljub Petrović * Licensed under the MIT * http://www.opensource.org/licenses/mit-license.php * * Contributors: * - Matjaž Lipuš * * Date: 2011-05-15 */ /*jslint white: true, onevar: tr...
ellenoneill/lootjestrekmachine
4
functions.php
<?php session_start(); ob_start(); $sql_username = ""; $sql_password = ""; $sql_host = ""; $sql_dbname = ""; $config['mail'] = ""; //Jouw e-mailadres $config['website'] = ""; //De url naar je website mysql_connect($sql_host, $sql_username, $sql_password); mysql_select_db($sql_dbname); function keygen($i) ...
<?php session_start(); ob_start(); error_reporting( E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_ERROR | E_WARNING | E_PARSE | E_USER_ERROR | E_USER_WARNING | E_RECOVERABLE_ERROR ); $sql_username = ""; $sql_password = ""; $sql_host = ""; $sql_dbname = ""; $config['mail'] = ""; //Jouw e-mailadres $config[...
akm/selectable_attr_rails
1
lib/selectable_attr_rails/helpers/check_box_group_helper.rb
require 'selectable_attr_rails/helpers/abstract_selection_helper' module SelectableAttrRails::Helpers module CheckBoxGroupHelper class Builder < SelectableAttrRails::Helpers::AbstractSelectionBuilder def initialize(object, object_name, method, options, template) super(object, object_name, method, o...
require 'selectable_attr_rails/helpers/abstract_selection_helper' module SelectableAttrRails::Helpers module CheckBoxGroupHelper class Builder < SelectableAttrRails::Helpers::AbstractSelectionBuilder def initialize(object, object_name, method, options, template) super(object, object_name, method, o...
efoxepstein/stupid-machines
1
TuringMachineWithNoSemicolons.java
/** * @author Eli Fox-Epstein */ public class TuringMachineWithNoSemicolons { /* ARGS: * 0: tape * 1: state * 2: current index * 3: transition table (prefix "ABCDE" means at state A, if read a B, move C, write D, go to state E) * 4: reject state * 5: accept state * ...
/** * @author Eli Fox-Epstein */ public class TuringMachineWithNoSemicolons { /* ARGS: * 0: tape * 1: state * 2: current index * 3: transition table (prefix "ABCDE" means at state A, if read a B, move C, write D, go to state E) * 4: reject state * 5: accept state * ...
jimhourihan/gto
1
plugins/python/src/gto/gtoWriter.cpp
// // Copyright (c) 2009, Tweak Software // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions // are met: // // * Redistributions of source code must retain the above // copyright notice, th...
// // Copyright (c) 2009, Tweak Software // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions // are met: // // * Redistributions of source code must retain the above // copyright notice, th...
openscriptures/HebrewLexicon
6
sinri/HebrewStrongDictionary.html
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Hebrew Strong Dictionary</title> <script src="//cdn.bootcss.com/jquery/3.2.0/jquery.min.js"></script> <script type="text/javascript"> var dict={}; var dict_mapping={}; $(document).ready(()=>{ $.ajax({ url:'./json/StrongHebrewDictionary.json', ...
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Hebrew Strong Dictionary</title> <script src="./js/jquery.min.js"></script> <script src="./json/StrongHebrewDictionary.json"></script> <script type="text/javascript"> function query_hebrew(){ let heb=$("#heb").val(); display_strong(dict_mapping[...
xkp/XKP
27
third_party/ve/Excess.CompilerTask/ExcessCompilerTask.cs
using System; using System.IO; using System.Collections.Generic; using System.Globalization; using System.Reflection; using Microsoft.Build.Utilities; using Microsoft.Build.Framework; using Microsoft.Build.BuildEngine; using ExcessCompiler; using System.Xml.Linq; namespace Excess.CompilerTasks { /////////////////////...
using System; using System.Diagnostics; using System.IO; using System.Collections.Generic; using System.Globalization; using System.Reflection; using Microsoft.Build.Utilities; using Microsoft.Build.Framework; using Microsoft.Build.BuildEngine; using ExcessCompiler; using System.Xml.Linq; using Newtonsoft.Json; namesp...
MSch/devise-twitter
4
lib/devise/twitter/version.rb
module Devise module Twitter VERSION = "0.1.2.pre" end end
module Devise module Twitter VERSION = "0.1.2" end end
simula67/Coding
1
c/startha.c
#include <stdio.h> #include <unistd.h> #include <stdlib.h> #include <signal.h> int main() { signal(SIGCHLD, SIG_IGN); extern char **environ; printf("Starting artha...\n"); pid_t artha_fork; if( (artha_fork=fork()) < 0 ) { fprintf(stderr,"Failed to fork\n"); exit(1); } if(artha_fork>0) { printf("Succ...
#include <stdio.h> #include <unistd.h> #include <stdlib.h> #include <signal.h> int main() { signal(SIGCHLD, SIG_IGN); // Reparent to init extern char **environ; printf("Starting artha...\n"); pid_t artha_fork; if( (artha_fork=fork()) < 0 ) { fprintf(stderr,"Failed to fork\n"); exit(1); } if(artha_fork>0) ...
kevinj/archive.tar
1
tests/index.html
<html> <head> <script src="../lib/Archive/Tar.js"> </script> <script src="../lib/Archive/Tar/File.js"> </script> <script src="lib/JSAN.js"> </script> <pre><script> try { new JSAN('lib').use("Data.Dump"); new JSAN('lib').use("Test.More"); new JSAN('../lib').use("Archive.Tar"); ...
<html> <head> <script src="../lib/Archive/Tar.js"> </script> <script src="../lib/Archive/Tar/File.js"> </script> <script src="lib/JSAN.js"> </script> <pre><script> try { new JSAN('lib').use("Data.Dump"); new JSAN('lib').use("Test.More"); new JSAN('../lib').use("Archive.Tar"); ...
moztw/gfx.tw
17
application/libraries/Auth/OpenID/MySQLStore.php
<?php /** * A MySQL store. * * @package OpenID */ /** * Require the base class file. */ require_once "Auth/OpenID/SQLStore.php"; /** * An SQL store that uses MySQL as its backend. * * @package OpenID */ class Auth_OpenID_MySQLStore extends Auth_OpenID_SQLStore { /** * @access private */ f...
<?php /** * A MySQL store. * * @package OpenID */ /** * Require the base class file. */ require_once "Auth/OpenID/SQLStore.php"; /** * An SQL store that uses MySQL as its backend. * * @package OpenID */ class Auth_OpenID_MySQLStore extends Auth_OpenID_SQLStore { /** * @access private */ f...
dandean/Ajax.JSONRequest
7
jsonp.js
/* JSON-P implementation for Prototype.js somewhat by Dan Dean (http://www.dandean.com) * * *HEAVILY* based on Tobie Langel's version: http://gist.github.com/145466. * Might as well just call this an iteration. * * This version introduces: * - Partial integration with Ajax.Responders (Thanks to @sr3d for the ki...
/* JSON-P implementation for Prototype.js somewhat by Dan Dean (http://www.dandean.com) * * *HEAVILY* based on Tobie Langel's version: http://gist.github.com/145466. * Might as well just call this an iteration. * * This version introduces: * - Support for predefined callbacks (Necessary for OAuth signed request...
ledermann/rails-settings
105
lib/rails-settings/setting_object.rb
module RailsSettings class SettingObject < ActiveRecord::Base self.table_name = 'settings' belongs_to :target, :polymorphic => true validates_presence_of :var, :target_type validate do errors.add(:value, "Invalid setting value") unless value.is_a? Hash unless _target_class.default_setti...
module RailsSettings class SettingObject < ActiveRecord::Base self.table_name = 'settings' belongs_to :target, :polymorphic => true validates_presence_of :var, :target_type validate do errors.add(:value, "Invalid setting value") unless value.is_a? Hash unless _target_class.default_setti...
mitsuhiko/classy
16
tests/core.js
test('Classy exists', function() { ok(typeof(Class) == 'function', 'Class is a function defined globally'); }); test('$noConflict unsets Class from window', function() { var original = Class; var Classy = Class.$noConflict(); equals(typeof(Class), 'undefined', '$noConflict unsets Class from window');...
test('Classy exists', function() { ok(typeof(Class) == 'function', 'Class is a function defined globally'); }); test('$noConflict unsets Class from window', function() { var original = Class; var Classy = Class.$noConflict(); equals(typeof(Class), 'undefined', '$noConflict unsets Class from window');...
sassanp/pynetinfo
4
iface.c
/* Pynetinfo - A python module for controlling linux network interfaces Copyright (C) 2010 Sassan Panahinejad (sassan@sassan.me.uk) www.sassan.me.uk pypi.python.org/pypi/pynetinfo/ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public...
/* Pynetinfo - A python module for controlling linux network interfaces Copyright (C) 2010 Sassan Panahinejad (sassan@sassan.me.uk) www.sassan.me.uk pypi.python.org/pypi/pynetinfo/ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public...
jtauber-archive/django-email-confirmation
9
emailconfirmation/models.py
from datetime import datetime, timedelta from random import random from django.conf import settings from django.db import models, IntegrityError from django.template.loader import render_to_string from django.core.urlresolvers import reverse, NoReverseMatch from django.contrib.sites.models import Site from django.cont...
from datetime import datetime, timedelta from random import random from django.conf import settings from django.db import models, IntegrityError from django.template.loader import render_to_string from django.core.urlresolvers import reverse, NoReverseMatch from django.contrib.sites.models import Site from django.cont...
rjbs/WWW-AdventCalendar
4
share/templates/style.css
%# vim:set ft=mason: <%args> %color </%args> body { color: <% $color{bodyFG} %>; background: <% $color{bodyBG} %>; font-family: verdana, tahoma, sans-serif; } #contentwrapper { width: 75%; min-width: 800px; margin-left: auto; margin-right: auto; margin-top: 10px auto; margin-bottom: 10px; backgroun...
%# vim:set ft=mason: <%args> %color </%args> body { color: <% $color{bodyFG} %>; background: <% $color{bodyBG} %>; font-family: verdana, tahoma, sans-serif; } #contentwrapper { width: 75%; min-width: 800px; margin-left: auto; margin-right: auto; margin-top: 10px auto; margin-bottom: 10px; backgroun...
jakubkulhan/couchdb-php
1
lib/CouchDBFsockConnector.php
<?php require_once dirname(__FILE__) . '/CouchDBConnector.php'; /** * Connector using fsockopen() function */ class CouchDBFsockConnector implements CouchDBConnector { /** * End of line */ const EOL = "\r\n"; /** * User agent */ private $ua = 'CouchDBFsockConnector'; /** ...
<?php require_once dirname(__FILE__) . '/CouchDBConnector.php'; /** * Connector using fsockopen() function */ class CouchDBFsockConnector implements CouchDBConnector { /** * End of line */ const EOL = "\r\n"; /** * User agent */ private $ua = 'CouchDBFsockConnector'; /** ...
andregoncalves/twitter-nodejs-websocket
5
index.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html> <head> <script src='http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js'></script> <script> $(document).ready(function(){ if(!("WebSocket" in window)) { alert("Sorry, the build of your ...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html> <head> <script src='http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js'></script> <script> $(document).ready(function(){ if(!("WebSocket" in window)) { alert("Sorry, the build of your ...
ileitch/hijack
16
lib/hijack/gdb.rb
# Based on gdb.rb by Jamis Buck, thanks Jamis! module Hijack class GDB def initialize(pid) @pid = pid @verbose = Hijack.options[:debug] @exec_path = File.join(RbConfig::CONFIG['bindir'], RbConfig::CONFIG['RUBY_INSTALL_NAME'] + RbConfig::CONFIG['EXEEXT']) attach_outside_gc end def...
# Based on gdb.rb by Jamis Buck, thanks Jamis! module Hijack class GDB def initialize(pid) @pid = pid @verbose = Hijack.options[:debug] @exec_path = File.join(RbConfig::CONFIG['bindir'], RbConfig::CONFIG['RUBY_INSTALL_NAME'] + RbConfig::CONFIG['EXEEXT']) attach_outside_gc end def...
winston/google_visualr_app
2
app/controllers/examples/interactive_controller.rb
class Examples::InteractiveController < ApplicationController layout "default" # http://code.google.com/apis/chart/interactive/docs/gallery/annotatedtimeline.html#Example def annotated_time_line data_table = GoogleVisualr::DataTable.new data_table.new_column('date' , 'Date') data_table.new_column(...
class Examples::InteractiveController < ApplicationController layout "default" # http://code.google.com/apis/chart/interactive/docs/gallery/annotatedtimeline.html#Example def annotated_time_line data_table = GoogleVisualr::DataTable.new data_table.new_column('date' , 'Date') data_table.new_column(...
derkork/intellij-leiningen-plugin
39
src/de/janthomae/leiningenplugin/run/LeiningenRunConfiguration.java
package de.janthomae.leiningenplugin.run; import com.intellij.execution.ExecutionException; import com.intellij.execution.Executor; import com.intellij.execution.configurations.*; import com.intellij.execution.filters.TextConsoleBuilderFactory; import com.intellij.execution.runners.ExecutionEnvironment; import com.int...
package de.janthomae.leiningenplugin.run; import com.intellij.execution.ExecutionException; import com.intellij.execution.Executor; import com.intellij.execution.configurations.*; import com.intellij.execution.filters.TextConsoleBuilderFactory; import com.intellij.execution.runners.ExecutionEnvironment; import com.int...
paulopmx/Flexigrid
136
js/flexigrid.js
/* * Flexigrid for jQuery - v1.1 * * Copyright (c) 2008 Paulo P. Marinas (code.google.com/p/flexigrid/) * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * */ (function ($) { /* * jQuery 1.9 support. browser object has been removed in 1.9 */ var browser = $....
/* * Flexigrid for jQuery - v1.1 * * Copyright (c) 2008 Paulo P. Marinas (code.google.com/p/flexigrid/) * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * */ (function ($) { /* * jQuery 1.9 support. browser object has been removed in 1.9 */ var browser = $....
mariano/robot
1
config/sql/robot.sql
CREATE TABLE `robot_task_actions`( `id` CHAR(36) NOT NULL, `action` VARCHAR(255) NOT NULL, `weight` INT NOT NULL default 0, `created` DATETIME NOT NULL, `modified` DATETIME NOT NULL, PRIMARY KEY(`id`) ); CREATE TABLE `robot_tasks`( `id` CHAR(36) NOT NULL, `robot_task_action_id` CHAR(36)...
CREATE TABLE `robot_task_actions`( `id` CHAR(36) NOT NULL, `action` VARCHAR(255) NOT NULL, `weight` INT NOT NULL default 0, `created` DATETIME NOT NULL, `modified` DATETIME NOT NULL, PRIMARY KEY(`id`) ); CREATE TABLE `robot_tasks`( `id` CHAR(36) NOT NULL, `robot_task_action_id` CHAR(36)...
pmarti/python-messaging
9
messaging/test/test_sms.py
# -*- coding: utf-8 -*- from datetime import datetime, timedelta import unittest from messaging.sms import SmsSubmit, SmsDeliver from messaging.utils import (timedelta_to_relative_validity as to_relative, datetime_to_absolute_validity as to_absolute, FixedOffse...
# -*- coding: utf-8 -*- from datetime import datetime, timedelta import unittest from messaging.sms import SmsSubmit, SmsDeliver from messaging.utils import (timedelta_to_relative_validity as to_relative, datetime_to_absolute_validity as to_absolute, FixedOffse...
ericpaulbishop/redmine_git_hosting
180
lib/git_hosting/patches/git_adapter_patch.rb
module GitHosting module Patches module GitAdapterPatch def self.included(base) base.class_eval do unloadable end begin base.send(:alias_method_chain, :scm_cmd, :sudo) rescue Exception =>e end base.extend(ClassMethods) base.class_eval do class << self alias_meth...
module GitHosting module Patches module GitAdapterPatch def self.included(base) base.class_eval do unloadable end begin base.send(:alias_method_chain, :scm_cmd, :sudo) rescue Exception =>e end base.extend(ClassMethods) base.class_eval do class << self alias_meth...
rakudo/rakudo
5,651
src/vm/moar/runner/main.c
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <uv.h> #include <moar.h> #ifdef _WIN32 # include <sys/types.h> # include <sys/stat.h> # include <process.h> # include <shlwapi.h> # include <io.h> # if defined(_MSC_VER) # define strtoll _strtoi64 # endif #else # include <sys/stat.h> # inc...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <uv.h> #include <moar.h> #ifdef _WIN32 # include <sys/types.h> # include <sys/stat.h> # include <process.h> # include <shlwapi.h> # include <io.h> # if defined(_MSC_VER) # define strtoll _strtoi64 # endif #else # include <sys/stat.h> # inc...
dduan/django-sophie
1
sophie/admin.py
from django.contrib import admin from sophie.models import Entry, Category, Blog def delete_selected_action(modeladmin, request, queryset): """ A general action to replace the default 'delete selected objects' action in contrib.admin, which does not call obj.delete thus not behave as expected """ ...
from django.contrib import admin from django import forms from sophie.models import Entry, Category, Blog def delete_selected_action(modeladmin, request, queryset): """ A general action to replace the default 'delete selected objects' action in contrib.admin, which does not call obj.delete thus not beh...
goerz/convert_encoding.py
3
convert_encoding.py
#!/usr/bin/python # -*- coding: utf-8 -*- """ Convert text files between arbitrary encodings and line endings. Usage: convert_encoding.py [options] file1 file2 ... Options are: -f enc, --from=enc the input encoding (default: locale.getpreferredencoding()) ...
#!/usr/bin/python # -*- coding: utf-8 -*- """ Convert text files between arbitrary encodings and line endings. Usage: convert_encoding.py [options] file1 file2 ... Options are: -f enc, --from=enc the input encoding (default: locale.getpreferredencoding()) ...
jm/stump
1
lib/stump/metaid.rb
# thanks _why # http://whytheluckystiff.net/articles/seeingMetaclassesClearly.html class Object # The hidden singleton lurks behind everyone def metaclass; class << self; self; end; end def meta_eval &blk; metaclass.instance_eval &blk; end # Adds methods to a metaclass def meta_def name, &blk meta_eval {...
# thanks _why # http://whytheluckystiff.net/articles/seeingMetaclassesClearly.html class Object # The hidden singleton lurks behind everyone def metaclass; class << self; self; end; end def meta_eval &blk; metaclass.instance_eval &blk; end # Adds methods to a metaclass def meta_def name, &blk meta_eval {...
braintree/braintree_python
138
braintree/subscription.py
from decimal import Decimal from braintree.util.http import Http import braintree import warnings from braintree.add_on import AddOn from braintree.descriptor import Descriptor from braintree.discount import Discount from braintree.exceptions.not_found_error import NotFoundError from braintree.resource_collection impor...
from decimal import Decimal from braintree.util.http import Http import braintree import warnings from braintree.add_on import AddOn from braintree.descriptor import Descriptor from braintree.discount import Discount from braintree.exceptions.not_found_error import NotFoundError from braintree.resource_collection impor...
mpeters/smolder
10
htdocs/js/smolder.js
/* Behaviour Class is inspired from Ben Nolan's behaviour.js script (http://bennolan.com/behaviour/) but uses Prototype's $$() and Element.getElementsBySelector() functions since they support more CSS syntax and are already loaded with prototype. */ var Behaviour = { rules : $H({}), regi...
/* Behaviour Class is inspired from Ben Nolan's behaviour.js script (http://bennolan.com/behaviour/) but uses Prototype's $$() and Element.getElementsBySelector() functions since they support more CSS syntax and are already loaded with prototype. */ var Behaviour = { rules : $H({}), regi...
jlecour/geokit-rails
2
lib/geokit-rails/ip_geocode_lookup.rb
require 'yaml' module Geokit # Contains a class method geocode_ip_address which can be used to enable automatic geocoding # for request IP addresses. The geocoded information is stored in a cookie and in the # session to minimize web service calls. The point of the helper is to enable location-based # webs...
require 'yaml' require 'active_support/concern' module Geokit # Contains a class method geocode_ip_address which can be used to enable automatic geocoding # for request IP addresses. The geocoded information is stored in a cookie and in the # session to minimize web service calls. The point of the helper is to...
kneath/hemingway
2
functions.php
<?php $themecolors = array( 'bg' => '000000', 'text' => 'bfbfbf', 'link' => 'ffffff', 'border' => '000000' ); // this varies but the single page content width seems to be 607px max $content_width = 600; class Hemingway { var $raw_blocks; var $available_blocks; var $style; var $version; function...
<?php $themecolors = array( 'bg' => '000000', 'text' => 'bfbfbf', 'link' => 'ffffff', 'border' => '000000' ); // this varies but the single page content width seems to be 607px max $content_width = 600; class Hemingway { var $raw_blocks; var $available_blocks; var $style; var $version; function...
bcherry/twitter-text-js
1
twitter-text.js
if (!window.twttr) { window.twttr = {}; } (function() { twttr.txt = {}; twttr.txt.regexen = {}; var HTML_ENTITIES = { '&': '&amp;', '>': '&gt;', '<': '&lt;', '"': '&quot;', "'": '&#32;' }; // HTML escaping twttr.txt.htmlEscape = function(text) { return text && text.replace(/[&"'...
if (!window.twttr) { window.twttr = {}; } (function() { twttr.txt = {}; twttr.txt.regexen = {}; var HTML_ENTITIES = { '&': '&amp;', '>': '&gt;', '<': '&lt;', '"': '&quot;', "'": '&#32;' }; // HTML escaping twttr.txt.htmlEscape = function(text) { return text && text.replace(/[&"'...
marektihkan/CC.NET-Kaizen-theme
18
Source/Kaizen/css/base.styles.css
/* Base ----------------------------------*/ BODY { margin: 0px; padding: 0px; background-color: #FFF; font-family: helvetica; font-size: 12px; } /* Firefox alignment hack */ BODY { text-align: -moz-center; } TABLE { width: 100%; background: #FFF url("../images/menu_links_bg.png"); } THEAD, .strong { font-weight:...
/* Base ----------------------------------*/ BODY { margin: 0px; padding: 0px; background-color: #FFF; font-family: verdana; font-size: 11px; } /* Firefox alignment hack */ BODY { text-align: -moz-center; } TABLE { width: 100%; background: #FFF url("../images/menu_links_bg.png"); } THEAD, .strong { font-weight: bold; }...
cheald/murmur-manager
3
manage-ice.rb
#!/bin/env ruby BASE = File.expand_path(File.dirname(__FILE__)) require File.join(BASE, "interfaces", "ice.rb") require File.join(BASE, 'helpers') require 'yaml' class UnknownCommandException < Exception; end def server_command(meta, id, command = nil, *args) server = meta.get_server(id) case command when "set"...
#!/bin/env ruby BASE = File.expand_path(File.dirname(__FILE__)) require File.join(BASE, "interfaces", "ice.rb") require File.join(BASE, 'helpers') require 'yaml' class UnknownCommandException < Exception; end def server_command(meta, id, command = nil, *args) server = meta.get_server(id) case command when "set"...
acspike/FretFind2D
12
src/fretfind.html
<html xmlns="http://www.w3.org/1999/xhtml"> <head> <!-- Copyright (C) 2004, 2005, 2010 Aaron C Spike This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of ...
<html xmlns="http://www.w3.org/1999/xhtml"> <head> <!-- Copyright (C) 2004, 2005, 2010 Aaron C Spike This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of ...
auchenberg/css-reloader
15
cssreloader.content.js
(function() { var shortcutSettings; function initialize() { document.addEventListener("keydown", onWindowKeyDown, false); chrome.extension.onRequest.addListener(onExtensionRequest); chrome.extension.sendRequest({'action' : 'getSettings'}, onGetSettings); } function reload(...
(function() { var shortcutSettings; var blacklist = [ new Regexp('^https?://use\.typekit\.net\/'), new Regexp('^https?://fonts\.googleapis\.com\/') ]; function initialize() { document.addEventListener("keydown", onWindowKeyDown, false); chrome.extension.onReque...
yui/yui3-gallery
31
src/gallery-calendar-jumpnav/docs/assets/js/yui-prettify.js
YUI().use('node', function(Y) { var code = Y.all('.prettyprint.linenums'); if (code.size()) { code.each(function(c) { var lis = c.all('ol li'), l = 1; lis.each(function(n) { n.prepend('<a name="LINENUM_' + l + '"></a>'); l++; ...
YUI().use('node', function(Y) { var code = Y.all('.prettyprint.linenums'); if (code.size()) { code.each(function(c) { var lis = c.all('ol li'), l = 1; lis.each(function(n) { n.prepend('<a name="LINENUM_' + l + '"></a>'); l++; ...
MarkLogic-Attic/recordloader
8
src/recordloader.sh
#!/bin/sh # # sample bash script for running RecordLoader # # Copyright (c)2005-2012 Mark Logic Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/...
#!/bin/sh # # sample bash script for running RecordLoader # # Copyright (c)2005-2012 Mark Logic Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/...
fryn/html5slider
12
html5slider.js
/* html5slider - a JS implementation of <input type=range> for Firefox 16 and up https://github.com/fryn/html5slider Copyright (c) 2010-2012 Frank Yan, <http://frankyan.com> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"...
/* html5slider - a JS implementation of <input type=range> for Firefox 16 and up https://github.com/fryn/html5slider Copyright (c) 2010-2012 Frank Yan, <http://frankyan.com> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"...
fredrik-johansson/flint
37
arith/cyclotomic_cos_polynomial.c
/* Copyright (C) 2011 Fredrik Johansson This file is part of FLINT. FLINT is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License (LGPL) as published by the Free Software Foundation; either version 2.1 of the License, or (at your opti...
/* Copyright (C) 2011 Fredrik Johansson This file is part of FLINT. FLINT is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License (LGPL) as published by the Free Software Foundation; either version 2.1 of the License, or (at your opti...
python-postgres/fe
119
postgresql/versionstring.py
## # .versionstring ## """ PostgreSQL version string parsing. >>> postgresql.versionstring.split('8.0.1') (8, 0, 1, None, None) """ def split(vstr: str) -> tuple: """ Split a PostgreSQL version string into a tuple. (major, minor, patch, ..., state_class, state_level) """ v = vstr.strip().split('.') # Get rid o...
## # .versionstring ## """ PostgreSQL version string parsing. >>> postgresql.versionstring.split('8.0.1') (8, 0, 1, None, None) """ def split(vstr: str) -> tuple: """ Split a PostgreSQL version string into a tuple. (major, minor, patch, ..., state_class, state_level) """ v = vstr.strip().split(' ')[0].split('.')...
graham/genie
2
src/genie.js
/* Copyright [2014] [Graham Abbott <graham.abbott@gmail.com>] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or ag...
/* Copyright [2014] [Graham Abbott <graham.abbott@gmail.com>] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or ag...
ryanb/render-caching
1
spec/render_caching/controller_additions_spec.rb
require File.dirname(__FILE__) + '/../spec_helper' # stub the Rails module functionality RAILS_CACHE = ActiveSupport::Cache.lookup_store(:memory_store) module Rails def self.cache RAILS_CACHE end end describe ActionController::Base do it "should have render_with_cache private method" do ActionController...
require File.dirname(__FILE__) + '/../spec_helper' # stub the Rails module functionality RAILS_CACHE = ActiveSupport::Cache.lookup_store(:memory_store) module Rails def self.cache RAILS_CACHE end end describe ActionController::Base do it "should have render_with_cache private method" do ActionController...
redoPop/loupe
10
jquery.loupe.js
/** * loupe - an image magnifier for jQuery * (C) 2010 jdbartlett, MIT license * http://github.com/jdbartlett/loupe */ (function ($) { $.fn.loupe = function (arg) { var options = $.extend({ loupe: 'loupe', width: 200, height: 150 }, arg || {}); return this.length ? this.each(function () { var $t...
/** * loupe - an image magnifier for jQuery * (C) 2010 jdbartlett, MIT license * http://github.com/jdbartlett/loupe */ (function ($) { $.fn.loupe = function (arg) { var options = $.extend({ loupe: 'loupe', width: 200, height: 150 }, arg || {}); return this.length ? this.each(function () { var $t...
klipstein/django-blog-zinnia
1
zinnia/models.py
"""Models of Zinnia""" from datetime import datetime from django.db import models from django.contrib.auth.models import User from django.contrib.sites.models import Site from django.db.models.signals import post_save from django.template.defaultfilters import striptags from django.template.defaultfilters import lineb...
"""Models of Zinnia""" from datetime import datetime from django.db import models from django.contrib.auth.models import User from django.contrib.sites.models import Site from django.db.models import Q from django.db.models.signals import post_save from django.template.defaultfilters import striptags from django.templ...
ryanbooker/rubyscript2exe
4
require2lib.rb
require "ev/ftools" require "rbconfig" require "rubyscript2exe" exit if __FILE__ == $0 module RUBYSCRIPT2EXE end module REQUIRE2LIB JUSTRUBYLIB = ARGV.include?("--require2lib-justrubylib") JUSTSITELIB = ARGV.include?("--require2lib-justsitelib") RUBYGEMS = (not JUSTRUBYLIB) VERBOSE = ARGV.include?("--require...
require "ev/ftools" require "rbconfig" require "rubyscript2exe" exit if __FILE__ == $0 module RUBYSCRIPT2EXE end module REQUIRE2LIB JUSTRUBYLIB = ARGV.include?("--require2lib-justrubylib") JUSTSITELIB = ARGV.include?("--require2lib-justsitelib") RUBYGEMS = (not JUSTRUBYLIB) VERBOSE = ARGV.include?("--require...
davidmoreno/onion
305
src/onion/poller_libev.c
/** Onion HTTP server library Copyright (C) 2010-2018 David Moreno Montero and others This library is free software; you can redistribute it and/or modify it under the terms of, at your choice: a. the Apache License Version 2.0. b. the GNU General Public License as published by the Free Software Founda...
/** Onion HTTP server library Copyright (C) 2010-2018 David Moreno Montero and others This library is free software; you can redistribute it and/or modify it under the terms of, at your choice: a. the Apache License Version 2.0. b. the GNU General Public License as published by the Free Software Founda...
dasmoth/dalliance
243
js/jbjson.js
/* -*- mode: javascript; c-basic-offset: 4; indent-tabs-mode: nil -*- */ // // Dalliance Genome Explorer // (c) Thomas Down 2006-2013 // // jbjson.js -- query JBrowse-style REST data stores // if (typeof(require) !== 'undefined') { var das = require('./das'); var DASStylesheet = das.DASStylesheet; var DA...
/* -*- mode: javascript; c-basic-offset: 4; indent-tabs-mode: nil -*- */ // // Dalliance Genome Explorer // (c) Thomas Down 2006-2013 // // jbjson.js -- query JBrowse-style REST data stores // if (typeof(require) !== 'undefined') { var das = require('./das'); var DASStylesheet = das.DASStylesheet; var DA...
troelskn/bucket
9
bucket.test.php
<?php require_once 'simpletest/unit_tester.php'; if (realpath($_SERVER['PHP_SELF']) == __FILE__) { error_reporting(E_ALL | E_STRICT); require_once 'simpletest/autorun.php'; } require_once 'lib/bucket.inc.php'; class NoDependencies {} class ExtendsNoDependencies extends NoDependencies {} class SingleClassDependen...
<?php require_once 'vendor/simpletest/simpletest/unit_tester.php'; if (realpath($_SERVER['PHP_SELF']) == __FILE__) { error_reporting(E_ALL | E_STRICT); require_once 'vendor/simpletest/simpletest/autorun.php'; } require_once 'lib/bucket.inc.php'; class NoDependencies {} class ExtendsNoDependencies extends NoDepend...
cloudhead/vargs
6
lib/vargs.js
// // vargs.js // // variable argument handling for functions taking a callback // // usage: // // var Args = new("vargs").Constructor; // // function (/* [arg1, arg2, ...][,callback] */) { // var args = new(Args)(arguments); // // args.first; // first argument // args.last; // ...
// // vargs.js // // variable argument handling for functions taking a callback // // usage: // // var Args = new("vargs").Constructor; // // function (/* [arg1, arg2, ...][,callback] */) { // var args = new(Args)(arguments); // // args.first; // first argument // args.last; // ...
chmouel/ftp-cloudfs
35
ftpcloudfs/monkeypatching.py
import asyncore from pyftpdlib import ftpserver from ftpcloudfs.utils import smart_str from server import RackspaceCloudAuthorizer from multiprocessing.managers import RemoteError class MyDTPHandler(ftpserver.DTPHandler): def send(self, data): data=smart_str(data) return super(MyDTPHandler, self)....
import asyncore from pyftpdlib import ftpserver from ftpcloudfs.utils import smart_str from server import RackspaceCloudAuthorizer from multiprocessing.managers import RemoteError class MyDTPHandler(ftpserver.DTPHandler): def send(self, data): data=smart_str(data) return super(MyDTPHandler, self)....
codekoala/django-articles
7
articles/forms.py
import logging from django import forms from django.utils.translation import ugettext_lazy as _ from models import Article, Tag log = logging.getLogger('articles.forms') def tag(name): """Returns a Tag object for the given name""" slug = Tag.clean_tag(name) log.debug('Looking for Tag with slug "%s"...'...
import logging from django import forms from django.utils.translation import ugettext_lazy as _ from models import Article, Tag log = logging.getLogger('articles.forms') def tag(name): """Returns a Tag object for the given name""" slug = Tag.clean_tag(name) log.debug('Looking for Tag with slug "%s"...'...
shugo/jruby
1
core/src/main/java/org/jruby/parser/StaticScope.java
/* ***** BEGIN LICENSE BLOCK ***** * Version: EPL 2.0/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Eclipse Public * License Version 2.0 (the "License"); you may not use this file * except in compliance with the License. You may obtain a copy of * the License at http://www.eclipse.org/legal/e...
/* ***** BEGIN LICENSE BLOCK ***** * Version: EPL 2.0/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Eclipse Public * License Version 2.0 (the "License"); you may not use this file * except in compliance with the License. You may obtain a copy of * the License at http://www.eclipse.org/legal/e...
thruflo/py-soocial
1
src/soocial/client.py
import base64 import cookielib import httplib2 import re import socket import urllib2 import vobject from elementtree import ElementTree from urllib import quote, urlencode try: import json # Python 2.6 except ImportError: import simplejson as json from xml2dict import XmlDictParser, XmlListParser DEFAULT_U...
# -*- coding: utf-8 -*- import base64 import cookielib import httplib2 import re import socket import urllib2 import vobject from elementtree import ElementTree from urllib import quote, urlencode try: import json # Python 2.6 except ImportError: import simplejson as json from xml2dict import XmlDictParser, ...
dovadi/active_merchant_ideal
2
lib/active_merchant_ideal/ideal_response.rb
require 'openssl' require 'base64' require 'rexml/document' module ActiveMerchant #:nodoc: module Billing #:nodoc: # The base class for all iDEAL response classes. # # Note that if the iDEAL system is under load it will _not_ allow more # then two retries per request. class IdealResponse < Respon...
require 'openssl' require 'base64' require 'rexml/document' module ActiveMerchant #:nodoc: module Billing #:nodoc: # The base class for all iDEAL response classes. # # Note that if the iDEAL system is under load it will _not_ allow more # then two retries per request. class IdealResponse < Respon...
newrelic/newrelic-ruby-agent
2,880
lib/new_relic/agent/instrumentation/rdkafka/prepend.rb
# This file is distributed under New Relic's license terms. # See https://github.com/newrelic/newrelic-ruby-agent/blob/main/LICENSE for complete details. # frozen_string_literal: true require_relative 'instrumentation' module NewRelic::Agent::Instrumentation module RdkafkaProducer module Prepend include N...
# This file is distributed under New Relic's license terms. # See https://github.com/newrelic/newrelic-ruby-agent/blob/main/LICENSE for complete details. # frozen_string_literal: true require_relative 'instrumentation' module NewRelic::Agent::Instrumentation module RdkafkaProducer module Prepend include N...
brettporter/centrepoint
3
centrepoint/modules/webapp/src/main/java/com/effectivemaven/centrepoint/web/BuildNumber.java
package com.effectivemaven.centrepoint.web; /** * Copyright 2009 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requir...
package com.effectivemaven.centrepoint.web; /** * Copyright 2009 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requir...
cvpcs/android_kernel_incrediblec
1
arch/arm/mach-msm/board-incrediblec.c
/* linux/arch/arm/mach-msm/board-incrediblec.c * * Copyright (C) 2009 Google, Inc. * Copyright (C) 2009 HTC Corporation. * Author: Dima Zavin <dima@android.com> * * This software is licensed under the terms of the GNU General Public * License version 2, as published by the Free Software Foundation, and * may be...
/* linux/arch/arm/mach-msm/board-incrediblec.c * * Copyright (C) 2009 Google, Inc. * Copyright (C) 2009 HTC Corporation. * Author: Dima Zavin <dima@android.com> * * This software is licensed under the terms of the GNU General Public * License version 2, as published by the Free Software Foundation, and * may be...
tonytw1/wellynews
71
src/main/java/nz/co/searchwellington/Main.java
package nz.co.searchwellington; import com.google.common.collect.Maps; import nz.co.searchwellington.commentfeeds.detectors.CommentFeedDetector; import nz.co.searchwellington.commentfeeds.detectors.DateRegexCommentFeedDetector; import nz.co.searchwellington.commentfeeds.detectors.GenericCommentFeedDetector; import nz....
package nz.co.searchwellington; import com.google.common.collect.Maps; import nz.co.searchwellington.commentfeeds.detectors.CommentFeedDetector; import nz.co.searchwellington.commentfeeds.detectors.DateRegexCommentFeedDetector; import nz.co.searchwellington.commentfeeds.detectors.GenericCommentFeedDetector; import nz....
wardencommunity/sinatra_warden
9
lib/sinatra_warden/sinatra.rb
require 'sinatra/base' module Sinatra module Warden module Helpers # The main accessor to the warden middleware def warden request.env['warden'] end # Return session info # # @param [Symbol] the scope to retrieve session info for def session_info(scope=nil) ...
require 'sinatra/base' module Sinatra module Warden module Helpers # The main accessor to the warden middleware def warden request.env['warden'] end # Return session info # # @param [Symbol] the scope to retrieve session info for def session_info(scope=nil) ...
srgvg/sysadmintools
1
zimbrackup/backup_zimbra.sh
#!/bin/bash # # Script to backup a Zimbra installation (open source version) # by installing the Zimbra on a separate LVM Logical Volume, # taking a snapshot of that partition after stopping Zimbra, # restarting Zimbra services, then rsyncing the snapshot to a # separate backup point. # This script...
#!/bin/bash # # Script to backup a Zimbra installation (open source version) # by installing the Zimbra on a separate LVM Logical Volume, # taking a snapshot of that partition after stopping Zimbra, # restarting Zimbra services, then rsyncing the snapshot to a # separate backup point. # This script...
fjordllc/next-holiday
4
test/app_test.rb
require File.expand_path(File.join(File.dirname(__FILE__), 'test_helper')) require 'app' class AppTest < Test::Unit::TestCase context "Access pages" do should "show index" do get '/' assert_match 'Next Holiday', last_response.body end end end
# frozen_string_literal: true require File.expand_path(File.join(File.dirname(__FILE__), 'test_helper')) require 'app' class AppTest < Test::Unit::TestCase context "Access pages" do should "show index" do get '/' assert_match 'Next Holiday', last_response.body end end end
heycarsten/email-veracity
5
lib/email_veracity/domain.rb
module EmailVeracity class Domain include Validatability def self.whitelisted?(name) Config[:whitelist].include?(name.downcase.strip) end def self.blacklisted?(name) Config[:blacklist].include?(name.downcase.strip) end def initialize(name = '') @name = name end d...
module EmailVeracity class Domain include Validatability def self.whitelisted?(name) Config[:whitelist].include?(name.downcase.strip) end def self.blacklisted?(name) Config[:blacklist].include?(name.downcase.strip) end def initialize(name = '') @name = name end d...
X-Plane/XPlane2Blender
464
io_xplane2blender/xplane_types/xplane_mesh.py
import array import time import re import bpy from ..xplane_config import getDebug from ..xplane_helpers import floatToStr, logger from ..xplane_constants import * from .xplane_face import XPlaneFace # Class: XPlaneMesh # Creates the OBJ meshes. class XPlaneMesh(): # Constructor: __init__ def __init__(self): ...
import array import time import re import bpy from ..xplane_config import getDebug from ..xplane_helpers import floatToStr, logger from ..xplane_constants import * from .xplane_face import XPlaneFace # Class: XPlaneMesh # Creates the OBJ meshes. class XPlaneMesh(): # Constructor: __init__ def __init__(self): ...
macdonst/phonegap-android
1
example/index.html
<!DOCTYPE HTML> <html> <head> <meta name="viewport" content="width=320; user-scalable=no" /> <meta http-equiv="Content-type" content="text/html; charset=utf-8"> <title>PhoneGap</title> <link rel="stylesheet" href="master.css" type="text/css" media="screen" title="no title" charset="utf-8"> <script t...
<!DOCTYPE HTML> <html> <head> <meta name="viewport" content="width=320; user-scalable=no" /> <meta http-equiv="Content-type" content="text/html; charset=utf-8"> <title>PhoneGap</title> <link rel="stylesheet" href="master.css" type="text/css" media="screen" title="no title" charset="utf-8"> <script t...
fabiomcosta/mootools-meio-mask
17
Source/Meio.Mask.Reverse.js
/* --- name: Meio.Mask.Reverse description: A mask used for currency and decimal numbers. authors: - Fábio Miranda Costa requires: - Meio.Mask license: MIT-style license provides: [Meio.Mask.Reverse] ... */ Meio.Mask.Reverse = new Class({ Extends: Meio.Mask, options: { autoSetSize: false, autoEmpty: f...
/* --- name: Meio.Mask.Reverse description: A mask used for currency and decimal numbers. authors: - Fábio Miranda Costa requires: - Meio.Mask license: MIT-style license provides: [Meio.Mask.Reverse] ... */ Meio.Mask.Reverse = new Class({ Extends: Meio.Mask, options: { autoSetSize: false, autoEmpty: f...