margin: 10px;
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 { Injectable } from "@angular/core"; | |
import { Http, Headers, RequestOptions } from '@angular/http'; | |
import { Observable } from 'rxjs/Observable'; | |
@Injectable() | |
export class CustomHttp { | |
constructor(public http: Http) { |
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
When running any composer commands, sometimes you see the following error stack: | |
``` | |
[ReflectionException] | |
Class Fxp\Composer\AssetPlugin\Repository\NpmRepository does not exist | |
[ErrorException] |
Demo app to go along with blog post about creating custom TopoJSON data here
http://datamaps.markmarkoh.com/using-custom-map-data-w-datamaps/
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 | |
/** | |
* | |
* | |
* @author Carsten Brandt <mail@cebe.cc> | |
*/ | |
namespace api\components; | |
use common\models\ApiSystem; |
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
<%@ language="Javascript" %> | |
<script language="javascript" runat="server" src='json2.js'></script> | |
<script language="javascript" runat="server" src='stringExtensions.js'></script> | |
<script language="javascript" runat="server" src='contentNego.js'></script> | |
<script language="javascript" runat="server"> | |
(function() { | |
// In an ASP scenario, this fn gets "exported" |
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
[core] | |
autocrlf = true | |
excludesfile = C:\\Users\\Brett\\Documents\\gitignore_global.txt | |
# Git Extensions built-in commit editor | |
#editor = \"C:/Program Files (x86)/GitExtensions/GitExtensions.exe\" fileeditor | |
# Use Visual Studio Code | |
editor = code -w | |
longpaths = 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
<?php | |
class PostController extends Controller | |
{ | |
// ... | |
public function actionDelete($id) | |
{ | |
$this->findModel($id)->delete(); | |
if (!Yii::$app->request->isAjax) { | |
return $this->redirect(['index']); |
In the footer of your theme (something like footer.ejs
) you should add Disqus script:
<% if (config.disqus_shortname){ %>
<script>
var disqus_shortname = '<%= config.disqus_shortname %>';
<% if (page.permalink){ %>
var disqus_url = '<%= config.url +"/"+ page.path %>';
<% } %>
(function(){
Here are suggested hooks for integration manager repository, in a composer based PHP project.
The IM has all the developer hooks, more the prepare-commit-msg to intercept unwanted merges.
OlderNewer