This re-styles your sublime text sidebar to be dark, it fits default Twilight theme.
Save the Default.sublime-theme file into packages/Theme - Default, make a backup of your original if you want to be able to go back easily.
Based on:
<?php | |
/* | |
UserCake Version: 2.0.2 | |
http://usercake.com | |
Portuguese Translation | |
*/ | |
/* | |
%m1% - Dymamic markers which are replaced at run time by the relevant index. | |
*/ |
function montyhallSimulation(playerChangeOpt, testcases) | |
{ | |
playerChangeOpt = typeof playerChangeOpt !== 'undefined' ? playerChangeOpt : true; | |
testcases = typeof testcases !== 'undefined' ? testcases : 100; | |
var right = 0, wrong = 0; | |
for(i=0 ; i<testcases ; i++) { | |
var carPos = Math.floor(Math.random()*3); | |
var playerOpt = Math.floor(Math.random()*3); | |
function guessingGame(testcases, useMidPoint) { | |
useMidPoint = useMidPoint || false; | |
var correct = i = 0, | |
r = Math.random; | |
for (i=testcases;i;i--) { | |
var a = r(), b = r(), k = useMidPoint ? 0.5 : r(); | |
correct += (k < a && a > b) || (k > a && a < b); | |
} | |
This re-styles your sublime text sidebar to be dark, it fits default Twilight theme.
Save the Default.sublime-theme file into packages/Theme - Default, make a backup of your original if you want to be able to go back easily.
Based on:
// -------------------- | |
// Penalty Shoot-out | |
// Ilustrated example at https://jsfiddle.net/promatik/yo00Lr4e/ | |
// -------------------- | |
function checkPenaltyShootOutEnd(round, score1, score2, total_rounds, first_shooter) { | |
return Math.abs(score1-score2) > (round > total_rounds ? round % 2 : Math.ceil((10-round) / 2) - (first_shooter ^ score1 < score2 ? 0 : round % 2)); | |
} | |
// -------------------- |
.tree-view { | |
.icon:before { | |
display:none; | |
} | |
.list-group li:not(.list-nested-item), .list-tree li:not(.list-nested-item), .list-group li.list-nested-item > .list-item, .list-tree li.list-nested-item > .list-item { | |
line-height: 21px; | |
} | |
.list-group .selected:before, .list-tree .selected:before { | |
height: 21px; | |
} |
This re-styles your sublime text 3 sidebar to be dark, it fits default Twilight theme.
Go to Menu > Preferences > Browse Packages, save the Default.sublime-theme file into the "User" folder.
Based on:
<snippet> | |
<content><![CDATA[ | |
{{ __("$TM_SELECTED_TEXT") }} | |
]]></content> | |
<tabTrigger>t</tabTrigger> | |
<scope>text.blade.php</scope> | |
</snippet> |
import java.io.BufferedReader; | |
import java.io.InputStreamReader; | |
import java.util.ArrayList; | |
import java.util.HashMap; | |
public class Main { | |
public static void main(String[] args) { | |
new Main(); | |
} |