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
//--------------------------------------------------------------------------------------------------------------------------------------------------- | |
// directive to allow item to scroll with top of page or stay where it belongs | |
.directive( 'floatingAlert', function( $document, $window ) { | |
return { | |
restrict: 'A', | |
link: function($scope, $element) { | |
$document.bind('scroll', function() { | |
var docViewTop = $window.pageYOffset; | |
var docViewBottom = docViewTop + $window.innerHeight; |
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
<div class="col-xs-12"> <!-- floating alerts --> | |
<div class="row"> | |
<div class="col-xs-12"> | |
<div class="row" floating-alert> <!-- alert row --> | |
<div ng-cloak ng-repeat="alert in alerts.alerts track by $index"> | |
<div ng-if="alert.floating == 'true'" class='col-xs-12 col-sm-12 col-md-12 col-lg-12'> | |
<div class='alert' ng-class="[ alert['type'] ]" role='alert'> | |
<button type='button' class='close' ng-click="alerts.close( $index, 'index' )" aria-label='Close'><span aria-hidden='true'>×</span></button> | |
<strong><i class="fa" ng-class="[ alert['icon'] ]"></i> {{ alert.message }}</strong> | |
</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
$(".status:contains('Removed')") | |
.closest("div.download") | |
.find("a.remove").click() |
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
'atom-workspace atom-text-editor:not([mini])': | |
'ctrl-shift-down': 'editor:move-line-down' | |
'ctrl-shift-up': 'editor:move-line-up' | |
# requires https://atom.io/packages/multi-cursor | |
'atom-workspace atom-text-editor:not([mini])': | |
# you may have to unset the keybinding if it's already in use. | |
# Expand current cursor | |
'alt-shift-down': 'multi-cursor:expandDown' |
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
'body': | |
'ctrl-shift-pagedown': 'pane:move-item-right' | |
'ctrl-shift-pageup': 'pane:move-item-left' |
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
#Returns the sum of num1 and num2# | |
def add(num1, num2): | |
return num1 + num2 | |
def sub(num1, num2): | |
return num1 - num2 | |
def mul(num1, num2): | |
return num1 * num2 |
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
pcnate@pop-os:~$ sudo apt-get dist-upgrade | |
Reading package lists... Done | |
Building dependency tree | |
Reading state information... Done | |
Calculating upgrade... Done | |
The following NEW packages will be installed: | |
apt-config-icons apt-config-icons-hidpi apt-config-icons-large | |
apt-config-icons-large-hidpi | |
The following packages will be upgraded: | |
amd64-microcode atom gnome-shell-extension-pop-battery-icon-fix google-chrome-stable |
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
keymaps: { | |
"tab:next": "ctrl+pageup", | |
"tab:prev": "ctrl+pagedown", | |
"pane:next": "ctrl+tab", | |
"pane:prev": "ctrl+shift+tab" | |
}, |
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
const arr = [ | |
{ sub: [ 1001, 1002, 1003, 1004, 1005 ] }, | |
{ sub: [ 2001, 2002, 2003, 2004, 2005 ] }, | |
{ sub: [ 3001, 3002, 3003, 3004, 3005 ] }, | |
{ sub: [ 4001, 4002, 4003, 4004, 4005 ] }, | |
{ sub: [ 5001, 5002, 5003, 5004, 5005 ] }, | |
]; | |
const startDates = []; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { BrowserModule } from '@angular/platform-browser'; | |
import { NgModule } from '@angular/core'; | |
import { AppComponent } from './app.component'; | |
import { SocketService } from './_services'; | |
@NgModule({ | |
declarations: [], | |
imports: [ | |
BrowserModule, |
OlderNewer