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, Element, Prop, Listen, Method, State } from '@stencil/core'; | |
@Component({ | |
tag: 'st-demo-modal', | |
styleUrl: 'st-demo-modal.scss' | |
}) | |
export class DemoModal { | |
modal: HTMLStModalElement; | |
@Element() |
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
// ==UserScript== | |
// @name Remove yahoo.com news articles | |
// @namespace https://github.com/elebetsamer | |
// @version 0.3 | |
// @description Remove unwanted news articles from the yahoo.com home page. You can set categories to block or sources. | |
// @author elebetsamer | |
// @match http*://*.yahoo.com | |
// @icon https://mbp.yimg.com/sy/rz/l/favicon.ico | |
// @grant none | |
// ==/UserScript== |
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
/* | |
To setup, place in scripts/st-generate.js and add | |
"st:generate": "node scripts/st-generate.js" | |
To your npm scripts. | |
To generate a component in src/components/ run | |
npm run st:generate component my-component |
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
# editorconfig.org | |
root = true | |
[*] | |
charset = utf-8 | |
end_of_line = lf | |
indent_size = 2 | |
indent_style = space | |
insert_final_newline = 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
var makeCRCTable = function(){ | |
var c; | |
var crcTable = []; | |
for(var n =0; n < 256; n++){ | |
c = n; | |
for(var k =0; k < 8; k++){ | |
c = ((c&1) ? (0xEDB88320 ^ (c >>> 1)) : (c >>> 1)); | |
} | |
crcTable[n] = 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
git clone https://github.com/gruntjs/grunt-init-jquery.git %USERPROFILE%\.grunt-init\jquery | |
git clone https://github.com/gruntjs/grunt-init-commonjs.git %USERPROFILE%\.grunt-init\commonjs | |
git clone https://github.com/gruntjs/grunt-init-gruntfile.git %USERPROFILE%\.grunt-init\gruntfile | |
git clone https://github.com/gruntjs/grunt-init-gruntplugin.git %USERPROFILE%\.grunt-init\gruntplugin | |
git clone https://github.com/gruntjs/grunt-init-node.git %USERPROFILE%\.grunt-init\node |
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
var topmenuClass = '.ms-core-listMenu-horizontalBox'; | |
$(topmenuClass + ' .ms-hidden').html(''); | |
$(topmenuClass + ' ul li a span').not('[class="ms-navedit-editLinksIconWrapper"]').replaceWith(function () { | |
return $(this).html(); | |
}); | |
$(topmenuClass + ' ul li a span').not('[class="ms-navedit-editLinksIconWrapper"]').replaceWith(function () { | |
return $(this).html(); | |
}); |
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
/* | |
* Original Sample: http://craftycodeblog.com/2010/05/15/asp-net-mvc-render-partial-view-to-string/ | |
*/ | |
public class HomeController : Controller | |
{ | |
public ActionResult Index() | |
{ | |
string MyModelData = ""; |
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
void OnDrawGizmos() | |
{ | |
float verticalHeightSeen = Camera.main.orthographicSize * 2.0f; | |
float verticalWidthSeen = verticalHeightSeen * Camera.main.aspect; | |
Gizmos.color = Color.cyan; | |
Gizmos.DrawWireCube(transform.position, new Vector3(verticalWidthSeen, verticalHeightSeen, 0)); | |
} |
NewerOlder