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 { Component, NgModule, OnInit } from '@angular/core'; | |
import { Pipe, PipeTransform } from '@angular/core'; | |
import { BrowserModule } from '@angular/platform-browser'; | |
import _ from 'lodash'; | |
@Pipe({name: 'Search'}) | |
export class SearchService implements PipeTransform { | |
transform(obj: any, term) { | |
if (obj != null && term) { |
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
# subversion | |
.subversion | |
# mirror dirs | |
/mirror/* | |
/tmp/* |
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
#!/bin/bash | |
fetchAndRebase=true | |
retryfetch=false | |
commitToRefetchFrom=null | |
currentDateTime=`date '+%Y-%m-%d %H:%M:%S'` | |
# Check for any flags | |
while [ ! $# -eq 0 ] | |
do | |
case "$1" in |
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 | |
require_once './vendor/autoload.php'; | |
use GuzzleHttp\Pool; | |
use GuzzleHttp\Client; | |
use GuzzleHttp\Psr7\Request; | |
$apiUrl = 'https://slack.com/api/'; // API URL. | |
$apiToken = 'xoxp-xxxx-xxxx-xxxx-xxxx'; // Slack Legacy API Token. |
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
sudo apt-get purge `dpkg -l | grep php7. | awk '{print $2}' |tr "\n" " "` |
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 * as React from 'react'; | |
import { RouteComponentProps } from 'react-router'; | |
import 'isomorphic-fetch'; | |
interface FetchDataExampleState { | |
forecasts: WeatherForecast[]; | |
loading: boolean; | |
} | |
export class FetchData extends React.Component<RouteComponentProps<{}>, FetchDataExampleState> { |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Net; | |
using System.Text; | |
using System.Threading.Tasks; | |
using CryptoCoins; | |
using CryptoMarkets; | |
namespace CryptoMarkets |
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
{ | |
"csharp.format.enable": false, | |
"workbench.iconTheme": "vscode-icons", | |
"files.exclude": { | |
".idea/": true | |
}, | |
"terminal.external.osxExec": "iTerm.app", | |
"terminal.explorerKind": "external", | |
// The number of spaces a tab is equal to. This setting is overriden | |
// based on the file contents when `editor.detectIndentation` is true. |
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 json, tables, osproc, strutils | |
type Services = JsonNode | |
proc readConfig(): Services = | |
result = parseFile("services.json") | |
when isMainModule: | |
var services: Services = readConfig() | |
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
#!/bin/sh | |
# Change these settings to match what you are wanting to do | |
FILE=/File/To/Copy | |
PATH=/Where/To/Put/File | |
OPTIONS=`vagrant ssh-config | awk -v ORS=' ' 'NF{print "-o " $1 "=" $2}'` | |
# To copy a file from a Vagrant VM to the host: | |
# scp -rp ${OPTIONS} v:/srv /srv |
OlderNewer