This file contains hidden or 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
| ie\s\(*\(;]S:V;{Vn+:V;}dV#/.1%0={}N? |
This file contains hidden or 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
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <math.h> | |
| struct Vec3d { | |
| int x; | |
| int y; | |
| int z; | |
| }; |
This file contains hidden or 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
| int count = 1 | |
| new File("C:/Users/phase/Pictures/FloridaVisits").eachFile() { file -> | |
| if(file.getName().endsWith(".jpg")) { | |
| String absolutePath = file.getAbsolutePath() | |
| String filePath = absolutePath.substring(0,absolutePath.lastIndexOf(File.separator)) | |
| println file.getAbsolutePath() + " -> " + filePath+"\\"+count+".jpg" | |
| file.renameTo(new File(filePath+"\\"+count+++".jpg")) | |
| } | |
| } |
This file contains hidden or 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
| {foreach $categories as $cat} | |
| {foreach $cat.forums as $forum} | |
| <tr class="cell1"> | |
| <td class="cell2 newMarker">{$forum.new}</td> | |
| <td> | |
| <h4{if $forum.ignored} class="ignored"{/if}>{$forum.link}</h4> | |
| <span class="smallFonts{if $forum.ignored} ignored{/if}"> | |
| {$forum.description} | |
| {if $forum.localmods}<br>Moderated by: {$forum.localmods}{/if} | |
| </span> |
This file contains hidden or 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
| kill $(ps -u phase | grep -Po '^\s*\d+(?= tty)') -9 |
This file contains hidden or 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 | |
| # bash generate random 5 character string) | |
| cat /dev/urandom | tr -dc 'a-z' | fold -w 5 | head -n 1 |
This file contains hidden or 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
| #lang: https://github.com/phase/lang-jit-compiler | |
| int double (int x) { | |
| x * x # last expression returned | |
| } | |
| int a (int b, int c) { | |
| int d = 7 | |
| int e = a * b | |
| int g = double double d |
This file contains hidden or 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
| From c5c7f68d947f366fef739e0ac3a655baed507bfe Mon Sep 17 00:00:00 2001 | |
| From: Jadon Fowler <jadonflower@gmail.com> | |
| Date: Thu, 19 May 2016 18:13:48 -0600 | |
| Subject: [PATCH] Optimize conversion to Mojang-style UUIDs by avoiding regex | |
| diff --git a/api/src/main/java/net/md_5/bungee/api/ServerPing.java b/api/src/main/java/net/md_5/bungee/api/ServerPing.java | |
| index 314a1d2..6804ad9 100644 | |
| --- a/api/src/main/java/net/md_5/bungee/api/ServerPing.java | |
| +++ b/api/src/main/java/net/md_5/bungee/api/ServerPing.java | |
| @@ -73,7 +73,7 @@ public class ServerPing |
This file contains hidden or 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 time | |
| def ALU(A,B,IA,IB,Cin,OR,FC): | |
| preC,Carry,C=[0 for i in range(len(A)+1)],[0 for i in range(len(A)+2)],[0 for i in range(len(A)+1)] | |
| for i in range(len(A)): | |
| if IA: | |
| if A[i] == 1: | |
| A[i] = 0 | |
| else: | |
| A[i] = 1 | |
| if IB: |
This file contains hidden or 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
| diff --git a/lib/layout.php b/lib/layout.php | |
| index a36806f..4f0e7a8 100644 | |
| --- a/lib/layout.php | |
| +++ b/lib/layout.php | |
| @@ -7,12 +7,12 @@ | |
| function RenderTemplate($template, $options=null) | |
| { | |
| global $tpl, $mobileLayout, $plugintemplates, $plugins; | |
| - | |
| + |