commit
stringlengths
40
40
old_file
stringlengths
4
237
new_file
stringlengths
4
237
old_contents
stringlengths
1
4.24k
new_contents
stringlengths
5
4.84k
subject
stringlengths
15
778
message
stringlengths
16
6.86k
lang
stringlengths
1
30
license
stringclasses
13 values
repos
stringlengths
5
116k
config
stringlengths
1
30
content
stringlengths
105
8.72k
22d63bf978e351a22515248600a8cd7a1d56a07d
src/pages/home/page.js
src/pages/home/page.js
import React from 'react'; import ReactDom from 'react-dom'; import { Link } from 'react-router'; import _ from 'lodash'; import client from '../../common/store/Contentful'; import marked from 'marked'; import styles from "./style.css"; export default class HomePage extends React.Component { constructor(props) { ...
import React from 'react'; import ReactDom from 'react-dom'; import { Link } from 'react-router'; import _ from 'lodash'; import client from '../../common/store/Contentful'; import marked from 'marked'; import styles from "./style.css"; export default class HomePage extends React.Component { constructor(props) { ...
Remove my dumb logging statement
Remove my dumb logging statement
JavaScript
mit
mhgbrown/typography-karaoke,mhgbrown/typography-karaoke
javascript
## Code Before: import React from 'react'; import ReactDom from 'react-dom'; import { Link } from 'react-router'; import _ from 'lodash'; import client from '../../common/store/Contentful'; import marked from 'marked'; import styles from "./style.css"; export default class HomePage extends React.Component { constru...
e7f2aa0d7b2e20dd7207e6f82bfb3c11662eb601
modules/icons/macros_patterns.html
modules/icons/macros_patterns.html
{% macro icon(name, size="default", use_svg=false) %} {% if use_svg == true %} <svg class="icon icon-{{ name }}" aria-labelledby="title" role="img"> <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/node_modules/@casper/nightshade-icons/test/sprite.symbol.svg#{{ name }}"></use> </svg> {% el...
{% macro svg(name, icon_class=true) %} <svg class="icon{% if icon_class %} icon-{{ name }}{% endif %}" aria-labelledby="title" role="img"> <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/node_modules/@casper/nightshade-icons/test/sprite.symbol.svg#{{ name }}"></use> </svg> {% endmacro %} {% macro icon(n...
Split icon logic into two separate macros
Split icon logic into two separate macros
HTML
mit
CasperSleep/nightshade-core,CasperSleep/nightshade-core
html
## Code Before: {% macro icon(name, size="default", use_svg=false) %} {% if use_svg == true %} <svg class="icon icon-{{ name }}" aria-labelledby="title" role="img"> <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/node_modules/@casper/nightshade-icons/test/sprite.symbol.svg#{{ name }}"></use> ...
5cff7ab9039d52743fdef85bfed14bd8d61b4aa2
README.md
README.md
Web client for the [RadBus API](https://github.com/TargetRAD/radbus-api) [ ![Codeship Status for TargetRAD/radbus-web](https://www.codeship.io/projects/93b0eff0-cd8e-0131-d778-7ee13a96ffe7/status?branch=master)](https://www.codeship.io/projects/22807)
[ ![Codeship Status for TargetRAD/radbus-web](https://www.codeship.io/projects/93b0eff0-cd8e-0131-d778-7ee13a96ffe7/status?branch=master)](https://www.codeship.io/projects/22807) A web client for the [RadBus API](https://api.radbus.io). Please see the [RadBus API project](https://github.com/TargetRAD/radbus-api) for...
Add link to API itself
Add link to API itself and better link to API project
Markdown
mit
RadBus/web,RadBus/web
markdown
## Code Before: Web client for the [RadBus API](https://github.com/TargetRAD/radbus-api) [ ![Codeship Status for TargetRAD/radbus-web](https://www.codeship.io/projects/93b0eff0-cd8e-0131-d778-7ee13a96ffe7/status?branch=master)](https://www.codeship.io/projects/22807) ## Instruction: Add link to API itself and bette...
818c91e34a6a87d113630034f7f743f037e6eb3b
app/views/appointments/booking_manager_cancellation.html.erb
app/views/appointments/booking_manager_cancellation.html.erb
<h1 style="color: #0B0C0C !important;font-family: Helvetica, Arial, sans-serif;margin: 15px 0;font-weight: 700;font-size: 20px;line-height: 1.111111111;padding: 15px 0;"> SMS Appointment Cancellation </h1> <%= p do %> The customer cancelled their appointment by SMS. <% end %> <%= p do %> Appointment reference: ...
<%= h2 do %> SMS Appointment Cancellation <% end %> <%= p do %> The customer cancelled their appointment by SMS. <% end %> <%= p do %> Appointment reference: <%= @appointment.reference %> <% end %> <%= p do %> Guider: <%= @appointment.guider_name %> <% end %> <%= p do %> <%= link_to 'View the appointment'...
Update booking manager cancellation email
Update booking manager cancellation email
HTML+ERB
mit
guidance-guarantee-programme/planner,guidance-guarantee-programme/planner,guidance-guarantee-programme/planner
html+erb
## Code Before: <h1 style="color: #0B0C0C !important;font-family: Helvetica, Arial, sans-serif;margin: 15px 0;font-weight: 700;font-size: 20px;line-height: 1.111111111;padding: 15px 0;"> SMS Appointment Cancellation </h1> <%= p do %> The customer cancelled their appointment by SMS. <% end %> <%= p do %> Appoint...
277e12be47fed59a1c13feff2bade45ad7d8be7e
app/account/modals/add-contact.html
app/account/modals/add-contact.html
<ion-modal-view ng-controller="AddContactFromTxCtrl"> <ion-header-bar align-title="center" class="tab-bar"> <button on-tap="cancel()" class="button button-clear button-white"> {{'modal.close' | translate}} </button> <h1 class="title ellipsis"> {{'modal.contact.heading' | translate}} </h1> </ion-header-b...
<ion-modal-view ng-controller="AddContactFromTxCtrl"> <ion-header-bar align-title="center" class="tab-bar"> <button on-tap="cancel()" class="button button-clear button-white"> {{'modal.close' | translate}} </button> <h1 class="title ellipsis"> {{'modal.contact.heading' | translate}} </h1> </ion-header-b...
Add account/contact name check to add account modal
Add account/contact name check to add account modal
HTML
agpl-3.0
johansten/stargazer,johansten/stargazer,johansten/stargazer
html
## Code Before: <ion-modal-view ng-controller="AddContactFromTxCtrl"> <ion-header-bar align-title="center" class="tab-bar"> <button on-tap="cancel()" class="button button-clear button-white"> {{'modal.close' | translate}} </button> <h1 class="title ellipsis"> {{'modal.contact.heading' | translate}} </h1>...
ed817a719392eb8505df7ae8bf4e93956b65e0bb
DataTransferObject/UserWithPasswordDataTransferObject.php
DataTransferObject/UserWithPasswordDataTransferObject.php
<?php namespace SumoCoders\FrameworkMultiUserBundle\DataTransferObject; use SumoCoders\FrameworkMultiUserBundle\User\User; use SumoCoders\FrameworkMultiUserBundle\User\UserWithPassword; class UserWithPasswordDataTransferObject implements UserDataTransferObject { /** * @var int */ public $id; /...
<?php namespace SumoCoders\FrameworkMultiUserBundle\DataTransferObject; use SumoCoders\FrameworkMultiUserBundle\User\User; use SumoCoders\FrameworkMultiUserBundle\User\UserWithPassword; class UserWithPasswordDataTransferObject implements UserDataTransferObject { /** * @var int */ public $id; /...
Use the user's getters to check if we need to set the plainpassword
Use the user's getters to check if we need to set the plainpassword
PHP
mit
sumocoders/FrameworkMultiUserBundle,sumocoders/FrameworkMultiUserBundle
php
## Code Before: <?php namespace SumoCoders\FrameworkMultiUserBundle\DataTransferObject; use SumoCoders\FrameworkMultiUserBundle\User\User; use SumoCoders\FrameworkMultiUserBundle\User\UserWithPassword; class UserWithPasswordDataTransferObject implements UserDataTransferObject { /** * @var int */ pu...
2a73f7181e404b361ebfb0efbcc0427db2d90564
libkroll/utils/platform_utils.cpp
libkroll/utils/platform_utils.cpp
/** * Appcelerator Kroll - licensed under the Apache Public License 2 * see LICENSE in the root folder for details on the license. * Copyright (c) 2009 Appcelerator, Inc. All Rights Reserved. */ #include "utils.h" #include <cstdio> namespace UTILS_NS { namespace PlatformUtils { std::string GetFirstMACAddress() ...
/** * Appcelerator Kroll - licensed under the Apache Public License 2 * see LICENSE in the root folder for details on the license. * Copyright (c) 2009 Appcelerator, Inc. All Rights Reserved. */ #include "utils.h" #include <stdio.h> #include <string.h> namespace UTILS_NS { namespace PlatformUtils { std::string ...
Fix build error on Linux.
Fix build error on Linux.
C++
apache-2.0
appcelerator/kroll,appcelerator/kroll,appcelerator/kroll
c++
## Code Before: /** * Appcelerator Kroll - licensed under the Apache Public License 2 * see LICENSE in the root folder for details on the license. * Copyright (c) 2009 Appcelerator, Inc. All Rights Reserved. */ #include "utils.h" #include <cstdio> namespace UTILS_NS { namespace PlatformUtils { std::string GetFi...
a6fe84e8e684c7119229f89c9d8913c5da0036e3
README.md
README.md
This simple tool can help you download videos from multiple URLs and put them into separate folders named after corresponding video titles or into a single folder based on your instruction. By default, it uses You-Get as the downloading tool. ## Features: * Add URLs to target list * Delete specific URL from target li...
This simple tool can help you download videos from multiple URLs and put them into separate folders named after corresponding video titles or into a single folder based on your instruction. By default, it uses You-Get as the downloading tool. ## Features: * No need to change source code after you update YouGet * Mana...
Add dependencies and Update features
Add dependencies and Update features
Markdown
mit
ad52825196/video-downloader
markdown
## Code Before: This simple tool can help you download videos from multiple URLs and put them into separate folders named after corresponding video titles or into a single folder based on your instruction. By default, it uses You-Get as the downloading tool. ## Features: * Add URLs to target list * Delete specific UR...
207cb545f64d4f692eba1db25cdd3394b461c9f0
stroom-core/src/main/resources/stroom/core/db/migration/mysql/V07_00_00_016__IDX_SHRD.sql
stroom-core/src/main/resources/stroom/core/db/migration/mysql/V07_00_00_016__IDX_SHRD.sql
-- ------------------------------------------------------------------------ -- Copyright 2020 Crown Copyright -- -- 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.o...
-- ------------------------------------------------------------------------ -- Copyright 2020 Crown Copyright -- -- 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.o...
Fix sproc args in migration script
Fix sproc args in migration script
SQL
apache-2.0
gchq/stroom,gchq/stroom,gchq/stroom,gchq/stroom,gchq/stroom,gchq/stroom
sql
## Code Before: -- ------------------------------------------------------------------------ -- Copyright 2020 Crown Copyright -- -- 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 -- -- htt...
533848879a11cd39f47a069dcae2e6f0be53ae66
src/mushpup-ui.js
src/mushpup-ui.js
/* * Mushpup-UI Module * * Requires jQuery, jQuery-UI * */ var MushpupUI = (function() { var VERSION = '2.0'; var init = function(parentId) { var $parentElement = $('#' + parentId); var $mushpupInterface = buildInterface(); $parentElement.append(mushpupInterface); enableHandlers($parentElemen...
/* * Mushpup-UI Module * * Requires jQuery, jQuery-UI * */ var MushpupUI = (function() { var VERSION = '2.0'; var init = function(selector) { var $selectedElement = $(selector); var $mushpupInterface = buildInterface(); $selectedElement.append($mushpupInterface); enableHandlers($selectedEleme...
Update UI init method to accept selector.
Update UI init method to accept selector.
JavaScript
bsd-3-clause
klenwell/mushpup,klenwell/mushpup
javascript
## Code Before: /* * Mushpup-UI Module * * Requires jQuery, jQuery-UI * */ var MushpupUI = (function() { var VERSION = '2.0'; var init = function(parentId) { var $parentElement = $('#' + parentId); var $mushpupInterface = buildInterface(); $parentElement.append(mushpupInterface); enableHandle...
8fb15f3a072d516e477449c2b751226494ee14c5
perfkitbenchmarker/benchmarks/__init__.py
perfkitbenchmarker/benchmarks/__init__.py
"""Contains all benchmark imports and a list of benchmarks.""" import pkgutil def _LoadModules(): result = [] for importer, modname, ispkg in pkgutil.iter_modules(__path__): result.append(importer.find_module(modname).load_module(modname)) return result BENCHMARKS = _LoadModules()
import importlib import pkgutil def _LoadModulesForPath(path, package_prefix=None): """Load all modules on 'path', with prefix 'package_prefix'. Example usage: _LoadModulesForPath(__path__, __name__) Args: path: Path containing python modules. package_prefix: prefix (e.g., package name) to prefix...
Fix a bug in dynamic benchmark loading.
Fix a bug in dynamic benchmark loading. perfkitbenchmarker/benchmarks/__init__.py used ImpImporter.load_module to import benchmarks, which caused an error when they were later imported directly by an import statement. Switched to 'importlib' to resolve.
Python
apache-2.0
GoogleCloudPlatform/PerfKitBenchmarker,lleszczu/PerfKitBenchmarker,GoogleCloudPlatform/PerfKitBenchmarker,msurovcak/PerfKitBenchmarker,tvansteenburgh/PerfKitBenchmarker,ksasi/PerfKitBenchmarker,juju-solutions/PerfKitBenchmarker,gablg1/PerfKitBenchmarker,juju-solutions/PerfKitBenchmarker,msurovcak/PerfKitBenchmarker,sye...
python
## Code Before: """Contains all benchmark imports and a list of benchmarks.""" import pkgutil def _LoadModules(): result = [] for importer, modname, ispkg in pkgutil.iter_modules(__path__): result.append(importer.find_module(modname).load_module(modname)) return result BENCHMARKS = _LoadModules() ## Ins...
0ba7c1e57ceabe9b8d969f913bd4869911749224
docs/database/postgresql_scaffolding.sql
docs/database/postgresql_scaffolding.sql
-- create database CREATE DATABASE amy WITH OWNER postgres; -- create database user (read/write) CREATE USER amy WITH LOGIN PASSWORD 'secret password' NOSUPERUSER INHERIT NOCREATEDB NOCREATEROLE NOREPLICATION VALID UNTIL 'infinity'; -- create database user (read/only) CREATE USER amy_r...
-- create database CREATE DATABASE amy WITH OWNER postgres; -- create database user (read/write) CREATE USER amy WITH LOGIN PASSWORD 'secret password' NOSUPERUSER INHERIT NOCREATEDB NOCREATEROLE NOREPLICATION VALID UNTIL 'infinity'; -- create database user (read/only) CREATE USER amy_r...
Extend R/O privileges in PostgreSQL
Extend R/O privileges in PostgreSQL `amy_ro` read-only role requires SELECT privileges on sequences for the backup to work.
SQL
mit
swcarpentry/amy,pbanaszkiewicz/amy,swcarpentry/amy,pbanaszkiewicz/amy,swcarpentry/amy,pbanaszkiewicz/amy
sql
## Code Before: -- create database CREATE DATABASE amy WITH OWNER postgres; -- create database user (read/write) CREATE USER amy WITH LOGIN PASSWORD 'secret password' NOSUPERUSER INHERIT NOCREATEDB NOCREATEROLE NOREPLICATION VALID UNTIL 'infinity'; -- create database user (read/only) C...
7a4f4d2456c5ed0609efe7777d2b9e22854ac449
social_django/compat.py
social_django/compat.py
import six import django from django.db import models if django.VERSION >= (2, 0): from django.urls import reverse else: from django.core.urlresolvers import reverse if django.VERSION >= (1, 10): from django.utils.deprecation import MiddlewareMixin else: MiddlewareMixin = object def get_rel_model(fi...
import six import django from django.db import models if django.VERSION >= (2, 0): from django.urls import reverse else: from django.core.urlresolvers import reverse if django.VERSION >= (1, 10): from django.utils.deprecation import MiddlewareMixin else: MiddlewareMixin = object def get_rel_model(fi...
Fix getting model of foreign key field.
Fix getting model of foreign key field.
Python
bsd-3-clause
python-social-auth/social-app-django,python-social-auth/social-app-django,python-social-auth/social-app-django
python
## Code Before: import six import django from django.db import models if django.VERSION >= (2, 0): from django.urls import reverse else: from django.core.urlresolvers import reverse if django.VERSION >= (1, 10): from django.utils.deprecation import MiddlewareMixin else: MiddlewareMixin = object def ...
2803f9c9fcaa766a00f16b0980cad8c67fbf1e5a
.swiftlint.yml
.swiftlint.yml
disabled_rules: # Disable insistence on parameter and returns documentation. "Writing a great # summary is more important than leveraging keywords." See # https://github.com/realm/SwiftLint/issues/284 for discussion. - valid_docs
disabled_rules: # Disable insistence on parameter and returns documentation. "Writing a great # summary is more important than leveraging keywords." See # https://github.com/realm/SwiftLint/issues/284 for discussion. - valid_docs # Extend the line length warning and error levels by 50%; the default 100 # colum...
Increase line-length warning and error levels
Increase line-length warning and error levels
YAML
mit
royratcliffe/HypertextApplicationLanguage,royratcliffe/HypertextApplicationLanguage
yaml
## Code Before: disabled_rules: # Disable insistence on parameter and returns documentation. "Writing a great # summary is more important than leveraging keywords." See # https://github.com/realm/SwiftLint/issues/284 for discussion. - valid_docs ## Instruction: Increase line-length warning and error levels ##...
8bdba535846158b9a89f539c2728cd6451be643f
IRMATube/Issues/member/description.xml
IRMATube/Issues/member/description.xml
<IssueSpecification> <Name>IRMATube member</Name> <ShortName>IRMATube</ShortName> <IssuerID>IRMATube</IssuerID> <CredentialID>member</CredentialID> <Description> Your IRMATube membership. </Description> <Id>200</Id> <Attributes> <Attribute> <Name>name</Name> <Description>Your name</Description> </At...
<IssueSpecification> <Name>IRMATube member</Name> <ShortName>IRMATube</ShortName> <IssuerID>IRMATube</IssuerID> <CredentialID>member</CredentialID> <Description> Your IRMATube membership. </Description> <Id>200</Id> <Attributes> <Attribute> <Name>type</Name> <Description>Your membership type</Descript...
Revert "Added name attribute to IRMATube member"
Revert "Added name attribute to IRMATube member" Changing the structure of credentials that are already in the wild is a Bad Idea. This reverts commit b44e018a2198ea11c6476c1866b080f09a9409bd.
XML
cc0-1.0
identificaatcie/irma_configuration
xml
## Code Before: <IssueSpecification> <Name>IRMATube member</Name> <ShortName>IRMATube</ShortName> <IssuerID>IRMATube</IssuerID> <CredentialID>member</CredentialID> <Description> Your IRMATube membership. </Description> <Id>200</Id> <Attributes> <Attribute> <Name>name</Name> <Description>Your name</Des...
ddbf60b54478b0d5c0062723115c93b567f9ab11
README.md
README.md
Open edX 2015 conference slides =============================== This repo contains the slides from my talk, and [here is the video](https://www.youtube.com/watch?v=V1EBo1l8BgY). Just download the source and open it in a browser: git clone https://github.com/regisb/openedx-conference-2015 slides/ firefox slid...
Open edX 2015 conference slides =============================== This repo contains the slides from my talk, and [here is the video](https://www.youtube.com/watch?v=V1EBo1l8BgY). The slides are visible here: [http://regisb.github.io/openedx-conference-2015](http://regisb.github.io/openedx-conference-2015).
Add link to github.io page
Add link to github.io page
Markdown
agpl-3.0
regisb/openedx-conference-2015,regisb/openedx-conference-2015
markdown
## Code Before: Open edX 2015 conference slides =============================== This repo contains the slides from my talk, and [here is the video](https://www.youtube.com/watch?v=V1EBo1l8BgY). Just download the source and open it in a browser: git clone https://github.com/regisb/openedx-conference-2015 slides/ ...
9b2d1b9960076949e373c59180c2a569838e2660
src/ext/twitter/components/ListTweet.jsx
src/ext/twitter/components/ListTweet.jsx
var React = require('react'); var moment = require('moment'); var ListTweet = React.createClass({ render() { var cssClasses = 'list__item'; return ( <div className={cssClasses}> {this.props.tweet.text} </div> ); } }); module.exports = ListTweet...
var React = require('react'); var moment = require('moment'); var ListTweet = React.createClass({ render() { var cssClasses = 'list__item'; return ( <div className={cssClasses}> {this.props.tweet.text} <div> <i className="fa fa-retwe...
Add fav and retweet count for twitter list tweet
Add fav and retweet count for twitter list tweet
JSX
mit
beni55/mozaik,michaelchiche/mozaik,juhamust/mozaik,beni55/mozaik,tlenclos/mozaik,plouc/mozaik,tlenclos/mozaik,codeaudit/mozaik,plouc/mozaik,backjo/mozaikdummyfork,juhamust/mozaik,danielw92/mozaik,backjo/mozaikdummyfork,michaelchiche/mozaik,codeaudit/mozaik,danielw92/mozaik
jsx
## Code Before: var React = require('react'); var moment = require('moment'); var ListTweet = React.createClass({ render() { var cssClasses = 'list__item'; return ( <div className={cssClasses}> {this.props.tweet.text} </div> ); } }); module.exp...
a0fd5c9adff80e057e53f4788531fe8fe9027317
app/assets/javascripts/posts.js.coffee
app/assets/javascripts/posts.js.coffee
$ -> $('time').each (index, elem) -> $elem = $(elem) datetime = $elem.attr 'datetime' $elem.text moment(new Date(datetime)).fromNow() $('.preview').on 'click', -> textid = $(this).data('text') titleid = $(this).data('title') title = $(titleid).val() text = $(textid).val() $.post '...
$ -> $('time').each (index, elem) -> $elem = $(elem) datetime = $elem.attr 'datetime' moment.locale(I18n.locale) $elem.text moment(new Date(datetime)).fromNow() $('.preview').on 'click', -> textid = $(this).data('text') titleid = $(this).data('title') title = $(titleid).val() text...
Initialize moment to english or swedish
Initialize moment to english or swedish Fixes #104
CoffeeScript
mit
cthit/chalmersit-rails,cthit/chalmersit-rails,cthit/chalmersit-rails,cthit/chalmersit-rails
coffeescript
## Code Before: $ -> $('time').each (index, elem) -> $elem = $(elem) datetime = $elem.attr 'datetime' $elem.text moment(new Date(datetime)).fromNow() $('.preview').on 'click', -> textid = $(this).data('text') titleid = $(this).data('title') title = $(titleid).val() text = $(textid).va...
08122257c9123c10158201ce1b7da580d5597718
lib/core/helpers/translation_helper.dart
lib/core/helpers/translation_helper.dart
import 'dart:ui'; import 'package:easy_localization/easy_localization.dart'; import '../../translations/locale_keys.g.dart'; class TranslationHelper { static List<Locale> supportedLocales() { return [ const Locale('de'), const Locale('el'), const Locale('en'), const Locale('es'), ...
import 'dart:ui'; import 'package:easy_localization/easy_localization.dart'; import '../../translations/locale_keys.g.dart'; class TranslationHelper { static List<Locale> supportedLocales() { return [ const Locale('de'), const Locale('el'), const Locale('en'), const Locale('es'), ...
Fix Swedish translations not being implemented.
Fix Swedish translations not being implemented.
Dart
mit
wcomartin/PlexPy-Remote
dart
## Code Before: import 'dart:ui'; import 'package:easy_localization/easy_localization.dart'; import '../../translations/locale_keys.g.dart'; class TranslationHelper { static List<Locale> supportedLocales() { return [ const Locale('de'), const Locale('el'), const Locale('en'), const Loca...
791e688a7d691048a008614d42c6d1e44c116b91
articles/services/auth0-introduction.md
articles/services/auth0-introduction.md
--- description: Training covering fundamentals of the Auth0 service. --- # Training: Auth0 Introduction A training covering fundamentals of the Auth0 service. Audience is Developers, Solutions Architects, Security and Infrastructure engineers. ## Duration 8 hours. ## Level **Level 200** assumes basic or little ...
--- description: Training covering fundamentals of the Auth0 service. --- # Training: Auth0 Introduction This training course explains the fundamentals of Auth0 services. The intended audience is developers, solutions architects, security and infrastructure engineers. ## Duration 8 hours ## Level This course is *...
Clean up Intro course doc
Clean up Intro course doc https://trello.com/c/f6sj4W74/1408-training-auth0-introduction
Markdown
mit
auth0/docs,yvonnewilson/docs,auth0/docs,jeffreylees/docs,jeffreylees/docs,jeffreylees/docs,yvonnewilson/docs,yvonnewilson/docs,auth0/docs
markdown
## Code Before: --- description: Training covering fundamentals of the Auth0 service. --- # Training: Auth0 Introduction A training covering fundamentals of the Auth0 service. Audience is Developers, Solutions Architects, Security and Infrastructure engineers. ## Duration 8 hours. ## Level **Level 200** assumes ...
1d17f5adbcb7d5679825dcb8e39a8c96f0c75ca2
README.md
README.md
BirdportSimulator3D ==== A simulator for [Fly Your Ideas](https://www.airbus-fyi.com/) 2015 competition by Airbus, witten in Javascript. ## Description The mission of us, Team Birdport, in Fly Your Ideas 2015 competition is to guide birds from an airport to other places so that we can prevent bird strikes in the air...
BirdportSimulator3D ==== A simulator for [Fly Your Ideas](https://www.airbus-fyi.com/) 2015 competition by Airbus, witten in Javascript. ## Description The mission of us, Team Birdport, in Fly Your Ideas 2015 competition is to guide birds from an airport to other places so that we can prevent bird strikes in the air...
Replace link to the demo with github.io
Replace link to the demo with github.io
Markdown
mit
motokimura/BirdportSimulator3D,motokimura/BirdportSimulator3D
markdown
## Code Before: BirdportSimulator3D ==== A simulator for [Fly Your Ideas](https://www.airbus-fyi.com/) 2015 competition by Airbus, witten in Javascript. ## Description The mission of us, Team Birdport, in Fly Your Ideas 2015 competition is to guide birds from an airport to other places so that we can prevent bird st...
bd6c2488fd75c880c083cfcf5ddba476da2cf576
omnibus/files/private-chef-cookbooks/private-chef/templates/default/sv-oc_id-run.erb
omnibus/files/private-chef-cookbooks/private-chef/templates/default/sv-oc_id-run.erb
exec 2>&1 DIR=/opt/opscode/embedded/service/oc_id export RAILS_ENV=production export PATH=/opt/opscode/embedded/bin:$PATH export LD_LIBRARY_PATH=/opt/opscode/embedded/lib cd $DIR exec chpst -P -u <%= node['private_chef']['user']['username'] %> -U <%= node['private_chef']['user']['username'] %> /opt/opscode/embedded/bi...
exec 2>&1 DIR=/opt/opscode/embedded/service/oc_id export RAILS_ENV=production export PATH=/opt/opscode/embedded/bin:$PATH export LD_LIBRARY_PATH=/opt/opscode/embedded/lib export HOME=$DIR cd $DIR exec chpst -P -u <%= node['private_chef']['user']['username'] %> -U <%= node['private_chef']['user']['username'] %> /opt/o...
Set HOME in oc_id's runsv script
[oc_id] Set HOME in oc_id's runsv script Upstream omnibus-software no longer builds Ruby with readline. This means that 'require "readline"' now picks up the rb-readline that oc_id installs into our ruby environment. Bundler internally does a require on readline during `bundle exec`. Unfortunately rb-readline fails if...
HTML+ERB
apache-2.0
stephenbm/chef-server,chef/chef-server,stephenbm/chef-server,juliandunn/chef-server-1,marcparadise/chef-server,chef/chef-server,stephenbm/chef-server,marcparadise/chef-server,chef/chef-server,chef/chef-server,marcparadise/chef-server,stephenbm/chef-server,itmustbejj/chef-server,juliandunn/chef-server-1,itmustbejj/chef-...
html+erb
## Code Before: exec 2>&1 DIR=/opt/opscode/embedded/service/oc_id export RAILS_ENV=production export PATH=/opt/opscode/embedded/bin:$PATH export LD_LIBRARY_PATH=/opt/opscode/embedded/lib cd $DIR exec chpst -P -u <%= node['private_chef']['user']['username'] %> -U <%= node['private_chef']['user']['username'] %> /opt/ops...
5d35e58fe0ba09c3ceca29c964b3b944c2c73c60
app/extensions/RateIt/twig/rateit.twig
app/extensions/RateIt/twig/rateit.twig
{% if record %} {% set suffix = '-' ~ record.id %} {% else %} {% set suffix = '' %} {% endif %} <input type="range" min="0" max="{{ max }}" value="0" step="{{ inc }}" id="boltrateit{{ suffix }}"/> <div class="rateit {{ config['class'] }}" data-bolt-record-id="{{ record.id|default('')...
{% if record %} {% set suffix = '-' ~ record.id %} {% else %} {% set suffix = '' %} {% endif %} <input type="range" min="0" max="{{ max }}" value="0" step="{{ inc }}" id="boltrateit{{ suffix }}"/> <div class="rateit {{ config['class'] }}" data-bolt-record-id="{{ record.id|default('')...
Duplicate attribute in RateIt HTML output fixed.
Duplicate attribute in RateIt HTML output fixed.
Twig
mit
Raistlfiren/bolt,rossriley/bolt,HonzaMikula/bolt,lenvanessen/bolt,one988/cm,joshuan/bolt,CarsonF/bolt,Raistlfiren/bolt,Raistlfiren/bolt,GDmac/bolt,GDmac/bolt,bywatersolutions/reports-site,marcin-piela/bolt,one988/cm,GawainLynch/bolt,cdowdy/bolt,hannesl/bolt,Intendit/bolt,HonzaMikula/bolt,nantunes/bolt,bywatersolutions/...
twig
## Code Before: {% if record %} {% set suffix = '-' ~ record.id %} {% else %} {% set suffix = '' %} {% endif %} <input type="range" min="0" max="{{ max }}" value="0" step="{{ inc }}" id="boltrateit{{ suffix }}"/> <div class="rateit {{ config['class'] }}" data-bolt-record-id="{{ recor...
dafa938923370e4fd1497cde7c5c214d385ba524
.travis.yml
.travis.yml
language: c env: - TMUX_VERSION="1.6" - TMUX_VERSION="1.7" - TMUX_VERSION="1.8" - TMUX_VERSION="1.9a" before_install: - sudo apt-get update - sudo apt-get install -y bc build-essential libevent-dev libncurses5-dev - wget http://downloads.sourceforge.net/tmux/tmux-${TMUX_VERSION}.tar.gz - tar -zxf tmux-$...
language: c env: - TMUX_VERSION="1.6" - TMUX_VERSION="1.7" - TMUX_VERSION="1.8" - TMUX_VERSION="1.9a" - TMUX_VERSION="2.0" before_install: - sudo apt-get update - sudo apt-get install -y bc build-essential libevent-dev libncurses5-dev - wget http://downloads.sourceforge.net/tmux/tmux-${TMUX_VERSION}.tar...
Add Tmux 2.0 to Travis-CI test environments
Add Tmux 2.0 to Travis-CI test environments
YAML
mit
jimeh/tmuxifier,truetone/tmuxifier
yaml
## Code Before: language: c env: - TMUX_VERSION="1.6" - TMUX_VERSION="1.7" - TMUX_VERSION="1.8" - TMUX_VERSION="1.9a" before_install: - sudo apt-get update - sudo apt-get install -y bc build-essential libevent-dev libncurses5-dev - wget http://downloads.sourceforge.net/tmux/tmux-${TMUX_VERSION}.tar.gz -...
5afa1a01fc2490e77d9c8d417b0d7f17c46d7791
app/Resources/views/Chat/_chat_stats.html.twig
app/Resources/views/Chat/_chat_stats.html.twig
{%- if messages is defined -%}{% dump(conversation.seconds) %} {{ conversation.seconds|date_interval }} {%- if is_granted('ROLE_MODEL') %} = ${{ conversation.modelEarnings|number_format(2) }} {%- endif -%} {%- endif -%}
{%- if messages is defined -%} {{ conversation.seconds|date_interval }} {%- if is_granted('ROLE_MODEL') %} = ${{ conversation.modelEarnings|number_format(2) }} {%- endif -%} {%- endif -%}
Remove dump tag from template
Remove dump tag from template
Twig
mit
nchervyakov/chat,nchervyakov/chat,nchervyakov/chat,nchervyakov/chat
twig
## Code Before: {%- if messages is defined -%}{% dump(conversation.seconds) %} {{ conversation.seconds|date_interval }} {%- if is_granted('ROLE_MODEL') %} = ${{ conversation.modelEarnings|number_format(2) }} {%- endif -%} {%- endif -%} ## Instruction: Remove dump tag from template ## Code After: {%...
0b67a4bbb55afa301818d11e8d6fb4c9a6f560b4
app/views/forem/admin/forums/_form.html.erb
app/views/forem/admin/forums/_form.html.erb
<%= simple_form_for [forem, :admin, @forum] do |f| %> <%= f.association :category, :include_blank => false %> <%= f.input :title %> <%= f.input :description, :as => :text %> <h3>Moderator Groups</h3> <%= f.association :moderators, :as => :check_boxes %> <%= f.submit %> <% end %>
<%= simple_form_for [forem, :admin, @forum] do |f| %> <%= f.association :category, :include_blank => false %> <%= f.input :title %> <%= f.input :description, :as => :text %> <h3>Private for</h3> <%= f.association :allowed_viewers, :as => :check_boxes %> <h3>Moderator Groups</h3> <%= f.association :moder...
Add 'private for' option in forum creation view
Add 'private for' option in forum creation view
HTML+ERB
mit
gabriel-dehan/forem,gabriel-dehan/forem
html+erb
## Code Before: <%= simple_form_for [forem, :admin, @forum] do |f| %> <%= f.association :category, :include_blank => false %> <%= f.input :title %> <%= f.input :description, :as => :text %> <h3>Moderator Groups</h3> <%= f.association :moderators, :as => :check_boxes %> <%= f.submit %> <% end %> ## Instruc...
ba5001f59090ec70584e4819768cd3d610acf74c
_config.yml
_config.yml
markdown: kramdown # for abbreviations and footnotes highlighter: 'pygments' kramdown: input: GFM # Permalinks permalink: /posts/:title # Setup title: 'Code is Fun' tagline: 'Adrian Scipcă''s blog' description: 'Technical ramblings of a Senior Software Engineer' url: ...
markdown: kramdown # for abbreviations and footnotes highlighter: 'pygments' kramdown: input: GFM # Permalinks permalink: /posts/:title/index.html # Setup title: 'Code is Fun' tagline: 'Adrian Scipcă''s blog' description: 'Technical ramblings of a Senior Software Enginee...
Fix trailing slash indexing issue in Jekyll
Fix trailing slash indexing issue in Jekyll
YAML
mit
benishor/benishor.github.io
yaml
## Code Before: markdown: kramdown # for abbreviations and footnotes highlighter: 'pygments' kramdown: input: GFM # Permalinks permalink: /posts/:title # Setup title: 'Code is Fun' tagline: 'Adrian Scipcă''s blog' description: 'Technical ramblings of a Senior Software En...
4d7bb736515e639dd42659d0eb72d90b06f98a98
src/teach_by_friends/shared/components/row.cljs
src/teach_by_friends/shared/components/row.cljs
(ns teach-by-friends.shared.components.row (:require [teach-by-friends.shared.ui :as ui] [clojure.string :refer [capitalize]])) (defn row [data press-handler] (let [data-to-clj (js->clj data :keywordize-keys true)] [ui/touchable-opacity {:style {:border-bottom-width 1 ...
(ns teach-by-friends.shared.components.row (:require [teach-by-friends.shared.ui :as ui] [clojure.string :refer [capitalize]])) (defn row [data press-handler] (let [data-to-clj (js->clj data :keywordize-keys true)] [ui/touchable-opacity {:style {:position "relative" ...
Use cover image in serials list
Use cover image in serials list
Clojure
epl-1.0
savelichalex/friends-teach,savelichalex/friends-teach,savelichalex/friends-teach,savelichalex/friends-teach
clojure
## Code Before: (ns teach-by-friends.shared.components.row (:require [teach-by-friends.shared.ui :as ui] [clojure.string :refer [capitalize]])) (defn row [data press-handler] (let [data-to-clj (js->clj data :keywordize-keys true)] [ui/touchable-opacity {:style {:border-bottom-width 1 ...
66863c541b4ff0cd70c851dad4dd6a38a8156964
C++/API/Treehopper/CMakeLists.txt
C++/API/Treehopper/CMakeLists.txt
cmake_minimum_required(VERSION 3.7) project(Treehopper) add_definitions(-DTREEHOPPER_EXPORTS) set(CMAKE_CXX_STANDARD 11) set(PROJECT_SOURCE_DIR src/) file(GLOB COMMON_SRC ${PROJECT_SOURCE_DIR}/*.cpp) if(WIN32) set(TARGET_BUILD_PLATFORM win) endif(WIN32) if(UNIX) set(TARGET_BUILD_PLATFORM linux) endif(UNIX...
cmake_minimum_required(VERSION 3.7) project(Treehopper) add_definitions(-DTREEHOPPER_EXPORTS) set(CMAKE_CXX_STANDARD 11) set(PROJECT_SOURCE_DIR src/) file(GLOB COMMON_SRC ${PROJECT_SOURCE_DIR}/*.cpp) if(WIN32) set(TARGET_BUILD_PLATFORM win) endif(WIN32) if(UNIX) set(TARGET_BUILD_PLATFORM linux) endif(UNIX...
Fix APPLE == UNIX bug
Fix APPLE == UNIX bug
Text
mit
treehopper-electronics/treehopper-sdk,treehopper-electronics/treehopper-sdk,treehopper-electronics/treehopper-sdk,treehopper-electronics/treehopper-sdk,treehopper-electronics/treehopper-sdk,treehopper-electronics/treehopper-sdk
text
## Code Before: cmake_minimum_required(VERSION 3.7) project(Treehopper) add_definitions(-DTREEHOPPER_EXPORTS) set(CMAKE_CXX_STANDARD 11) set(PROJECT_SOURCE_DIR src/) file(GLOB COMMON_SRC ${PROJECT_SOURCE_DIR}/*.cpp) if(WIN32) set(TARGET_BUILD_PLATFORM win) endif(WIN32) if(UNIX) set(TARGET_BUILD_PLATFORM l...
f77e9f2408265f07c694e3ede9fe8e7954f5ee9e
tests/index.php
tests/index.php
<?php /** * */ class Test_News_MyTest extends UnitTestCase { public function testTest() { $this->assertTrue(false); } }
<?php /** * */ OC_App::loadApp('news'); class Test_News_MyTest extends UnitTestCase { public function testTest() { $this->assertTrue(false); } }
Add loadApp to test cases
Add loadApp to test cases
PHP
agpl-3.0
itstar4tech/news,itstar4tech/news,David-Development/news,IBBoard/news,owncloud/news,IBBoard/news,Xefir/news,itstar4tech/news,IBBoard/news,owncloud/news,owncloud/news,David-Development/news,David-Development/news,itstar4tech/news,Xefir/news,Xefir/news,Xefir/news,IBBoard/news,David-Development/news
php
## Code Before: <?php /** * */ class Test_News_MyTest extends UnitTestCase { public function testTest() { $this->assertTrue(false); } } ## Instruction: Add loadApp to test cases ## Code After: <?php /** * */ OC_App::loadApp('news'); class Test_News_MyTest extends UnitTestCase { public funct...
5a602e48b885aeb984cfef6fbb814bcf91c4acc6
src/UserScript.hx
src/UserScript.hx
import haxe.macro.Expr; #end class UserScript { @:macro public static function extract_meta(uscls:String, file:String):Expr { haxe.macro.Context.onGenerate(function (types) { for (type in types) { switch (type) { case TInst(c, _): ...
import haxe.macro.Expr; #end class UserScript { @:macro public static function extract_meta(uscls:String, file:String):Expr { haxe.macro.Context.onGenerate(function (types) { for (type in types) { switch (type) { case TInst(c, _): ...
Remove userscript metadata from generated code.
Remove userscript metadata from generated code. We don't want to have redundant information, besides: why would we want to keep metadata anyway except for the version? And for the latter it should be enough to just encode it using macros.
Haxe
bsd-3-clause
imps/cncta
haxe
## Code Before: import haxe.macro.Expr; #end class UserScript { @:macro public static function extract_meta(uscls:String, file:String):Expr { haxe.macro.Context.onGenerate(function (types) { for (type in types) { switch (type) { case TInst(c, _): ...
7b02dd3197d43c1db90e3134bc39d4aa417f4b53
src/main/java/leetcode/Problem303.java
src/main/java/leetcode/Problem303.java
package leetcode; import java.util.HashMap; import java.util.Map; /** * https://leetcode.com/problems/range-sum-query-immutable/ */ public class Problem303 { public static class NumArray { private final Map<Integer, Integer> map = new HashMap<>(); private final int[] nums; public NumArr...
package leetcode; /** * https://leetcode.com/problems/range-sum-query-immutable/ */ public class Problem303 { public static class NumArray { private final int[] nums; public NumArray(int[] nums) { this.nums = nums; if (nums.length > 0) { for (int i = 1; i ...
Optimize solution to problem 303
Optimize solution to problem 303
Java
mit
fredyw/leetcode,fredyw/leetcode,fredyw/leetcode,fredyw/leetcode
java
## Code Before: package leetcode; import java.util.HashMap; import java.util.Map; /** * https://leetcode.com/problems/range-sum-query-immutable/ */ public class Problem303 { public static class NumArray { private final Map<Integer, Integer> map = new HashMap<>(); private final int[] nums; ...
d907b127ce8d718be5d3f4cbc94a4924429ae728
project/app/src/main/java/org/owntracks/android/support/ServiceBridge.java
project/app/src/main/java/org/owntracks/android/support/ServiceBridge.java
package org.owntracks.android.support; import org.owntracks.android.injection.scopes.PerApplication; import org.owntracks.android.services.BackgroundService; import java.lang.ref.WeakReference; import javax.inject.Inject; import androidx.annotation.NonNull; @PerApplication public class ServiceBridge { private ...
package org.owntracks.android.support; import org.owntracks.android.injection.scopes.PerApplication; import java.lang.ref.WeakReference; import javax.inject.Inject; import androidx.annotation.NonNull; @PerApplication public class ServiceBridge { private WeakReference<ServiceBridgeInterface> serviceWeakReferen...
Fix crash when receiving reportLocation command before service is bound
Fix crash when receiving reportLocation command before service is bound
Java
epl-1.0
owntracks/android,owntracks/android,owntracks/android
java
## Code Before: package org.owntracks.android.support; import org.owntracks.android.injection.scopes.PerApplication; import org.owntracks.android.services.BackgroundService; import java.lang.ref.WeakReference; import javax.inject.Inject; import androidx.annotation.NonNull; @PerApplication public class ServiceBridg...
6f12c8fb7cb253d6426aef49cb9c2dbafae579ea
symbols.js
symbols.js
define([ 'symbols/base', 'symbols/dnd', 'symbols/architecture' ], function(baseScaled, dndScaled, architectureScaled) { var scaledSymbols = function(scale) { var options = { scale : scale, doorOffset : 8 }; options.doorThickness = options.doorOffset; options.doorWidth = ...
define([ 'symbols/base', 'symbols/dnd' ], function(baseScaled, dndScaled, architectureScaled) { var scaledSymbols = function(scale) { var options = { scale : scale, doorOffset : 8 }; options.doorThickness = options.doorOffset; options.doorWidth = options.scale - (options.doo...
Remove reference to 'architecture' symbol style
Remove reference to 'architecture' symbol style These symbols aren't included in the repository, as I'm unsure of their copyright status.
JavaScript
mit
isikyus/aeldardin-rooms,isikyus/aeldardin-rooms
javascript
## Code Before: define([ 'symbols/base', 'symbols/dnd', 'symbols/architecture' ], function(baseScaled, dndScaled, architectureScaled) { var scaledSymbols = function(scale) { var options = { scale : scale, doorOffset : 8 }; options.doorThickness = options.doorOffset; options....
c2f407a53ad1de0787bb8a7c709018007db35176
.idea/runConfigurations/Generate_Documentation.xml
.idea/runConfigurations/Generate_Documentation.xml
<component name="ProjectRunConfigurationManager"> <configuration default="false" name="Generate Documentation" type="docs" factoryName="Sphinx task"> <option name="INTERPRETER_OPTIONS" value="" /> <option name="PARENT_ENVS" value="true" /> <envs /> <option name="SDK_HOME" value="" /> <option name=...
<component name="ProjectRunConfigurationManager"> <configuration default="false" name="Generate Documentation" type="docs" factoryName="Sphinx task"> <option name="INTERPRETER_OPTIONS" value="" /> <option name="PARENT_ENVS" value="true" /> <envs /> <option name="SDK_HOME" value="" /> <option name=...
Update docgen PyCharm config to be more portable.
Update docgen PyCharm config to be more portable.
XML
mit
tylerbutler/engineer,tylerbutler/engineer,tylerbutler/engineer
xml
## Code Before: <component name="ProjectRunConfigurationManager"> <configuration default="false" name="Generate Documentation" type="docs" factoryName="Sphinx task"> <option name="INTERPRETER_OPTIONS" value="" /> <option name="PARENT_ENVS" value="true" /> <envs /> <option name="SDK_HOME" value="" /> ...
324a2d216de1ab8cc6f41677d6080387855a7355
README.md
README.md
<a href="https://explosion.ai"><img src="https://explosion.ai/assets/img/logo.svg" width="125" height="125" align="right" /></a> # catalogue [![Azure Pipelines](https://img.shields.io/azure-devops/build/explosion-ai/public/14/master.svg?logo=azure-pipelines&style=flat-square&label=build)](https://dev.azure.com/explos...
<a href="https://explosion.ai"><img src="https://explosion.ai/assets/img/logo.svg" width="125" height="125" align="right" /></a> # catalogue [![Azure Pipelines](https://img.shields.io/azure-devops/build/explosion-ai/public/14/master.svg?logo=azure-pipelines&style=flat-square&label=build)](https://dev.azure.com/explos...
Write basic blurb for readme
Write basic blurb for readme
Markdown
mit
explosion/catalogue,explosion/catalogue
markdown
## Code Before: <a href="https://explosion.ai"><img src="https://explosion.ai/assets/img/logo.svg" width="125" height="125" align="right" /></a> # catalogue [![Azure Pipelines](https://img.shields.io/azure-devops/build/explosion-ai/public/14/master.svg?logo=azure-pipelines&style=flat-square&label=build)](https://dev....
3bbe607186cefdc6f925fcb345296f634b95abd1
test/tests/KeyboardDirectionMixin.tests.js
test/tests/KeyboardDirectionMixin.tests.js
import * as symbols from '../../src/symbols.js'; import KeyboardDirectionMixin from '../../src/KeyboardDirectionMixin.js'; class KeyboardDirectionMixinTest extends KeyboardDirectionMixin(HTMLElement) { [symbols.goRight]() { if (super[symbols.goRight]) { super[symbols.goRight](); } return true; } } customE...
import * as symbols from '../../src/symbols.js'; import KeyboardDirectionMixin from '../../src/KeyboardDirectionMixin.js'; class KeyboardDirectionMixinTest extends KeyboardDirectionMixin(HTMLElement) { constructor() { super(); this.state = {}; } [symbols.goRight]() { if (super[symbols.goRight]) { ...
Fix broken unit test which resulted from deprecating KeyboardDirectionMixin defining a public orientation property.
Fix broken unit test which resulted from deprecating KeyboardDirectionMixin defining a public orientation property.
JavaScript
mit
robbear/elix,elix/elix,robbear/elix,elix/elix,JanMiksovsky/elix,JanMiksovsky/elix
javascript
## Code Before: import * as symbols from '../../src/symbols.js'; import KeyboardDirectionMixin from '../../src/KeyboardDirectionMixin.js'; class KeyboardDirectionMixinTest extends KeyboardDirectionMixin(HTMLElement) { [symbols.goRight]() { if (super[symbols.goRight]) { super[symbols.goRight](); } return tru...
8d7ae6963b99fa5a4909470fa0058a3ec5f99e86
src/Ajax/Controller.php
src/Ajax/Controller.php
<?php namespace Solid\Ajax\Controllers; use Illuminate\Routing\Controller as BaseController; class Controller extends BaseController { /** * Execute an action on the controller. * * @param string $method * @param array $parameters * @return \Symfony\Component\HttpFoundation\Response...
<?php namespace Solid\Ajax; use Illuminate\Routing\Controller as BaseController; class Controller extends BaseController { /** * Execute an action on the controller. * * @param string $method * @param array $parameters * @return \Symfony\Component\HttpFoundation\Response */ ...
Fix namespace on solid ajax.
Fix namespace on solid ajax.
PHP
apache-2.0
true-agency/solid,true-agency/solid,true-agency/solid
php
## Code Before: <?php namespace Solid\Ajax\Controllers; use Illuminate\Routing\Controller as BaseController; class Controller extends BaseController { /** * Execute an action on the controller. * * @param string $method * @param array $parameters * @return \Symfony\Component\HttpFou...
dc32cf301011fcb6c3a25f95c85beab6cb297e35
ubuntu/templates/default/cron/fr2_data.erb
ubuntu/templates/default/cron/fr2_data.erb
0,5,10,15,20,25,30,35,40,45,50,55 8-23 * * 1-5 <%=@run_user%> cd <%=@apache_web_dir%>/apps/<%=@app_name%>/current && /usr/bin/rake RAILS_ENV=<%=@rails_env%> PATH=/opt/ruby-enterprise/bin:$PATH data:daily >> <%=@apache_web_dir%>/apps/<%=@app_name%>/shared/log/cron.log 2>&1
0,5,10,15,20,25,30,35,40,45,50,55 8-18 * * 1-5 <%=@run_user%> cd <%=@apache_web_dir%>/apps/<%=@app_name%>/current && /usr/bin/rake RAILS_ENV=<%=@rails_env%> PATH=/opt/ruby-enterprise/bin:$PATH data:daily >> <%=@apache_web_dir%>/apps/<%=@app_name%>/shared/log/cron.log 2>&1 # Find the matching regulations.gov URL for ...
Refactor database.yml into a single file based on rails environment
Refactor database.yml into a single file based on rails environment
HTML+ERB
apache-2.0
criticaljuncture/cookbooks,criticaljuncture/cookbooks,criticaljuncture/cookbooks
html+erb
## Code Before: 0,5,10,15,20,25,30,35,40,45,50,55 8-23 * * 1-5 <%=@run_user%> cd <%=@apache_web_dir%>/apps/<%=@app_name%>/current && /usr/bin/rake RAILS_ENV=<%=@rails_env%> PATH=/opt/ruby-enterprise/bin:$PATH data:daily >> <%=@apache_web_dir%>/apps/<%=@app_name%>/shared/log/cron.log 2>&1 ## Instruction: Refactor dat...
b3f1a7bbb75eaa92a7c30a0cec9236dcabf6f4a1
notes/small_tools/command_line_options.md
notes/small_tools/command_line_options.md
Command line options are flags or configurations that are listed after the name of the program when you call it on the command line. The `-a` option can be used with the `ls` program to show even hidden files: ``` ls -a ``` #Command Line Arguments When your program only needs one or more strings of the same type, (...
Command line options are flags or configurations that are listed after the name of the program when you call it on the command line. The `-a` option can be used with the `ls` program to show even hidden files: ``` ls -a ``` ##Command Line Arguments When your program only needs one or more strings of the same type, ...
Add examples in notes of accessing command line options
Add examples in notes of accessing command line options
Markdown
mit
WomenWhoCode/CProgrammingCurriculum
markdown
## Code Before: Command line options are flags or configurations that are listed after the name of the program when you call it on the command line. The `-a` option can be used with the `ls` program to show even hidden files: ``` ls -a ``` #Command Line Arguments When your program only needs one or more strings of ...
a37ea675122ca7da96a84090aa86f7e7eaa038d4
src/lib/get-costume-url.js
src/lib/get-costume-url.js
import storage from './storage'; import {SVGRenderer} from 'scratch-svg-renderer'; // Contains 'font-family', but doesn't only contain 'font-family="none"' const HAS_FONT_REGEXP = 'font-family(?!="none")'; const getCostumeUrl = (function () { let cachedAssetId; let cachedUrl; return function (asset) { ...
import storage from './storage'; import {inlineSvgFonts} from 'scratch-svg-renderer'; // Contains 'font-family', but doesn't only contain 'font-family="none"' const HAS_FONT_REGEXP = 'font-family(?!="none")'; const getCostumeUrl = (function () { let cachedAssetId; let cachedUrl; return function (asset) {...
Use fontInliner instead of entire SVGRenderer for showing costume tiles.
Use fontInliner instead of entire SVGRenderer for showing costume tiles. The fontInliner from the scratch-svg-renderer was changed recently to work entirely on strings, so we can use that instead of parsing/loading/possibly drawing/stringifying the entire SVG. This does not address the size-1 cache issue where the c...
JavaScript
bsd-3-clause
LLK/scratch-gui,LLK/scratch-gui
javascript
## Code Before: import storage from './storage'; import {SVGRenderer} from 'scratch-svg-renderer'; // Contains 'font-family', but doesn't only contain 'font-family="none"' const HAS_FONT_REGEXP = 'font-family(?!="none")'; const getCostumeUrl = (function () { let cachedAssetId; let cachedUrl; return funct...
d93a0363ff31138441691929b10557a3abdc3dee
README.md
README.md
Begin reading [the full documentation](https://github.com/mitchellvanw/event-store/wiki) here or go to a specific chapter right away. 1. [Installation](https://github.com/mitchellvanw/event-store/wiki/Installation) 2. [How It Works](https://github.com/mitchellvanw/event-store/wiki/How-It-Works) 5. [MIT License](https...
PHP API for [Event Store](http://geteventstore.com) ## Documentation Begin reading [the full documentation](https://github.com/mitchellvanw/event-store/wiki) here or go to a specific chapter right away. 1. [Installation](https://github.com/mitchellvanw/event-store/wiki/Installation) 2. [How It Works](https://github...
Add description to read me
Add description to read me
Markdown
mit
mitchellvanw/event-store
markdown
## Code Before: Begin reading [the full documentation](https://github.com/mitchellvanw/event-store/wiki) here or go to a specific chapter right away. 1. [Installation](https://github.com/mitchellvanw/event-store/wiki/Installation) 2. [How It Works](https://github.com/mitchellvanw/event-store/wiki/How-It-Works) 5. [MI...
1f9b93b1c6120e246294a8d88ece8af3313baec1
testing/watch-port-80.sh
testing/watch-port-80.sh
PORT=${1:-"80"} IFACE=${2:-"any"} # Only include packets that contain data NOTSYNFIN=" and (((ip[2:2] - ((ip[0]&0xf)<<2)) - ((tcp[12]&0xf0)>>2)) != 0)" DUMP="tcp port ${PORT}" IPCLAUSE="" if [ "${IFACE}" != "any" ]; then IP="`ip addr show dev ${IFACE} | grep ' inet ' | tr -s ' ' | cut -f3 -d' ' | cut -f1 -d'/'`" ...
PORT=${1:-"80"} IFACE=${2:-"any"} IP=${3:-""} # Only include packets that contain data NOTSYNFIN=" and (((ip[2:2] - ((ip[0]&0xf)<<2)) - ((tcp[12]&0xf0)>>2)) != 0)" DUMP="tcp port ${PORT}" IPCLAUSE="" if [ "${IFACE}" != "any" ]; then if [ -z "${IP}" ]; then IP="`ip addr show dev ${IFACE} | grep ' inet ' | tr -s...
Add another parameter when watching traffic to external sites.
Add another parameter when watching traffic to external sites.
Shell
lgpl-2.1
lkraav/davical-rss-feature-branch,lkraav/davical-rss-feature-branch,lkraav/davical-rss-feature-branch,lkraav/davical-rss-feature-branch
shell
## Code Before: PORT=${1:-"80"} IFACE=${2:-"any"} # Only include packets that contain data NOTSYNFIN=" and (((ip[2:2] - ((ip[0]&0xf)<<2)) - ((tcp[12]&0xf0)>>2)) != 0)" DUMP="tcp port ${PORT}" IPCLAUSE="" if [ "${IFACE}" != "any" ]; then IP="`ip addr show dev ${IFACE} | grep ' inet ' | tr -s ' ' | cut -f3 -d' ' | c...
e596efa8603c8b419ef19091f025f67d8d56af56
salt/dotfiles/init.sls
salt/dotfiles/init.sls
{% set user = grains['user'] %} {% set home = "/Users/" + user %} {% set dotfiles = home + "/.dotfiles" %} include: - zsh - dotfiles.vim dotfiles: github: - latest - name: {{user}}/dotfiles - target: {{dotfiles}} - email: mdavezac@gmail.com run set of files in .zshrc: file.append: - name:...
{% set user = grains['user'] %} {% set home = "/Users/" + user %} {% set dotfiles = home + "/.dotfiles" %} include: - zsh - dotfiles.vim dotfiles: github: - latest - name: {{user}}/dotfiles - target: {{dotfiles}} - email: mdavezac@gmail.com run set of files in .zshrc: file.append: - name:...
Add user shell to acceptable shells
Add user shell to acceptable shells
SaltStack
mit
mdavezac/CondimentStation,mdavezac/black-garlic,mdavezac/pepper,mdavezac/CondimentStation,mdavezac/pepper
saltstack
## Code Before: {% set user = grains['user'] %} {% set home = "/Users/" + user %} {% set dotfiles = home + "/.dotfiles" %} include: - zsh - dotfiles.vim dotfiles: github: - latest - name: {{user}}/dotfiles - target: {{dotfiles}} - email: mdavezac@gmail.com run set of files in .zshrc: file.app...
f5426be6349867c4f4bf0f9a4e6f6a7312abb4ad
src/dtile-state/store.js
src/dtile-state/store.js
DTile.createStore = () => { const { createStore, combineReducers } = window.Redux; const entities = combineReducers(DTile.reducers.entities); const reducers = combineReducers({ entities, ui: DTile.reducers.ui }); DTile.store = createStore(reducers); DTile.ReduxMixin = window.Po...
DTile.createStore = () => { const { createStore, combineReducers } = window.Redux; const entities = combineReducers(DTile.reducers.entities); const reducers = combineReducers({ entities, ui: DTile.reducers.ui }); DTile.store = createStore( reducers, window.__REDUX_D...
Add support for Redux devtools
Add support for Redux devtools
JavaScript
unknown
MagnonGames/DTile,theMagnon/DTile,MagnonGames/DTile,theMagnon/DTile,theMagnon/DTile,MagnonGames/DTile
javascript
## Code Before: DTile.createStore = () => { const { createStore, combineReducers } = window.Redux; const entities = combineReducers(DTile.reducers.entities); const reducers = combineReducers({ entities, ui: DTile.reducers.ui }); DTile.store = createStore(reducers); DTile.ReduxM...
cb8bfdd748ffe5ad5fab20673ba0449affb9a703
vscode/settings.json
vscode/settings.json
{ "files.autoSave": "onFocusChange", "files.trimTrailingWhitespace": true, "files.insertFinalNewline": true, "editor.fontFamily": "'Fira Code','Droid Sans Mono','Menlo','Monaco','Courier New','monospace', monospace", "editor.fontLigatures": true, "editor.fontSize": 14, "editor.formatOnType"...
{ "files.autoSave": "onFocusChange", "files.trimTrailingWhitespace": true, "files.insertFinalNewline": true, "editor.fontFamily": "'Fira Code','Droid Sans Mono','Menlo','Monaco','Courier New','monospace', monospace", "editor.fontLigatures": true, "editor.fontSize": 14, "editor.formatOnType"...
Update terminal scroll back to 10,000 from 1,000
Update terminal scroll back to 10,000 from 1,000
JSON
mit
Huddo121/settings-files
json
## Code Before: { "files.autoSave": "onFocusChange", "files.trimTrailingWhitespace": true, "files.insertFinalNewline": true, "editor.fontFamily": "'Fira Code','Droid Sans Mono','Menlo','Monaco','Courier New','monospace', monospace", "editor.fontLigatures": true, "editor.fontSize": 14, "edit...
a005f4e5a21fd4ef57c2147a18d4a9da2170864e
osgi.ee.extender.cdi/src/osgi/extender/resource/impl/OurBundleResource.java
osgi.ee.extender.cdi/src/osgi/extender/resource/impl/OurBundleResource.java
/* * Copyright 2015, Imtech Traffic & Infra * Copyright 2015, aVineas IT Consulting * * 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...
/* * Copyright 2015, Imtech Traffic & Infra * Copyright 2015, aVineas IT Consulting * * 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...
Use the URL to get the stream, not the class loader. Should not have made a different, but it does.
Use the URL to get the stream, not the class loader. Should not have made a different, but it does.
Java
apache-2.0
arievanwi/osgi.ee,arievanwi/osgi.ee,arievanwi/osgi.ee
java
## Code Before: /* * Copyright 2015, Imtech Traffic & Infra * Copyright 2015, aVineas IT Consulting * * 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/lice...
3adf6467aa34cdfd17aa63d8c212a64ffa085b5d
app/models/asset_type.rb
app/models/asset_type.rb
class AssetType < ActiveRecord::Base # associations has_many :asset_subtypes #attr_accessible :name, :description, :active #attr_accessible :class_name, :form_name, :index_name #attr_accessible :map_icon_name, :display_icon_name # default scope default_scope { where(:active => true) } ...
class AssetType < ActiveRecord::Base # associations # every asset type has 0 or more sub types has_many :asset_subtypes # every asset type has 0 or more manufacturers has_many :manufacturers #attr_accessible :name, :description, :active #attr_accessible :class_name, :form_name, :index_name...
Add manufacturer list to asset types
Add manufacturer list to asset types
Ruby
mit
camsys/transam_core,nycdot/transam_core,nycdot/transam_core,camsys/transam_core,camsys/transam_core,nycdot/transam_core,camsys/transam_core
ruby
## Code Before: class AssetType < ActiveRecord::Base # associations has_many :asset_subtypes #attr_accessible :name, :description, :active #attr_accessible :class_name, :form_name, :index_name #attr_accessible :map_icon_name, :display_icon_name # default scope default_scope { where(:active ...
5225a6e4bbf81267360d0f24c67d8129d93acb0e
.travis.yml
.travis.yml
language: ruby script: "bundle exec rspec spec" env: - CI=true rvm: - 2.2.6 - 2.3.3 - 2.4.0 - jruby - rbx cache: bundler sudo: false matrix: allow_failures: - rvm: jruby - rvm: rbx
language: ruby script: "bundle exec rspec spec" env: - CI=true rvm: - 2.2 - 2.3 - 2.4 - jruby-9 - rbx-3 cache: bundler sudo: false matrix: allow_failures: - rvm: jruby-9 - rvm: rbx-3 dist: trusty
Use Travis "trusty" build and wildcard Ruby versions.
Use Travis "trusty" build and wildcard Ruby versions.
YAML
unlicense
ruby-rdf/rdf-vocab,ruby-rdf/rdf-vocab
yaml
## Code Before: language: ruby script: "bundle exec rspec spec" env: - CI=true rvm: - 2.2.6 - 2.3.3 - 2.4.0 - jruby - rbx cache: bundler sudo: false matrix: allow_failures: - rvm: jruby - rvm: rbx ## Instruction: Use Travis "trusty" build and wildcard Ruby versions. ## Code After: language: ruby...
283e07e82ce1cf8f498981d3c1aa0834f7750916
package.json
package.json
{ "name": "anonchat", "version": "1.0.0", "description": "testing sockets", "main": "serve.js", "scripts": { "test": "node serve.js" }, "author": "Paul Beaudet", "license": "UNLICENCED", "dependencies": { "bcryptjs": "^2.3.0", "body-parser": "^1.14.1", "client-sessions": "^0.7.0", ...
{ "name": "anonchat", "version": "1.0.0", "description": "This is a test web app for strangers finding common interest and chatting about it in real time", "main": "serve.js", "scripts": { "test": "node serve.js" }, "author": "Paul Beaudet", "license": "UNLICENCED", "dependencies": { "bcryptjs...
Add engine, in case that would be a deal breaker with heroku
Add engine, in case that would be a deal breaker with heroku
JSON
agpl-3.0
PaulBeaudet/Stranger_Danger,PaulBeaudet/Stranger_Danger
json
## Code Before: { "name": "anonchat", "version": "1.0.0", "description": "testing sockets", "main": "serve.js", "scripts": { "test": "node serve.js" }, "author": "Paul Beaudet", "license": "UNLICENCED", "dependencies": { "bcryptjs": "^2.3.0", "body-parser": "^1.14.1", "client-sessions"...
efe9c1e6197d74ff9cc64c558cebeb6f03bbf602
lib/interactive/prompt.zsh
lib/interactive/prompt.zsh
autoload colors && colors prompt_directory_name() { echo "%1/%\/" } export PROMPT=$'$(prompt_directory_name) $ '
autoload colors && colors prompt_directory_name() { echo "%1/%\/" } export PROMPT=$'$(prompt_directory_name) %{$fg[cyan]%}$%{$reset_color%} '
Make the little dollar sign cyan.
Make the little dollar sign cyan.
Shell
mit
kern/dotfiles,kern/dotfiles
shell
## Code Before: autoload colors && colors prompt_directory_name() { echo "%1/%\/" } export PROMPT=$'$(prompt_directory_name) $ ' ## Instruction: Make the little dollar sign cyan. ## Code After: autoload colors && colors prompt_directory_name() { echo "%1/%\/" } export PROMPT=$'$(prompt_directory_name) %{$fg[c...
8f5b71a457aceaf8b3871a4814fe4a230fc4397d
src/LogicboxesProduct.php
src/LogicboxesProduct.php
<?php namespace LaravelLb; class LogicBoxesProduct extends LogicBoxes { public $resource; public function __construct() { parent::__construct(); $this->resource = "products"; } public function getPlanDetails() { $method = "plan-details"; $response = $this->get($...
<?php namespace LaravelLb; class LogicBoxesProduct extends LogicBoxes { public $resource; public function __construct() { parent::__construct(); $this->resource = "products"; } public function getPlanDetails() { $method = "plan-details"; $response = $this->get($...
Add default contact parameter in move method.
Add default contact parameter in move method.
PHP
mit
pangpondpon/laravel-lb
php
## Code Before: <?php namespace LaravelLb; class LogicBoxesProduct extends LogicBoxes { public $resource; public function __construct() { parent::__construct(); $this->resource = "products"; } public function getPlanDetails() { $method = "plan-details"; $respons...
ce7f6cd50e0d2c29e33fb05a3e0c63ef1c3c2a9e
.travis.yml
.travis.yml
language: java jdk: - openjdk7 - oraclejdk8 cache: directories: - $HOME/.m2 # Skip the "installation" step: # https://docs.travis-ci.com/user/customizing-the-build#Skipping-the-Installation-Step install: true script: # Builds the compiler and runs tests - mvn install --batch-mode # Checks for JavaDoc e...
language: java jdk: - openjdk7 - oraclejdk8 cache: directories: - $HOME/.m2 # Skip the "installation" step: # https://docs.travis-ci.com/user/customizing-the-build#Skipping-the-Installation-Step install: true script: # Builds the compiler and runs tests - mvn install --batch-mode # Checks for JavaDoc e...
Arrange for Travis to automatically push snapshots to maven.
Arrange for Travis to automatically push snapshots to maven. Fixes https://github.com/google/closure-compiler/issues/1689 ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=156123154
YAML
apache-2.0
google/closure-compiler,nawawi/closure-compiler,MatrixFrog/closure-compiler,GerHobbelt/closure-compiler,tdelmas/closure-compiler,tiobe/closure-compiler,shantanusharma/closure-compiler,anomaly/closure-compiler,nawawi/closure-compiler,MatrixFrog/closure-compiler,GerHobbelt/closure-compiler,monetate/closure-compiler,GerHo...
yaml
## Code Before: language: java jdk: - openjdk7 - oraclejdk8 cache: directories: - $HOME/.m2 # Skip the "installation" step: # https://docs.travis-ci.com/user/customizing-the-build#Skipping-the-Installation-Step install: true script: # Builds the compiler and runs tests - mvn install --batch-mode # Chec...
553a34cd96c0e6799fbc7c7fb1e281860c16977b
templates/_script.tpl
templates/_script.tpl
{% lib "js/ginger_edit.js" "js/modules/z.notice.js" "js/modules/z.imageviewer.js" "js/modules/z.dialog.js" "js/qlobber.js" "js/pubzub.js" "js/modules/z.live.js" "js/modules/livevalidation-1.3.js" "js/modules/z.inputoverlay.js" "js/modules/jquery.loadmask.js" "js/modules/z.fee...
{% lib "js/ginger_edit.js" "js/modules/z.notice.js" "js/modules/z.imageviewer.js" "js/modules/z.dialog.js" "js/qlobber.js" "js/pubzub.js" "js/modules/z.live.js" "js/modules/livevalidation-1.3.js" "js/modules/z.inputoverlay.js" "js/modules/jquery.loadmask.js" "js/modules/z.fee...
Fix social media redirect by removing ginger_session.js
[edit] Fix social media redirect by removing ginger_session.js
Smarty
apache-2.0
driebit/ginger,driebit/ginger,driebit/ginger
smarty
## Code Before: {% lib "js/ginger_edit.js" "js/modules/z.notice.js" "js/modules/z.imageviewer.js" "js/modules/z.dialog.js" "js/qlobber.js" "js/pubzub.js" "js/modules/z.live.js" "js/modules/livevalidation-1.3.js" "js/modules/z.inputoverlay.js" "js/modules/jquery.loadmask.js" "...
e70bf691d70e7411dca75cba292d52848cad49e8
tasks/nunjucks.js
tasks/nunjucks.js
/* * grunt-nunjucks-2-html * https://github.com/vitkarpov/grunt-nunjucks-2-html * * Copyright (c) 2014 Vit Karpov * Licensed under the MIT license. */ 'use strict'; var nunjucks = require('nunjucks'); var path = require('path'); module.exports = function(grunt) { grunt.registerMultiTask('nunjucks', 'Render...
/* * grunt-nunjucks-2-html * https://github.com/vitkarpov/grunt-nunjucks-2-html * * Copyright (c) 2014 Vit Karpov * Licensed under the MIT license. */ 'use strict'; var nunjucks = require('nunjucks'); var path = require('path'); module.exports = function(grunt) { grunt.registerMultiTask('nunjucks', 'Render...
Allow passing of template folder path as a string argument
Allow passing of template folder path as a string argument
JavaScript
mit
ArmorDarks/grunt-nunjucks-2-html,vitkarpov/grunt-nunjucks-2-html,vitkarpov/grunt-nunjucks-2-html,ArmorDarks/grunt-nunjucks-2-html
javascript
## Code Before: /* * grunt-nunjucks-2-html * https://github.com/vitkarpov/grunt-nunjucks-2-html * * Copyright (c) 2014 Vit Karpov * Licensed under the MIT license. */ 'use strict'; var nunjucks = require('nunjucks'); var path = require('path'); module.exports = function(grunt) { grunt.registerMultiTask('nu...
3cd186ce9e5616a836a91435d1389d0755595414
.travis.yml
.travis.yml
language: d d: - dmd - gdc - ldc script: - dub build dedcpu:lem1802 - dub build dedcpu:bconv - dub build dedcpu:ddis - cd tests - rdmd test_bconv.d
language: d d: - dmd - gdc - ldc script: - dub build dedcpu:lem1802 - dub build dedcpu:bconv - dub build dedcpu:ddis - cd tests - $DMD test_bconv.d - ./test_bconv
Call to dmd or dmd interface wrapper to build the test
Call to dmd or dmd interface wrapper to build the test
YAML
bsd-3-clause
Zardoz89/DEDCPU-16
yaml
## Code Before: language: d d: - dmd - gdc - ldc script: - dub build dedcpu:lem1802 - dub build dedcpu:bconv - dub build dedcpu:ddis - cd tests - rdmd test_bconv.d ## Instruction: Call to dmd or dmd interface wrapper to build the test ## Code After: language: d d: - dmd - gdc - ldc script: ...
e7f41b0c19cc719fd61060075d81647336465cc5
.github/workflows/build_dist.yml
.github/workflows/build_dist.yml
name: Bulid distribution package on: push: branches: [ master ] tags: [ '*' ] jobs: buildOnLinux: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 # Setup environment - name: Setup JDK uses: actions/setup-java@v2 with: distribution: temurin ...
name: Bulid distribution package on: push: branches: [ master ] tags: [ '*' ] jobs: buildOnLinux: runs-on: ubuntu-latest env: NATIVE_IMAGE_INSTALLED: true steps: - uses: actions/checkout@v2 # Setup environment - name: Setup JDK uses: actions/setup-java@v2 ...
Use system GraalVM in Github Actions build.
Use system GraalVM in Github Actions build.
YAML
mit
Lymia/PrincessEdit,Lymia/PrincessEdit,Lymia/PrincessEdit
yaml
## Code Before: name: Bulid distribution package on: push: branches: [ master ] tags: [ '*' ] jobs: buildOnLinux: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 # Setup environment - name: Setup JDK uses: actions/setup-java@v2 with: distribu...
24047ab5b2d780c9b73f0bf88547767b2c13d77d
spec/spec_helper.rb
spec/spec_helper.rb
ENV["RAILS_ENV"] ||= 'test' require File.expand_path("../../config/environment", __FILE__) require 'rspec/rails' require 'rspec/autorun' require 'shoulda/matchers' require 'shoulda/context' require 'database_cleaner' require 'capybara/rspec' require 'email_spec' require 'spork' Dir[Rails.root.join("spec/support/**/*.r...
ENV["RAILS_ENV"] ||= 'test' require File.expand_path("../../config/environment", __FILE__) require 'rspec/rails' require 'rspec/autorun' require 'shoulda/matchers' require 'shoulda/context' require 'database_cleaner' require 'spork' require 'capybara/rspec' require 'pundit/rspec' require 'email_spec' Dir[Rails.root....
Include pundit/rspec in spec helper.
Include pundit/rspec in spec helper.
Ruby
mit
cloudsdaleapp/cloudsdale-web,cloudsdaleapp/cloudsdale-web,cloudsdaleapp/cloudsdale-web,cloudsdaleapp/cloudsdale-web
ruby
## Code Before: ENV["RAILS_ENV"] ||= 'test' require File.expand_path("../../config/environment", __FILE__) require 'rspec/rails' require 'rspec/autorun' require 'shoulda/matchers' require 'shoulda/context' require 'database_cleaner' require 'capybara/rspec' require 'email_spec' require 'spork' Dir[Rails.root.join("spe...
d32489a5f46d36c7ae22fbde27f930c2fc07dc82
editor.html
editor.html
<!DOCTYPE html> <html> <head> <script src="http://cdn.mathjax.org/mathjax/2.0-latest/MathJax.js?config=TeX-MML-AM_HTMLorMML-full&amp;delayStartupUntil=configured"></script> <script type="text/javascript" src="./lib/require-2.1.2.js" data-main="gh-book.js"></script> <script type="text/javascript" src="./co...
<!DOCTYPE html> <html> <head> <script type="text/javascript" src="./lib/require-2.1.2.js" data-main="gh-book.js"></script> <script type="text/javascript" src="./config/bookish-config.js"></script> <script type="text/javascript" src="./config/epub-config.js"></script> <script type="text/javascript" src...
Load MathJax after everything else loaded
Load MathJax after everything else loaded
HTML
agpl-3.0
oerpub/bookish,oerpub/bookish
html
## Code Before: <!DOCTYPE html> <html> <head> <script src="http://cdn.mathjax.org/mathjax/2.0-latest/MathJax.js?config=TeX-MML-AM_HTMLorMML-full&amp;delayStartupUntil=configured"></script> <script type="text/javascript" src="./lib/require-2.1.2.js" data-main="gh-book.js"></script> <script type="text/javas...
578d91c8dfbf52464a288b7bb97130154ddb743f
app/views/partials/_results.erb
app/views/partials/_results.erb
<div> <% taxon.each do |org| %> <h4><%= org.english_name %></h4> <p>Iconic Taxon: <%= org.iconic_taxon_name %></p> <p>Iconic Taxon Rank: <%= org.iconic_taxon_rank %></p> <p>Taxon: <%= org.taxon_name %></p> <p>Taxon Rank: <%= org.taxon_rank %></p> <% end %> </div>
<div class="results-content"> <% taxon.each do |org| %> <h4><%= org.english_name %></h4> <p>Iconic Taxon: <%= org.iconic_taxon_name %></p> <p>Iconic Taxon Rank: <%= org.iconic_taxon_rank %></p> <p>Taxon: <%= org.taxon_name %></p> <p>Taxon Rank: <%= org.taxon_rank %></p> <% end %> </div>
Add css selectors to add styling for results partial
Add css selectors to add styling for results partial
HTML+ERB
mit
groovestation31785/inaturalist,groovestation31785/inaturalist
html+erb
## Code Before: <div> <% taxon.each do |org| %> <h4><%= org.english_name %></h4> <p>Iconic Taxon: <%= org.iconic_taxon_name %></p> <p>Iconic Taxon Rank: <%= org.iconic_taxon_rank %></p> <p>Taxon: <%= org.taxon_name %></p> <p>Taxon Rank: <%= org.taxon_rank %></p> <% end %> </div> ## Instruction:...
afe574d1d06459081b5fb3727999aeeca0031388
app/views/spree/shared/_footer_links.html.haml
app/views/spree/shared/_footer_links.html.haml
.nav.center %ul %li %span="&copy; Meine kleine Farm #{Date.today.year}".html_safe - Spree::Page.limit(6).each do |page| - if page.has_context?('footer') %li= link_to page.nav_title, page.path, :title => page.meta_description
.nav.center %div{:style => 'float:left;'}="&copy; Meine kleine Farm #{Date.today.year}".html_safe - @menu_bar = Spree::MenuBar.find_by_name("Footer") = render :partial => "spree/shared/render_menu", :locals => {:menu_bar => @menu_bar}
Prepare footer to work with spree_essentials_menu.
Prepare footer to work with spree_essentials_menu.
Haml
bsd-3-clause
meinekleinefarm/spree_mkf_theme,meinekleinefarm/spree_mkf_theme,meinekleinefarm/spree_mkf_theme
haml
## Code Before: .nav.center %ul %li %span="&copy; Meine kleine Farm #{Date.today.year}".html_safe - Spree::Page.limit(6).each do |page| - if page.has_context?('footer') %li= link_to page.nav_title, page.path, :title => page.meta_description ## Instruction: Prepare footer to work with spre...
9004888794b0c935ba4523a65c75981d4aca80c4
apps/common/js/components/lab-interactive.jsx
apps/common/js/components/lab-interactive.jsx
import React from 'react'; import iframePhone from 'iframe-phone'; export default class LabInteractive extends React.Component { componentDidMount() { this._phone = new iframePhone.ParentEndpoint(this.refs.iframe); if (this.props.interactive) { let interactive = this.props.interactive; if (this....
import React from 'react'; import iframePhone from 'iframe-phone'; export default class LabInteractive extends React.Component { componentDidMount() { this._phone = new iframePhone.ParentEndpoint(this.refs.iframe); if (this.props.interactive) { let interactive = this.props.interactive; if (this....
Fix Lab embeddable page path
Fix Lab embeddable page path [#112434041]
JSX
mit
concord-consortium/leap-motion,concord-consortium/leap-motion,concord-consortium/leap-motion
jsx
## Code Before: import React from 'react'; import iframePhone from 'iframe-phone'; export default class LabInteractive extends React.Component { componentDidMount() { this._phone = new iframePhone.ParentEndpoint(this.refs.iframe); if (this.props.interactive) { let interactive = this.props.interactive;...
8ddc1e40dd505aeb1b28d05238fa198eb3260f94
fireplace/cards/tgt/hunter.py
fireplace/cards/tgt/hunter.py
from ..utils import * ## # Minions # Ram Wrangler class AT_010: play = Find(FRIENDLY_MINIONS + BEAST) & Summon(CONTROLLER, RandomBeast()) ## # Spells # Lock and Load class AT_061: play = Buff(FRIENDLY_HERO, "AT_061e") class AT_061e: events = OWN_SPELL_PLAY.on( Give(CONTROLLER, RandomCollectible(card_class=C...
from ..utils import * ## # Minions # Ram Wrangler class AT_010: play = Find(FRIENDLY_MINIONS + BEAST) & Summon(CONTROLLER, RandomBeast()) # Stablemaster class AT_057: play = Buff(TARGET, "AT_057o") # Brave Archer class AT_059: inspire = Find(CONTROLLER_HAND) | Hit(ENEMY_HERO, 2) ## # Spells # Powershot cla...
Implement more TGT Hunter cards
Implement more TGT Hunter cards
Python
agpl-3.0
smallnamespace/fireplace,Ragowit/fireplace,Ragowit/fireplace,amw2104/fireplace,NightKev/fireplace,liujimj/fireplace,jleclanche/fireplace,Meerkov/fireplace,oftc-ftw/fireplace,liujimj/fireplace,amw2104/fireplace,Meerkov/fireplace,oftc-ftw/fireplace,beheh/fireplace,smallnamespace/fireplace
python
## Code Before: from ..utils import * ## # Minions # Ram Wrangler class AT_010: play = Find(FRIENDLY_MINIONS + BEAST) & Summon(CONTROLLER, RandomBeast()) ## # Spells # Lock and Load class AT_061: play = Buff(FRIENDLY_HERO, "AT_061e") class AT_061e: events = OWN_SPELL_PLAY.on( Give(CONTROLLER, RandomCollecti...
9ebd1390fd7243cfa4e818b45b7c2d9d115fd21b
src/google/protobuf/compiler/perlxs/main.cc
src/google/protobuf/compiler/perlxs/main.cc
using namespace std; int main(int argc, char* argv[]) { google::protobuf::compiler::CommandLineInterface cli; // Proto2 C++ (for convenience, so the user doesn't need to call // protoc separately) google::protobuf::compiler::cpp::CppGenerator cpp_generator; cli.RegisterGenerator("--cpp_out", &cpp_generato...
int main(int argc, char* argv[]) { google::protobuf::compiler::CommandLineInterface cli; // Proto2 C++ (for convenience, so the user doesn't need to call // protoc separately) google::protobuf::compiler::cpp::CppGenerator cpp_generator; cli.RegisterGenerator("--cpp_out", &cpp_generator, ...
Remove unused `using namespace std`
Remove unused `using namespace std`
C++
apache-2.0
spiritloose/protobuf-perlxs
c++
## Code Before: using namespace std; int main(int argc, char* argv[]) { google::protobuf::compiler::CommandLineInterface cli; // Proto2 C++ (for convenience, so the user doesn't need to call // protoc separately) google::protobuf::compiler::cpp::CppGenerator cpp_generator; cli.RegisterGenerator("--cpp_out...
5b799fe6de4946056f292f1b70bdaabd0f2f49c1
articles/_posts/2012-08-29-xhr2.md
articles/_posts/2012-08-29-xhr2.md
--- title: Introduction to XMLHttpRequest Level 2 authors: - tiffany-brown layout: article ---
--- title: Introduction to XMLHttpRequest Level 2 authors: - tiffany-brown intro: 'XMLHttpRequest is the primary technology that allows us to do Ajax-style updates to our pages — essentially, more dynamic content updates that don’t require page reloads. The XHR1 spec (and earlier versions) worked okay but had a number ...
Add intro for article “Introduction to XMLHttpRequest Level 2”
Add intro for article “Introduction to XMLHttpRequest Level 2” Ref. #19.
Markdown
apache-2.0
simevidas/devopera,operasoftware/devopera,Jasenpan1987/devopera,SelenIT/devopera,paulirish/devopera,Jasenpan1987/devopera,cvan/devopera,shwetank/devopera,Jasenpan1987/devopera,cvan/devopera,simevidas/devopera,SelenIT/devopera,kenarai/devopera,Jasenpan1987/devopera,Mtmotahar/devopera,payeldillip/devopera,paulirish/devop...
markdown
## Code Before: --- title: Introduction to XMLHttpRequest Level 2 authors: - tiffany-brown layout: article --- ## Instruction: Add intro for article “Introduction to XMLHttpRequest Level 2” Ref. #19. ## Code After: --- title: Introduction to XMLHttpRequest Level 2 authors: - tiffany-brown intro: 'XMLHttpRequest is th...
5c851ee3d333518829ce26bfc06fd1038e70651c
corehq/util/decorators.py
corehq/util/decorators.py
from functools import wraps import logging from corehq.util.global_request import get_request from dimagi.utils.logging import notify_exception def handle_uncaught_exceptions(mail_admins=True): """Decorator to log uncaught exceptions and prevent them from bubbling up the call chain. """ def _outer(fn)...
from functools import wraps import logging from corehq.util.global_request import get_request from dimagi.utils.logging import notify_exception class ContextDecorator(object): """ A base class that enables a context manager to also be used as a decorator. https://docs.python.org/3/library/contextlib.html#...
Add util to temporarily alter log levels
Add util to temporarily alter log levels Also backport ContextDecorator from python 3. I saw this just the other day and it looks like an awesome pattern, and a much clearer way to write decorators.
Python
bsd-3-clause
qedsoftware/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,qedsoftware/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,qedsoftware/commcare-hq,dimagi/commcare-hq,qedsoftware/commcare-hq,qedsoftware/commcare-hq
python
## Code Before: from functools import wraps import logging from corehq.util.global_request import get_request from dimagi.utils.logging import notify_exception def handle_uncaught_exceptions(mail_admins=True): """Decorator to log uncaught exceptions and prevent them from bubbling up the call chain. """ ...
bb1fba0f1e08c79789edd243828fc45e86ed5f9a
.gitlab-ci.yml
.gitlab-ci.yml
stages: - build - trigger_other_builds build: stage: build script: mvn -f releng/es.parent/pom.xml clean verify artifacts: paths: - products/es.core.product.runtime/target/products/*.zip - products/es.updatesite/target/*.zip expire_in: 1 day trigger_dockerhub_build: stage: trigger_ot...
stages: - build - trigger_other_builds build: stage: build script: mvn -f releng/es.parent/pom.xml clean verify artifacts: paths: - products/es.core.product.runtime/target/products/*.zip - products/es.updatesite/target/*.zip expire_in: 1 day trigger_dockerhub_build: stage: trigger_ot...
Fix curl script to request dockerhub build
[5388] Fix curl script to request dockerhub build
YAML
epl-1.0
elexis/elexis-server,elexis/elexis-server
yaml
## Code Before: stages: - build - trigger_other_builds build: stage: build script: mvn -f releng/es.parent/pom.xml clean verify artifacts: paths: - products/es.core.product.runtime/target/products/*.zip - products/es.updatesite/target/*.zip expire_in: 1 day trigger_dockerhub_build: s...
136edb97384ba9702d0058ffa048616321f6229f
package/src/frontend/VideoPlayer/filterSources.js
package/src/frontend/VideoPlayer/filterSources.js
import {browser} from '../browser'; export const filterSources = function(playerElement) { if (playerElement.tagName.toLowerCase() !== 'video') { return playerElement; } var changed = false; if (browser.has('mp4 support only')) { // keep only mp4 source playerElement.querySelectorAll('source').fo...
import {browser} from '../browser'; export const filterSources = function(playerElement) { if (playerElement.tagName.toLowerCase() !== 'video') { return playerElement; } var changed = false; if (browser.has('mp4 support only')) { // keep only mp4 source playerElement.querySelectorAll('source').fo...
Add existence check for dash source
Add existence check for dash source Safari complains about removing a non-existent child.
JavaScript
mit
tf/pageflow,tf/pageflow,codevise/pageflow,codevise/pageflow,tf/pageflow,codevise/pageflow,codevise/pageflow,tf/pageflow
javascript
## Code Before: import {browser} from '../browser'; export const filterSources = function(playerElement) { if (playerElement.tagName.toLowerCase() !== 'video') { return playerElement; } var changed = false; if (browser.has('mp4 support only')) { // keep only mp4 source playerElement.querySelector...
7c3257351ce5006ea27d6f13fcfb2dbb70025dfd
metadata/de.k3b.android.intentintercept.txt
metadata/de.k3b.android.intentintercept.txt
Categories:Development License:Apache-2.0 Web Site:https://github.com/k3b/intent-intercept Source Code:https://github.com/k3b/intent-intercept Issue Tracker:https://github.com/k3b/intent-intercept/issues Changelog:https://github.com/k3b/androFotoFinder/wiki/History Donate:http://donate.openstreetmap.org/ Auto Name:Int...
Categories:Development License:Apache-2.0 Web Site:https://github.com/k3b/intent-intercept Source Code:https://github.com/k3b/intent-intercept Issue Tracker:https://github.com/k3b/intent-intercept/issues Changelog:https://github.com/k3b/androFotoFinder/wiki/History Donate:http://donate.openstreetmap.org/ Auto Name:Int...
Update CV of Intent Intercept to 3.0.0 (300)
Update CV of Intent Intercept to 3.0.0 (300)
Text
agpl-3.0
f-droid/fdroiddata,f-droid/fdroid-data,f-droid/fdroiddata
text
## Code Before: Categories:Development License:Apache-2.0 Web Site:https://github.com/k3b/intent-intercept Source Code:https://github.com/k3b/intent-intercept Issue Tracker:https://github.com/k3b/intent-intercept/issues Changelog:https://github.com/k3b/androFotoFinder/wiki/History Donate:http://donate.openstreetmap.org...
7a4d2ad706f444f180365faddff9a11910822791
metadata/am.zoom.mlauncher.txt
metadata/am.zoom.mlauncher.txt
Categories:System License:MIT Web Site: Source Code:https://github.com/chelovek84/mLauncher Issue Tracker:https://github.com/chelovek84/mLauncher/issues Auto Name:mLauncher Summary:Launch apps from a list Description: Bookmark your favorite apps and launch them with ease. Long press on an app to add(remove) it to(from...
Categories:System License:MIT Web Site: Source Code:https://github.com/chelovek84/mLauncher Issue Tracker:https://github.com/chelovek84/mLauncher/issues Auto Name:mLauncher Summary:Launch apps from a list Description: Bookmark your favorite apps and launch them with ease. Long press on an app to add(remove) it to(from...
Update mLauncher to 7.0 (7)
Update mLauncher to 7.0 (7)
Text
agpl-3.0
f-droid/fdroiddata,f-droid/fdroid-data,f-droid/fdroiddata
text
## Code Before: Categories:System License:MIT Web Site: Source Code:https://github.com/chelovek84/mLauncher Issue Tracker:https://github.com/chelovek84/mLauncher/issues Auto Name:mLauncher Summary:Launch apps from a list Description: Bookmark your favorite apps and launch them with ease. Long press on an app to add(re...
4a9f3e287389c4e39366ab3f307cf011e0fc7a46
spacevim/install.sh
spacevim/install.sh
set -e source $DOTFILES_ROOT/util/common.sh if [ ! -e "$HOME/.SpaceVim.d" ]; then curl -sLf https://spacevim.org/install.sh | bash -s -- install neovim fi
set -e source $DOTFILES_ROOT/util/common.sh if [ ! -e "$HOME/.SpaceVim.d" ]; then step 'Installing spacevim for neovim' curl -sLf https://spacevim.org/install.sh | bash -s -- install neovim fi
Add build step message for spacevim
Add build step message for spacevim
Shell
unlicense
maxfierke/dotfiles,maxfierke/dotfiles
shell
## Code Before: set -e source $DOTFILES_ROOT/util/common.sh if [ ! -e "$HOME/.SpaceVim.d" ]; then curl -sLf https://spacevim.org/install.sh | bash -s -- install neovim fi ## Instruction: Add build step message for spacevim ## Code After: set -e source $DOTFILES_ROOT/util/common.sh if [ ! -e "$HOME/.SpaceVim.d...
40c853a5aae45378f016b4e61ffbe3a5ef055a0c
lib/okcomputer.rb
lib/okcomputer.rb
require "ok_computer/engine" require "ok_computer/configuration" require "ok_computer/check" require "ok_computer/check_collection" require "ok_computer/registry" # and the built-in checks require "ok_computer/built_in_checks/size_threshold_check" require "ok_computer/built_in_checks/active_record_check" require "ok_c...
require "ok_computer/engine" require "ok_computer/configuration" require "ok_computer/check" require "ok_computer/check_collection" require "ok_computer/registry" # and the built-in checks require "ok_computer/built_in_checks/size_threshold_check" require "ok_computer/built_in_checks/active_record_check" require "ok_c...
Remove check for legacy OKComputer namespace
Remove check for legacy OKComputer namespace
Ruby
mit
lyleunderwood/okcomputer,sportngin/okcomputer,sportngin/okcomputer,johnnyshields/okcomputer
ruby
## Code Before: require "ok_computer/engine" require "ok_computer/configuration" require "ok_computer/check" require "ok_computer/check_collection" require "ok_computer/registry" # and the built-in checks require "ok_computer/built_in_checks/size_threshold_check" require "ok_computer/built_in_checks/active_record_chec...
d0bf235af3742a17c722488fe3679d5b73a0d945
thinc/neural/_classes/softmax.py
thinc/neural/_classes/softmax.py
from .affine import Affine from ... import describe from ...describe import Dimension, Synapses, Biases from ...check import has_shape from ... import check @describe.attributes( W=Synapses("Weights matrix", lambda obj: (obj.nO, obj.nI), lambda W, ops: None) ) class Softmax(Affine): name = 'so...
from .affine import Affine from ... import describe from ...describe import Dimension, Synapses, Biases from ...check import has_shape from ... import check @describe.attributes( W=Synapses("Weights matrix", lambda obj: (obj.nO, obj.nI), lambda W, ops: None) ) class Softmax(Affine): name = 'so...
Fix gemm calls in Softmax
Fix gemm calls in Softmax
Python
mit
spacy-io/thinc,explosion/thinc,explosion/thinc,spacy-io/thinc,explosion/thinc,spacy-io/thinc,explosion/thinc
python
## Code Before: from .affine import Affine from ... import describe from ...describe import Dimension, Synapses, Biases from ...check import has_shape from ... import check @describe.attributes( W=Synapses("Weights matrix", lambda obj: (obj.nO, obj.nI), lambda W, ops: None) ) class Softmax(Affine)...
d35695e3e1435553d0d45a7ab22968d1a88fc660
pkgs/development/tools/database/sqlitebrowser/default.nix
pkgs/development/tools/database/sqlitebrowser/default.nix
{ stdenv, fetchFromGitHub, qt4, sqlite, cmake }: stdenv.mkDerivation rec { version = "3.9.1"; name = "sqlitebrowser-${version}"; src = fetchFromGitHub { repo = "sqlitebrowser"; owner = "sqlitebrowser"; rev = "v${version}"; sha256 = "1s7f2d7wx2i68x60z7wdws3il6m83k5n5w5wyjvr0mz0mih0s150"; ...
{ stdenv, fetchFromGitHub, qt4, sqlite, cmake }: stdenv.mkDerivation rec { version = "3.8.0"; name = "sqlitebrowser-${version}"; src = fetchFromGitHub { repo = "sqlitebrowser"; owner = "sqlitebrowser"; rev = "v${version}"; sha256 = "009yaamf6f654dl796f1gmj3rb34d55w87snsfgk33gpy6x19ccp"; ...
Revert "sqlitebrowser: 3.8.0 -> 3.9.1"
Revert "sqlitebrowser: 3.8.0 -> 3.9.1" This reverts commit f9d7d29fa939eeba39d5aa497b9703e60a016eab.
Nix
mit
NixOS/nixpkgs,SymbiFlow/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,SymbiFlow/nixpkgs,SymbiFlow/nixpkgs,SymbiFlow/nixpkgs,SymbiFlow/nixpkgs,SymbiFlow/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,SymbiFlow/nixpkgs,SymbiFlow/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,SymbiFlow/nixpkgs,SymbiFlow/nixpkgs,NixOS/nixpkgs,...
nix
## Code Before: { stdenv, fetchFromGitHub, qt4, sqlite, cmake }: stdenv.mkDerivation rec { version = "3.9.1"; name = "sqlitebrowser-${version}"; src = fetchFromGitHub { repo = "sqlitebrowser"; owner = "sqlitebrowser"; rev = "v${version}"; sha256 = "1s7f2d7wx2i68x60z7wdws3il6m83k5n5w5wyjvr0...
6553a49609ce83e4a17902dd46e9262ea4d3eae7
core/app/backbone/mixins/update_on_sign_in_or_out_mixin.coffee
core/app/backbone/mixins/update_on_sign_in_or_out_mixin.coffee
window.UpdateOnSignInOrOutMixin = componentDidMount: -> window.currentSession.user().on 'change:username', (-> @forceUpdate()), @ componentWillUnmount: -> window.currentSession.user().off null, null, @
window.UpdateOnSignInOrOutMixin = componentDidMount: -> window.currentSession.user().on 'change:username', ( -> if @isMounted() @forceUpdate() ), @ componentWillUnmount: -> window.currentSession.user().off null, null, @
Fix UpdateOnSignInOrOutMixin so it doesn't trigger forceUpdate when impossible
Fix UpdateOnSignInOrOutMixin so it doesn't trigger forceUpdate when impossible
CoffeeScript
mit
daukantas/factlink-core,Factlink/factlink-core,Factlink/factlink-core,daukantas/factlink-core,daukantas/factlink-core,daukantas/factlink-core,Factlink/factlink-core,Factlink/factlink-core
coffeescript
## Code Before: window.UpdateOnSignInOrOutMixin = componentDidMount: -> window.currentSession.user().on 'change:username', (-> @forceUpdate()), @ componentWillUnmount: -> window.currentSession.user().off null, null, @ ## Instruction: Fix UpdateOnSignInOrOutMixin so it doesn't trigger forceUpdate when impo...
a12f51e6c4d3bca3d76f54da6bdaf59581de7b6c
.zuul.yaml
.zuul.yaml
- project: name: openstack/api-site templates: - openstack-manuals-developer-build-translation - openstack-manuals-developer-jobs
- project: templates: - openstack-manuals-developer-build-translation - openstack-manuals-developer-jobs
Remove name from project stanza
Remove name from project stanza This is now optional, and should be discouraged in in-repo configs. Change-Id: Ie6fb2669a218524eaeafe4026b1b47aea0fe70ec
YAML
apache-2.0
openstack/api-site,openstack/api-site,openstack/api-site,openstack/api-site
yaml
## Code Before: - project: name: openstack/api-site templates: - openstack-manuals-developer-build-translation - openstack-manuals-developer-jobs ## Instruction: Remove name from project stanza This is now optional, and should be discouraged in in-repo configs. Change-Id: Ie6fb2669a218524eaeafe40...
c97410eed21948f6ff1caa187e1ad4f924553733
lib/VMCore/TargetTransformInfo.cpp
lib/VMCore/TargetTransformInfo.cpp
//===- llvm/VMCore/TargetTransformInfo.cpp ----------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
//===- llvm/VMCore/TargetTransformInfo.cpp ----------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
Add a comment which explains why the assert fired and how to fix it.
Add a comment which explains why the assert fired and how to fix it. git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@166467 91177308-0d34-0410-b5e6-96231b3b80d8
C++
bsd-2-clause
dslab-epfl/asap,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,chubbymaggie/asap,apple/swift-llvm,apple/swift-llvm,dslab-epfl/asap,apple/swift-llvm,llvm-mirror/llvm,apple/swift-llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,chubbymaggie/asap,dslab-epfl/asap,GPUOpen-Drivers/llvm,llvm-mirror/llvm,llvm-mirror/llvm,...
c++
## Code Before: //===- llvm/VMCore/TargetTransformInfo.cpp ----------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===---------------------------------------...
f23208d881501901e232e652503f0707256adf94
lib/sonia/widgets/icinga.rb
lib/sonia/widgets/icinga.rb
require 'nokogiri' require 'em-http' module Sonia module Widgets class Icinga < Sonia::Widget def initial_push fetch_data EventMachine::add_periodic_timer(61) { fetch_data } end def format_status(stat) { :count => stat.match(/(\d*)\s(\w*)/)[1], :st...
require 'nokogiri' require 'em-http' module Sonia module Widgets class Icinga < Sonia::Widget def initial_push fetch_data EventMachine::add_periodic_timer(60) { fetch_data } end def format_status(stat) { :count => stat.match(/(\d*)\s(\w*)/)[1], :st...
Set timer to 60 seconds
Set timer to 60 seconds
Ruby
mit
tachikomapocket/pusewicz-_-sonia,tachikomapocket/pusewicz-_-sonia,pusewicz/sonia,pusewicz/sonia,pusewicz/sonia,tachikomapocket/pusewicz-_-sonia
ruby
## Code Before: require 'nokogiri' require 'em-http' module Sonia module Widgets class Icinga < Sonia::Widget def initial_push fetch_data EventMachine::add_periodic_timer(61) { fetch_data } end def format_status(stat) { :count => stat.match(/(\d*)\s(\w*)/)[1...
1c4c3c036aa2d88db4d1c078d009eb2d0875b136
packages/babel-preset-expo/index.js
packages/babel-preset-expo/index.js
module.exports = function() { return { presets: ['module:metro-react-native-babel-preset'], plugins: [ [ 'babel-plugin-module-resolver', { alias: { 'react-native-vector-icons': '@expo/vector-icons', }, }, ], ['@babel/plugin-proposal-dec...
module.exports = function(api) { const isWeb = api.caller(isTargetWeb); return { presets: ['module:metro-react-native-babel-preset'], plugins: [ [ 'babel-plugin-module-resolver', { alias: { 'react-native-vector-icons': '@expo/vector-icons', }, }...
Update preset to be able to detect if it's run from Webpack's babel-loader
[babel] Update preset to be able to detect if it's run from Webpack's babel-loader
JavaScript
bsd-3-clause
exponentjs/exponent,exponent/exponent,exponentjs/exponent,exponent/exponent,exponentjs/exponent,exponent/exponent,exponent/exponent,exponent/exponent,exponent/exponent,exponentjs/exponent,exponentjs/exponent,exponent/exponent,exponentjs/exponent,exponent/exponent,exponent/exponent,exponentjs/exponent,exponentjs/exponen...
javascript
## Code Before: module.exports = function() { return { presets: ['module:metro-react-native-babel-preset'], plugins: [ [ 'babel-plugin-module-resolver', { alias: { 'react-native-vector-icons': '@expo/vector-icons', }, }, ], ['@babel/plu...
2edfc65287f2861764e9dc7e1ad795e147cf1f5f
bin/backup_to_s3.sh
bin/backup_to_s3.sh
backupTime=`date +%Y%m%d-%H:%M` S3Bucket=aact2 RDSHostname=aact2-main.cbj0v72pdrrv.us-east-1.rds.amazonaws.com RDSUsername=garrettqmartin RDSDatabaseName=aact2 pg_dump -Fc ${RDSDatabaseName} -h ${RDSHostname} -U ${RDSUsername} --no-password | gzip -9 | \ s3cmd put - s3://${S3Bucket}/snapshots/postgres.${RDSDatabase...
backupTime=`date +%Y%m%d-%H:%M` S3Bucket=aact2 pg_dump -Fc $RDS_DB_READONLY_DBNAME -h $RDS_DB_HOSTNAME -U $RDS_DB_SUPER_USERNAME --no-password | gzip -9 | \ s3cmd put - s3://$S3_BUCKET_NAME/snapshots/postgres.$RDS_DB_READONLY_DBNAME.dump.${backupTime}.gz echo "Done"
Add correct env var names.
Add correct env var names.
Shell
mit
dmlond/aact,ctti-clinicaltrials/aact,tibbs001/aact-1,ctti-clinicaltrials/aact,tibbs001/aact-1,dmlond/aact,tibbs001/aact-1,ctti-clinicaltrials/aact,dmlond/aact,dmlond/aact
shell
## Code Before: backupTime=`date +%Y%m%d-%H:%M` S3Bucket=aact2 RDSHostname=aact2-main.cbj0v72pdrrv.us-east-1.rds.amazonaws.com RDSUsername=garrettqmartin RDSDatabaseName=aact2 pg_dump -Fc ${RDSDatabaseName} -h ${RDSHostname} -U ${RDSUsername} --no-password | gzip -9 | \ s3cmd put - s3://${S3Bucket}/snapshots/postgr...
766934cf39907640d746070a0a918088512ff10a
.travis.yml
.travis.yml
language: python python: 2.7 sudo: required dist: xenial env: - PY=e ANGR_REPO=pyvex - PY=e ANGR_REPO=cle - PY=e ANGR_REPO=simuvex - PY=e ANGR_REPO=angr - PY=e ANGR_REPO=angr-doc - PY=e ANGR_REPO=angrop - PY=e ANGR_REPO=fuzzer - PY=e ANGR_REPO=driller - PY=p ANGR_REPO=colorguard - PY=e ANGR_REPO=fid...
language: python python: 2.7 sudo: required dist: xenial env: - PY=e ANGR_REPO=cle - PY=e ANGR_REPO=simuvex - PY=e ANGR_REPO=angr - PY=e ANGR_REPO=angr-doc - PY=e ANGR_REPO=angrop - PY=e ANGR_REPO=fuzzer - PY=e ANGR_REPO=driller - PY=p ANGR_REPO=colorguard - PY=e ANGR_REPO=fidget - PY=e ANGR_REPO=pa...
Disable pyvex tests. there are no pyvex tests. there is no war in ba sing se
Disable pyvex tests. there are no pyvex tests. there is no war in ba sing se
YAML
bsd-2-clause
0xbc/pyvex,angr/pyvex,angr/pyvex,0xbc/pyvex
yaml
## Code Before: language: python python: 2.7 sudo: required dist: xenial env: - PY=e ANGR_REPO=pyvex - PY=e ANGR_REPO=cle - PY=e ANGR_REPO=simuvex - PY=e ANGR_REPO=angr - PY=e ANGR_REPO=angr-doc - PY=e ANGR_REPO=angrop - PY=e ANGR_REPO=fuzzer - PY=e ANGR_REPO=driller - PY=p ANGR_REPO=colorguard - PY...
e5e7829d8ded0f6f25b54222d5ed6c467f1c4d05
source/java/SetsKeysinHashMap.rst
source/java/SetsKeysinHashMap.rst
==================== Sets Keysin Hash Map ==================== Question ======== ADDQUESTION Solution ======== .. literalinclude:: ../../languages/java/SetsKeysinHashMap.java :language: java :tab-width: 4 .. runcode:: ../../languages/java/SetsKeysinHashMap.java :language: java :codesite: ideone Explan...
===================== Sets Keys in Hash Map ===================== Question ======== Demonstrate the Set types as keys in Hashmap. Solution ======== .. literalinclude:: ../../languages/java/SetsKeysinHashMap.java :language: java :tab-width: 4 .. runcode:: ../../languages/java/SetsKeysinHashMap.java :langua...
Set as Keys in Hashmap
Set as Keys in Hashmap
reStructuredText
bsd-3-clause
adeshmukh/learntosolveit,adeshmukh/learntosolveit,adsznzhang/learntosolveit,adsznzhang/learntosolveit,beqa2323/learntosolveit,whcdanny/learntosolveit,beqa2323/learntosolveit,beqa2323/learntosolveit,whcdanny/learntosolveit,adsznzhang/learntosolveit,beqa2323/learntosolveit,whcdanny/learntosolveit,beqa2323/learntosolveit,...
restructuredtext
## Code Before: ==================== Sets Keysin Hash Map ==================== Question ======== ADDQUESTION Solution ======== .. literalinclude:: ../../languages/java/SetsKeysinHashMap.java :language: java :tab-width: 4 .. runcode:: ../../languages/java/SetsKeysinHashMap.java :language: java :codesite...
76bc5171cbccf9ce171f8891f24b66daa91aef0d
glitter/pages/forms.py
glitter/pages/forms.py
from __future__ import unicode_literals from django import forms from django.conf import settings from .models import Page from glitter.integration import glitter_app_pool class DuplicatePageForm(forms.ModelForm): class Meta: model = Page fields = ['url', 'title', 'parent', 'login_required', 'sh...
from __future__ import unicode_literals from django import forms from django.conf import settings from glitter.integration import glitter_app_pool from .models import Page class DuplicatePageForm(forms.ModelForm): class Meta: model = Page fields = ['url', 'title', 'parent', 'login_required', 's...
Sort the Glitter app choices for page admin
Sort the Glitter app choices for page admin For #69
Python
bsd-3-clause
developersociety/django-glitter,developersociety/django-glitter,blancltd/django-glitter,developersociety/django-glitter,blancltd/django-glitter,blancltd/django-glitter
python
## Code Before: from __future__ import unicode_literals from django import forms from django.conf import settings from .models import Page from glitter.integration import glitter_app_pool class DuplicatePageForm(forms.ModelForm): class Meta: model = Page fields = ['url', 'title', 'parent', 'logi...
4772bdf0feca0f1cd1e356a43c621fd3642e466b
test/test_helper.rb
test/test_helper.rb
require "rails/all" require "measured" require "measured-rails" require "minitest/autorun" require "minitest/reporters" require "mocha/setup" require "pry" unless ENV["CI"] require File.expand_path("../dummy/config/environment", __FILE__) ActiveSupport.test_order = :random Minitest::Reporters.use! [Minitest::Reporte...
require "rails/all" require "measured" require "measured-rails" require "minitest/autorun" require "minitest/reporters" require "mocha/setup" require "pry" unless ENV["CI"] require File.expand_path("../dummy/config/environment", __FILE__) ActiveSupport.test_order = :random # Prevent two reporters from printing # htt...
Work around double test reporters from rails.
Work around double test reporters from rails.
Ruby
mit
Shopify/measured-rails
ruby
## Code Before: require "rails/all" require "measured" require "measured-rails" require "minitest/autorun" require "minitest/reporters" require "mocha/setup" require "pry" unless ENV["CI"] require File.expand_path("../dummy/config/environment", __FILE__) ActiveSupport.test_order = :random Minitest::Reporters.use! [M...
b1199c5e701b036cf874c1b6b4b9df2c45b9d061
loadtest/other/framework-controller.yaml
loadtest/other/framework-controller.yaml
apiVersion: v1 kind: ReplicationController metadata: labels: name: framework name: framework namespace: default spec: replicas: 10 selector: name: framework template: metadata: labels: kubernetes.io/color: 4C9900 name: framework spec: containers: - image: qu...
apiVersion: v1 kind: ReplicationController metadata: labels: name: framework name: framework namespace: default spec: replicas: 10 selector: name: framework template: metadata: labels: kubernetes.io/color: 4C9900 name: framework spec: containers: - image: qu...
Switch imagePullPolicy for framework pod
Switch imagePullPolicy for framework pod
YAML
apache-2.0
mikeln/kraken-services,Samsung-AG/kraken-services,Samsung-AG/kraken-services,maratoid/kraken-services,Samsung-AG/kraken-services,maratoid/kraken-services,maratoid/kraken-services,mikeln/kraken-services,maratoid/kraken-services,maratoid/kraken-services,Samsung-AG/kraken-services,mikeln/kraken-services,mikeln/kraken-serv...
yaml
## Code Before: apiVersion: v1 kind: ReplicationController metadata: labels: name: framework name: framework namespace: default spec: replicas: 10 selector: name: framework template: metadata: labels: kubernetes.io/color: 4C9900 name: framework spec: containers: ...
498363351afa8edf8e2cca2a235e023efccae11d
app/react/src/client/preview/types-6-0.ts
app/react/src/client/preview/types-6-0.ts
import { ComponentClass, FunctionComponent } from 'react'; import { Args as DefaultArgs, Annotations, BaseMeta, BaseStory } from '@storybook/addons'; import { StoryFnReactReturnType } from './types'; export { Args, ArgTypes, Parameters, StoryContext } from '@storybook/addons'; type ReactComponent = ComponentClass<any...
import { ComponentType } from 'react'; import { Args as DefaultArgs, Annotations, BaseMeta, BaseStory } from '@storybook/addons'; import { StoryFnReactReturnType } from './types'; export { Args, ArgTypes, Parameters, StoryContext } from '@storybook/addons'; type ReactComponent = ComponentType<any>; type ReactReturnTy...
Simplify component type for CSF typing
React: Simplify component type for CSF typing
TypeScript
mit
storybooks/react-storybook,storybooks/storybook,storybooks/storybook,storybooks/react-storybook,storybooks/storybook,storybooks/react-storybook,kadirahq/react-storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,kadirahq/react-storybook,storybooks/storybook,storybooks/react-storybook
typescript
## Code Before: import { ComponentClass, FunctionComponent } from 'react'; import { Args as DefaultArgs, Annotations, BaseMeta, BaseStory } from '@storybook/addons'; import { StoryFnReactReturnType } from './types'; export { Args, ArgTypes, Parameters, StoryContext } from '@storybook/addons'; type ReactComponent = Co...
abbbcec32adece33aa56ebf961dc91019257b2b3
package.json
package.json
{ "name": "hexy-ex", "version": "1.0.0", "description": "Example of frontend application in JS under hex architecture.", "main": "./lib/main.js", "scripts": { "build": "./node_modules/.bin/gulp", "start": "cd public && python -m SimpleHTTPServer 8000", "lint": "./node_modules/.bin/jshint lib", ...
{ "name": "hexy-ex", "version": "1.0.0", "description": "Example of frontend application in JS under hex architecture.", "main": "./lib/main.js", "scripts": { "build": "./node_modules/.bin/gulp", "start": "cd public && python -m SimpleHTTPServer 8000", "lint": "./node_modules/.bin/jshint lib", ...
Install react to implement presentation adapter.
Install react to implement presentation adapter.
JSON
mit
pbouzakis/hexy-ex
json
## Code Before: { "name": "hexy-ex", "version": "1.0.0", "description": "Example of frontend application in JS under hex architecture.", "main": "./lib/main.js", "scripts": { "build": "./node_modules/.bin/gulp", "start": "cd public && python -m SimpleHTTPServer 8000", "lint": "./node_modules/.bin/...
bd26afa3fd683af4a44d4b0f3ca4f8d03c51a154
.buildkite/pipeline.yml
.buildkite/pipeline.yml
plugins: &plugins stellargraph/github-merged-pr#develop: mode: checkout steps: - label: ":python:" command: - pip install -q --no-cache-dir -r requirements.txt -e . && py.test -ra --cov=stellargraph tests/ --doctest-modules --doctest-modules --cov-report=term-missing -p no:cacheprovider ...
steps: - label: ":python:" command: - pip install -q --no-cache-dir -r requirements.txt -e . && py.test -ra --cov=stellargraph tests/ --doctest-modules --doctest-modules --cov-report=term-missing -p no:cacheprovider && coveralls plugins: docker#v1.3.0: image: "python:3.6" ...
Revert "add github merged pr plugin"
Revert "add github merged pr plugin"
YAML
apache-2.0
stellargraph/stellargraph,stellargraph/stellargraph
yaml
## Code Before: plugins: &plugins stellargraph/github-merged-pr#develop: mode: checkout steps: - label: ":python:" command: - pip install -q --no-cache-dir -r requirements.txt -e . && py.test -ra --cov=stellargraph tests/ --doctest-modules --doctest-modules --cov-report=term-missing -p no:cac...
b3429328d13f37a2a49062c913d8bb92f7ea6389
app/views/static_pages/videos.html.haml
app/views/static_pages/videos.html.haml
%article#main %p .column.ten.center %h2 Behind the Scenes mit Richard Wherlock. Führung durch die Kehrichtverwertung Basel #video_1 <br /> %hr.hr/ %h2 Kompostkurs mit Barbara Schumacher (Trashup 22. März 2009) #video_2 <br /> %hr.hr/ %h2 Kurs Littering im Öffentlichen Raum und Naturkreisläufe im Wal...
%article#main %p .column.ten.center %h2 Behind the Scenes mit Richard Wherlock. Führung durch die Kehrichtverwertung Basel #video_1 <br /> %hr.hr/ %h2 Kompostkurs mit Barbara Schumacher (Trashup 22. März 2009) #video_2 <br /> %hr.hr/ %h2 Kurs Littering im Öffentlichen Raum und Naturkreisläufe im Wal...
Add video 'it's a plastic world' from vimeo
Add video 'it's a plastic world' from vimeo
Haml
apache-2.0
bhzunami/umweltpaedagogik,bhzunami/umweltpaedagogik,bhzunami/umweltpaedagogik,bhzunami/umweltpaedagogik
haml
## Code Before: %article#main %p .column.ten.center %h2 Behind the Scenes mit Richard Wherlock. Führung durch die Kehrichtverwertung Basel #video_1 <br /> %hr.hr/ %h2 Kompostkurs mit Barbara Schumacher (Trashup 22. März 2009) #video_2 <br /> %hr.hr/ %h2 Kurs Littering im Öffentlichen Raum und Naturk...
d6c9063694f3052f5b0270de18667b2b3dc45316
lib/Accordion/Accordion.stories.js
lib/Accordion/Accordion.stories.js
import React from 'react'; import { storiesOf } from '@storybook/react'; import withReadme from 'storybook-readme/with-readme'; import Readme from './readme.md'; import Accordion from './Accordion'; storiesOf('Accordion', module) .addDecorator(withReadme(Readme)) .add('with defaults', () => ( <Accordion label...
import React from 'react'; import { storiesOf } from '@storybook/react'; // eslint-disable-line import/no-extraneous-dependencies import withReadme from 'storybook-readme/with-readme'; // eslint-disable-line import/no-extraneous-dependencies import Readme from './readme.md'; import Accordion from './Accordion'; stori...
Fix storybook story lint errors
Fix storybook story lint errors
JavaScript
apache-2.0
folio-org/stripes-components,folio-org/stripes-components
javascript
## Code Before: import React from 'react'; import { storiesOf } from '@storybook/react'; import withReadme from 'storybook-readme/with-readme'; import Readme from './readme.md'; import Accordion from './Accordion'; storiesOf('Accordion', module) .addDecorator(withReadme(Readme)) .add('with defaults', () => ( ...
f28086b914d0107a46bcef4c9090e8c3380ae27c
src/opencup/xiv/round4/package-info.java
src/opencup/xiv/round4/package-info.java
/** * This package contains <i>GD-team</i> solutions (up-solvings) for the forth round of Open Cup 2013 autumn-session. * <p/> * The whole schedule of 2013 autumn-session is here: * <a href="http://opencup.ru/index.cgi?data=oce/schedule&menu=index&head=index">Grand Prix of Eastern Europe</a>. * <p/> * * To see a...
/** * This package contains <i>GD-team</i> solutions (up-solvings) for the forth round of Open Cup 2013 autumn-session. * <p/> * The whole schedule of 2013 autumn-session is here: * <a href="http://opencup.ru/index.cgi?data=oce/schedule&menu=index&head=index">Grand Prix of Eastern Europe</a>. * <p/> * * To see a...
Add statements for round 4
Add statements for round 4
Java
mit
MysterionRise/gd-team-dangerzone
java
## Code Before: /** * This package contains <i>GD-team</i> solutions (up-solvings) for the forth round of Open Cup 2013 autumn-session. * <p/> * The whole schedule of 2013 autumn-session is here: * <a href="http://opencup.ru/index.cgi?data=oce/schedule&menu=index&head=index">Grand Prix of Eastern Europe</a>. * <p/...
aa0fddc0779348c05ff788105b8761a357409add
OpenGLESApp2/OpenGLESApp2.Android.Packaging/assets/Shaders/reduceLum.frag
OpenGLESApp2/OpenGLESApp2.Android.Packaging/assets/Shaders/reduceLum.frag
uniform sampler2D texDiffuse; varying mediump vec4 texCoord[2]; #define invLDRRange 1.0//(255.0/240.0) #if 1 // HDTV with BT.709 #define luminance(tex) dot(tex, vec4(0.2126, 0.7152, 0.0722, 0.0) * invLDRRange) #else // SDTV with BT.601 #define luminance(tex) dot(tex, vec4(0.299, 0.587, 0.114, 0.0) * invLDRRange) #end...
uniform sampler2D texDiffuse; varying mediump vec4 texCoord[2]; #define invLDRRange 1.0//(255.0/240.0) #if 1 // HDTV with BT.709 #define luminance(tex) dot(tex, vec3(0.2126, 0.7152, 0.0722) * invLDRRange) #else // SDTV with BT.601 #define luminance(tex) dot(tex, vec3(0.299, 0.587, 0.114) * invLDRRange) #endif void m...
Optimize the dimension of vector.
Optimize the dimension of vector. Use more lower dimensional vector if possible.
GLSL
mit
tn-mai/NDKOpenGLES2App,tn-mai/NDKOpenGLES2App
glsl
## Code Before: uniform sampler2D texDiffuse; varying mediump vec4 texCoord[2]; #define invLDRRange 1.0//(255.0/240.0) #if 1 // HDTV with BT.709 #define luminance(tex) dot(tex, vec4(0.2126, 0.7152, 0.0722, 0.0) * invLDRRange) #else // SDTV with BT.601 #define luminance(tex) dot(tex, vec4(0.299, 0.587, 0.114, 0.0) * i...
d26f3b91212d881889bb05bb614541e4652c3caf
assets/js/public/zoomableApp.js
assets/js/public/zoomableApp.js
angular.module('zoomableApp', ['ui.router', 'appRoutes', 'ngMaterial']);
angular.module('zoomableApp', ['ui.router', 'appRoutes', 'ngMaterial']) // Define standard theme for dashboard UI .config(function($mdThemingProvider) { $mdThemingProvider.theme('default') .primaryPalette('cyan', { 'default': '700' // use shade 700 for default, and keep all other shades the same }) ...
Add a color theme for the UI of the whole app
Add a color theme for the UI of the whole app
JavaScript
mit
nus-mtp/zoomable.js,nus-mtp/zoomable.js,nus-mtp/zoomable.js
javascript
## Code Before: angular.module('zoomableApp', ['ui.router', 'appRoutes', 'ngMaterial']); ## Instruction: Add a color theme for the UI of the whole app ## Code After: angular.module('zoomableApp', ['ui.router', 'appRoutes', 'ngMaterial']) // Define standard theme for dashboard UI .config(function($mdThemingProvider) {...
7d359e0ab05c4b663076bf599c7caba16671187c
.codeclimate.yml
.codeclimate.yml
version: "2" checks: file-lines: enabled: false similar-code: enabled: false method-lines: enabled: false plugins: sonar-python: enabled: true config: test_patterns: - "metpy/**/tests/*.py" checks: python:S3776: enabled: false python:S107: enabl...
version: "2" checks: file-lines: enabled: false similar-code: enabled: false method-lines: enabled: false argument-count: config: threshold: 10 plugins: sonar-python: enabled: true config: test_patterns: - "metpy/**/tests/*.py" checks: python:S3776: ...
Update maximum argument count to 10
[MNT] Update maximum argument count to 10
YAML
bsd-3-clause
Unidata/MetPy,jrleeman/MetPy,Unidata/MetPy,dopplershift/MetPy,ahaberlie/MetPy,dopplershift/MetPy,jrleeman/MetPy,ahaberlie/MetPy,ShawnMurd/MetPy
yaml
## Code Before: version: "2" checks: file-lines: enabled: false similar-code: enabled: false method-lines: enabled: false plugins: sonar-python: enabled: true config: test_patterns: - "metpy/**/tests/*.py" checks: python:S3776: enabled: false python:S10...
3293dc5159ddf396a6fa6658c93c91beb5c6b839
app/views/users/_stats.html.erb
app/views/users/_stats.html.erb
<div class="row"> <div class="card-panel z-depth-3 amber accent-4"> <span class="white-text"> <div class="stats"> <table style= "padding: 5px;"> <tr> <td> <a href="<%= following_user_path(@user) %>" style="color: white;">Following </a><br/> <a href="<%= following_user_path(...
<div class="row"> <div class="card-panel z-depth-3 amber accent-4"> <span class="white-text"> <div class="stats"> <table style= "padding: 5px;"> <tr> <td> Following <br/> <%= @user.following.count %> </td> <td> Followers<br/> <%= @user.follower...
Remove links from stats card
Remove links from stats card
HTML+ERB
mit
chi-dragonflies-2015/FAQrator,chi-dragonflies-2015/FAQrator,chi-dragonflies-2015/FAQrator
html+erb
## Code Before: <div class="row"> <div class="card-panel z-depth-3 amber accent-4"> <span class="white-text"> <div class="stats"> <table style= "padding: 5px;"> <tr> <td> <a href="<%= following_user_path(@user) %>" style="color: white;">Following </a><br/> <a href="<%= foll...
f34fd666988442b0f4421d128fbba94d5037e0ae
scripts/register-completions.bash
scripts/register-completions.bash
_dotnet_bash_complete() { local word=${COMP_WORDS[COMP_CWORD]} local completions=("$(dotnet complete --position ${COMP_POINT} "${COMP_LINE}")") COMPREPLY=( $(compgen -W "$completions" -- "$word") ) } complete -f -F _dotnet_bash_complete dotnet
_dotnet_bash_complete() { local word=${COMP_WORDS[COMP_CWORD]} local completions completions="$(dotnet complete --position "${COMP_POINT}" "${COMP_LINE}")" COMPREPLY=( $(compgen -W "$completions" -- "$word") ) } complete -f -F _dotnet_bash_complete dotnet
Fix some shellcheck warnings for dotnet bash completion
Fix some shellcheck warnings for dotnet bash completion Running shellcheck on the bash completion script produces a few warnings: 1. SC2086: Double quote to prevent globbing and word splitting. local completions=("$(dotnet complete --position ${COMP_POINT} "${COMP_LINE}")") ...
Shell
mit
johnbeisner/cli,dasMulli/cli,johnbeisner/cli,johnbeisner/cli,dasMulli/cli,dasMulli/cli,livarcocc/cli-1,livarcocc/cli-1,livarcocc/cli-1
shell
## Code Before: _dotnet_bash_complete() { local word=${COMP_WORDS[COMP_CWORD]} local completions=("$(dotnet complete --position ${COMP_POINT} "${COMP_LINE}")") COMPREPLY=( $(compgen -W "$completions" -- "$word") ) } complete -f -F _dotnet_bash_complete dotnet ## Instruction: Fix some shellcheck warnings for ...
326309defa2c65f760dfb4275f1234705ed60939
README.md
README.md
A JavaScript library that enables a table's header to scroll with the page. ![An example of a table header scrolling with the table](http://3.bp.blogspot.com/-smWCVOs_wlo/UVa0yXR8JDI/AAAAAAAAOUM/p0ccflBSusI/s1600/demo.png) ## Details The scrolling header is accomplished by cloning the `<thead>` element which is the...
A JavaScript library that enables a table's header to scroll with the page. ![An example of a table header scrolling with the table](http://3.bp.blogspot.com/-smWCVOs_wlo/UVa0yXR8JDI/AAAAAAAAOUM/p0ccflBSusI/s1600/demo.png) ## Details The scrolling header is accomplished by cloning the `<thead>` element which is the...
Add support and license sections to readme
Add support and license sections to readme
Markdown
mit
Tyriar/sticky-header.js,Tyriar/sticky-header.js
markdown
## Code Before: A JavaScript library that enables a table's header to scroll with the page. ![An example of a table header scrolling with the table](http://3.bp.blogspot.com/-smWCVOs_wlo/UVa0yXR8JDI/AAAAAAAAOUM/p0ccflBSusI/s1600/demo.png) ## Details The scrolling header is accomplished by cloning the `<thead>` elem...
3413078bc4daa893c8feb2da36b04ebc8f7f6dbb
src/ref_into.rs
src/ref_into.rs
pub trait RefInto<'a, T>: MutInto<'a, T> { fn ref_into(&'a self) -> T; } pub trait MutInto<'a, T> { fn mut_into(&'a mut self) -> T; }
pub trait RefInto<'a, T>: MutInto<'a, T> { fn ref_into(&'a self) -> T; } pub trait MutInto<'a, T> { fn mut_into(&'a mut self) -> T; } impl<'a, T: 'a> RefInto<'a, &'a T> for T { fn ref_into(&'a self) -> &'a T { self } } impl<'a, T: 'a> RefInto<'a, &'a T> for &'a T { fn ref_into(&'a self)...
Add basic `RefInto` and `MutInto` implementations
Add basic `RefInto` and `MutInto` implementations
Rust
apache-2.0
kylewlacy/glitter,kylewlacy/glitter
rust
## Code Before: pub trait RefInto<'a, T>: MutInto<'a, T> { fn ref_into(&'a self) -> T; } pub trait MutInto<'a, T> { fn mut_into(&'a mut self) -> T; } ## Instruction: Add basic `RefInto` and `MutInto` implementations ## Code After: pub trait RefInto<'a, T>: MutInto<'a, T> { fn ref_into(&'a self) -> T; } ...
f439cdfc74be62aa9a0dd5b13c2982bbc6c714f1
src/main/resources/META-INF/mods.toml
src/main/resources/META-INF/mods.toml
modLoader="javafml" loaderVersion="[36,)" license="license.txt" issueTrackerURL="https://github.com/InfinityRaider/InfinityLib/issues/" [[mods]] modId="infinitylib" version="1.16.5-2.0.6" displayName="InfinityLib" updateJSONURL="https://www.curseforge.com/minecraft/mc-mods/infinitylib/files" displayURL="https://www.cu...
modLoader="javafml" loaderVersion="[36,)" license="license.txt" issueTrackerURL="https://github.com/InfinityRaider/InfinityLib/issues/" [[mods]] modId="infinitylib" version="1.16.5-2.0.6" displayName="InfinityLib" displayURL="https://www.curseforge.com/minecraft/mc-mods/infinitylib" logoFile="logo.png" authors="Infini...
Remove unneeded json version check link
Remove unneeded json version check link
TOML
mit
InfinityRaider/InfinityLib
toml
## Code Before: modLoader="javafml" loaderVersion="[36,)" license="license.txt" issueTrackerURL="https://github.com/InfinityRaider/InfinityLib/issues/" [[mods]] modId="infinitylib" version="1.16.5-2.0.6" displayName="InfinityLib" updateJSONURL="https://www.curseforge.com/minecraft/mc-mods/infinitylib/files" displayURL...
83a3a8fc9b48a1447d50e074d1e11c78ddbd074c
app/templates/components/preprint-entry.hbs
app/templates/components/preprint-entry.hbs
<h4>{{preprint.title}}</h4> <p><strong>Authors:</strong> {{preprint.authors}}</p> <p><strong>Abstract:</strong> {{preprint.abstract}}</p> <hr>
<style> .smallTag{ width:5em; text-align:center; padding:0.3em; border-radius:8px; float:left; margin:8px; margin-left:0px; margin-bottom:0px; } #date{ background-color:#4c4c4c; color:white; } #subject{ backg...
Add subject and date tags to preprint entries
Add subject and date tags to preprint entries
Handlebars
apache-2.0
laurenrevere/ember-preprints,pattisdr/ember-preprints,hmoco/ember-preprints,caneruguz/ember-preprints,pattisdr/ember-preprints,hmoco/ember-preprints,caneruguz/ember-preprints,baylee-d/ember-preprints,CenterForOpenScience/ember-preprints,baylee-d/ember-preprints,laurenrevere/ember-preprints,CenterForOpenScience/ember-pr...
handlebars
## Code Before: <h4>{{preprint.title}}</h4> <p><strong>Authors:</strong> {{preprint.authors}}</p> <p><strong>Abstract:</strong> {{preprint.abstract}}</p> <hr> ## Instruction: Add subject and date tags to preprint entries ## Code After: <style> .smallTag{ width:5em; text-align:center; padd...