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
// Source: https://groups.google.com/forum/#!topic/angular/hVrkvaHGOfc | |
// jsFiddle: http://jsfiddle.net/pkozlowski_opensource/PxdSP/14/ | |
// author: Pawel Kozlowski | |
var myApp = angular.module('myApp', []); | |
//service style, probably the simplest one | |
myApp.service('helloWorldFromService', function() { | |
this.sayHello = function() { | |
return "Hello, World!" |
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
// Found at http://stackoverflow.com/questions/1732348/regex-match-open-tags-except-xhtml-self-contained-tags/1732454 | |
// | |
// But beware, HTML cannot be regexed... The end is nigh. | |
var re = /<([a-z]+) *[^/]*?>/g; |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>comment</key> | |
<string>mkdynamic</string> | |
<key>name</key> | |
<string>Made of Code</string> | |
<key>settings</key> | |
<array> |
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 cats.effect.{ContextShift, IO, Timer} | |
import fs2.concurrent.SignallingRef | |
import fs2.Stream | |
import scala.concurrent.duration._ | |
import scala.concurrent.ExecutionContext.global | |
object ConcurrentlySnippet { | |
def enableSignal(signal: SignallingRef[IO, Boolean]): Stream[IO, Unit] = |
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
netsh wlan stop hostednetwork | |
pause |
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
scala> def foo(x: Int, y: Double) = x * y | |
foo: (x: Int,y: Double)Double | |
scala> foo _ | |
res0: (Int, Double) => Double = <function2> | |
scala> foo _ tupled | |
res1: ((Int, Double)) => Double = <function1> | |
scala> foo _ curried |
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
.bs-docs-example | |
{ | |
position: relative; | |
margin: 15px 0; | |
padding: 39px 19px 14px; | |
background-color: white; | |
border: 1px solid #DDD; | |
-webkit-border-radius: 4px; | |
-moz-border-radius: 4px; | |
border-radius: 4px; |
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
[root@hbase scripts]# python yarn-utils.py -c 2 -m 16 -d 3 -k True | |
Using cores=2 memory=16GB disks=3 hbase=True | |
Profile: cores=2 memory=12288MB reserved=4GB usableMem=12GB disks=3 | |
Num Container=4 | |
Container Ram=3072MB | |
Used Ram=12GB | |
Unused Ram=4GB | |
yarn.scheduler.minimum-allocation-mb=3072 | |
yarn.scheduler.maximum-allocation-mb=12288 | |
yarn.nodemanager.resource.memory-mb=12288 |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
package clientsocket; | |
import java.io.*; | |
import java.net.Socket; | |
import java.util.Scanner; | |
/** | |
* | |
* @author manel | |
*/ |
NewerOlder