Skip to content

Instantly share code, notes, and snippets.

View germ13's full-sized avatar

juan serrano germ13

  • east los angeles
View GitHub Profile
@germ13
germ13 / syteline.md
Created April 14, 2021 15:10
syteline classes

Syteline classes

Course name	Course code	Date/Status	WaitListDate/Status
CloudSuite Industrial: Solution Overview	01_0011018_EEN3609_SYT	Completed	Completed
CloudSuite Industrial: Navigating the User Interface - Self-directed Learning	01_0012008_CEN3684_SYT	Completed	Completed
CloudSuite Industrial: Foundation - Self-directed Learning	01_0011020_CEN3630_SYT	80%	
Syteline: Administering the System	01_0011020_IEN3700_SYT	5/18/2021	None
CloudSuite Industrial: Configuring Cloud Quick Start	01_0011020_EEN3677_SYT	Self-Paced	N/A
CloudSuite Industrial: Creating Form Personalizations	01_0011018_IEN3552_SYT	None	None
@germ13
germ13 / 399.clj
Last active October 31, 2020 05:23
Purely Functional Solutions
;; https://gist.github.com/ericnormand/b93b4f9cc9ab0bd5d396c9dac8bcfd7d
(defn digitize [n]
(map #(- (int %) 48)
(seq (str n))))
(defn digit-search [digits]
(loop [coll digits
accumulator #{}]
(if (empty? coll)
nil
@germ13
germ13 / aoc-day-04.clj
Created December 4, 2019 16:33
day 4 clj
(ns app.core)
;; day 04
; It is a six-digit number.
; The value is within the range given in your puzzle input.
; Two adjacent digits are the same (like 22 in 122345) .
; Going from left to right, the digits never decrease; they only ever increase or stay the same (like 111123 or 135679).
;; range 273025-767253.
R1009,U993,L383,D725,R163,D312,R339,U650,R558,U384,R329,D61,L172,D555,R160,D972,L550,D801,L965,U818,L123,D530,R176,D353,L25,U694,L339,U600,L681,D37,R149,D742,R762,U869,R826,U300,L949,U978,L303,U361,R136,D343,L909,U551,R745,U913,L566,D292,R820,U886,R205,D431,L93,D71,R577,U872,L705,U510,L698,U963,R607,U527,L669,D543,R690,U954,L929,D218,R490,U500,L589,D332,R949,D538,R696,U659,L188,U468,L939,U833,L445,D430,R78,D303,R130,D649,R849,D712,L511,U745,R51,U973,R799,U829,R605,D771,L837,U204,L414,D427,R538,U116,R540,D168,R493,U900,L679,U431,L521,D500,L428,U332,L954,U717,L853,D339,L88,U807,L607,D496,L163,U468,L25,U267,L759,D898,L591,U445,L469,U531,R596,D486,L728,D677,R350,D429,R39,U568,R92,D875,L835,D841,R877,U178,L221,U88,R592,U692,R455,U693,L419,U90,R609,U672,L293,U168,R175,D456,R319,D570,R504,D165,L232,D624,L604,D68,R807,D59,R320,D281,L371,U956,L788,D897,L231,D829,R287,D798,L443,U194,R513,D925,L232,U225,L919,U563,R448,D889,R661,U852,L950,D558,L269,U186,L625,U673,L995,U732,R435,U849,L413,D690,L158,D234,R361,D458,L271,U90
(require 'package)
(package-initialize)
(add-to-list
'package-archives
'("melpa-stable" . "https://stable.melpa.org/packages/") t)
(add-to-list
'load-path "~/.emacs.d/lisp")
@germ13
germ13 / FiscalDate.cs
Last active January 16, 2019 20:50
FiscalDate
using System;
using System.Text;
namespace FiscalTime
{
internal class FiscalDate
{
public FiscalDate()
{
}
@germ13
germ13 / source.sql
Created September 19, 2018 06:24
Sync table across databases:
use SourceDB
go
drop table worker
create table [Worker](
[ID] int not null PRIMARY KEY IDENTITY (1,1),
[FullName] varchar(30),
)
go
public static void Main(string[] args)
{
var t = new Task[16];
for (var i = 0; i < 16; i++)
{
Count((ConsoleColor)i);
}
Console.ReadKey();
}
@germ13
germ13 / CreateToken.cs
Created April 10, 2018 06:41
Basic Symmetric
public IEnumerable<string> Get()
{
var user = Thread.CurrentPrincipal.Identity as WindowsIdentity;
// Define const Key this should be private secret key stored in some safe place
// This is a meaningles key of course
string key = "401b09eab3c013d4ca54922bb802bec8fd5318192b0a75f201d8b3727429090fb337591abd3e44453b954555b7a0812e1081c39b740293f765eae731f5a65ed1";
// Create Security key using private key above:
// not that latest version of JWT using Microsoft namespace instead of System