This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// @flow | |
declare class Date { | |
constructor(): void; | |
constructor(timestamp: number): void; | |
constructor(dateString: string): void; | |
constructor(year: number, month: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number): void; | |
getDate(): number; | |
getDay(): number; | |
getYear(): number; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// @flow | |
import React from 'react' | |
import ReactDom from 'react-dom' | |
class InnerComponent extends React.Component<void, { myVal: number }, void>{ | |
props: { myVal: number } | |
render = () => | |
<div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
grep '".*": ".*"' composer.json | | |
sed -E 's/[ \t]+//' | | |
sed -E 's/"[^\/]+": ".*",?//' | | |
sed '/.*\\.*/d' | sed -E '/^\s*$/d' | | |
sed -E 's/: ".*",?//' | sed -E 's/"//g' | | |
awk '{ print "composer update " $1 " && yarn test || exit 255""\0" }' | | |
xargs -n 1 -0 bash -c |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Console\Commands; | |
use Adldap\Models\Entry; | |
use Adldap\Models\Group; | |
use Illuminate\Console\Command; | |
class ImportGroups extends Command | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: Python ; coding: utf-8 -*- | |
# Copyright © 2012–2013 Roland Sieker <[email protected]> | |
# Based in part on code by Damien Elmes <[email protected]> | |
# License: GNU GPL, version 3 or later; http://www.gnu.org/copyleft/gpl.html | |
"""Add-on for Anki 2 to zoom in or out.""" | |
from PyQt4.QtCore import Qt, SIGNAL | |
from PyQt4.QtGui import QAction, QKeySequence, QMenu |